[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:
Gaetan Delannay 2013-06-25 17:34:17 +02:00
parent 1d931cfb96
commit b5136c59c1
21 changed files with 89 additions and 75 deletions

View file

@ -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\', &quot;%s&quot;)' % (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>