2010-08-05 11:23:17 -05:00
|
|
|
<tal:comment replace="nothing">View macro for an Action.</tal:comment>
|
|
|
|
<metal:view define-macro="view">
|
|
|
|
<form name="executeAppyAction"
|
2013-01-09 02:14:57 -06:00
|
|
|
tal:define="formId python: '%s_%s_form' % (contextObj.UID(), name);
|
2011-09-07 02:56:53 -05:00
|
|
|
label python: contextObj.translate(widget['labelId'])"
|
2011-11-25 11:01:20 -06:00
|
|
|
tal:attributes="id formId; action python: tool.absolute_url()+'/do'">
|
2010-08-05 11:23:17 -05:00
|
|
|
<input type="hidden" name="action" value="ExecuteAppyAction"/>
|
|
|
|
<input type="hidden" name="objectUid" tal:attributes="value contextObj/UID"/>
|
|
|
|
<input type="hidden" name="fieldName" tal:attributes="value name"/>
|
2011-09-07 02:56:53 -05:00
|
|
|
<tal:confirm condition="widget/confirm">
|
|
|
|
<input type="button"
|
|
|
|
tal:define="labelConfirm python: contextObj.translate(widget['labelId'] + '_confirm')"
|
2010-08-05 11:23:17 -05:00
|
|
|
tal:attributes="value label;
|
2010-10-14 07:43:56 -05:00
|
|
|
onClick python: 'askConfirm(\'form\', \'%s\', "%s")' % (formId, labelConfirm)"/>
|
2011-09-07 02:56:53 -05:00
|
|
|
</tal:confirm>
|
2010-08-05 11:23:17 -05:00
|
|
|
<input type="submit" name="do" tal:condition="not: widget/confirm"
|
2011-12-05 08:11:29 -06:00
|
|
|
tal:attributes="value label"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</form>
|
|
|
|
</metal:view>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Edit macro for an Action.</tal:comment>
|
|
|
|
<metal:edit define-macro="edit"></metal:edit>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Cell macro for an Action.</tal:comment>
|
|
|
|
<metal:cell define-macro="cell">
|
2011-11-25 11:01:20 -06:00
|
|
|
<metal:call use-macro="app/ui/widgets/action/macros/view"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</metal:cell>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Search macro for an Action.</tal:comment>
|
|
|
|
<metal:search define-macro="search"></metal:search>
|