[gen] Some actions were triggered via icons. That was not explicit enough for basic users. So now, every action is triggerd by a button that displays an icon+a text.
This commit is contained in:
parent
1d931cfb96
commit
b5136c59c1
21 changed files with 89 additions and 75 deletions
|
@ -8,13 +8,17 @@
|
|||
<input type="hidden" name="objectUid" tal:attributes="value contextObj/UID"/>
|
||||
<input type="hidden" name="fieldName" tal:attributes="value name"/>
|
||||
<tal:confirm condition="widget/confirm">
|
||||
<input type="button"
|
||||
<input type="button" class="button"
|
||||
tal:define="labelConfirm python: contextObj.translate(widget['labelId'] + '_confirm')"
|
||||
tal:attributes="value label;
|
||||
tal:attributes="value python: tool.truncateValue(label);
|
||||
title label;
|
||||
style string: background-image: url($appUrl/ui/buttonAction.png);
|
||||
onClick python: 'askConfirm(\'form\', \'%s\', "%s")' % (formId, labelConfirm)"/>
|
||||
</tal:confirm>
|
||||
<input type="submit" name="do" tal:condition="not: widget/confirm"
|
||||
tal:attributes="value label"/>
|
||||
<input type="submit" class="button" name="do" tal:condition="not: widget/confirm"
|
||||
tal:attributes="value python: tool.truncateValue(label);
|
||||
title label;
|
||||
style string: background-image: url($appUrl/ui/buttonAction.png);"/>
|
||||
</form>
|
||||
</metal:view>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue