2010-08-05 11:23:17 -05:00
|
|
|
<tal:comment replace="nothing">
|
|
|
|
This macro contains global page-related Javascripts.
|
|
|
|
</tal:comment>
|
|
|
|
<div metal:define-macro="prologue">
|
2012-10-03 07:44:34 -05:00
|
|
|
<tal:comment replace="nothing">Include type-specific CSS and JS.</tal:comment>
|
|
|
|
<tal:include condition="cssJs|nothing">
|
|
|
|
<link tal:repeat="cssFile cssJs/css" rel="stylesheet" type="text/css"
|
|
|
|
tal:attributes="href string:$appUrl/ui/$cssFile"/>
|
|
|
|
<script tal:repeat="jsFile cssJs/js" type="text/javascript"
|
|
|
|
tal:attributes="src string:$appUrl/ui/$jsFile"></script>
|
|
|
|
</tal:include>
|
|
|
|
|
2010-08-05 11:23:17 -05:00
|
|
|
<tal:comment replace="nothing">Javascript messages</tal:comment>
|
|
|
|
<script language="javascript" tal:content="tool/getJavascriptMessages"></script>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Global form for deleting an object</tal:comment>
|
2011-11-25 11:01:20 -06:00
|
|
|
<form id="deleteForm" method="post" action="do">
|
2010-08-05 11:23:17 -05:00
|
|
|
<input type="hidden" name="action" value="Delete"/>
|
|
|
|
<input type="hidden" name="objectUid"/>
|
|
|
|
</form>
|
2012-10-08 03:08:54 -05:00
|
|
|
<tal:comment replace="nothing">Global form for unlinking an object</tal:comment>
|
|
|
|
<form id="unlinkForm" method="post" action="do">
|
|
|
|
<input type="hidden" name="action" value="Unlink"/>
|
|
|
|
<input type="hidden" name="sourceUid"/>
|
|
|
|
<input type="hidden" name="fieldName"/>
|
|
|
|
<input type="hidden" name="targetUid"/>
|
|
|
|
</form>
|
2012-10-03 07:44:34 -05:00
|
|
|
<tal:comment replace="nothing">Global form for generating a document from a pod template</tal:comment>
|
2010-08-05 11:23:17 -05:00
|
|
|
<form name="podTemplateForm" method="post"
|
2010-10-14 07:43:56 -05:00
|
|
|
tal:attributes="action python: tool.absolute_url() + '/generateDocument'">
|
2010-08-05 11:23:17 -05:00
|
|
|
<input type="hidden" name="objectUid"/>
|
|
|
|
<input type="hidden" name="fieldName"/>
|
|
|
|
<input type="hidden" name="podFormat"/>
|
|
|
|
<input type="hidden" name="askAction"/>
|
2011-01-28 07:36:30 -06:00
|
|
|
<input type="hidden" name="queryData"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">
|
|
|
|
This macro shows the content of page. Because a page is a layouted object,
|
|
|
|
we simply call the macro that displays a layouted object.
|
|
|
|
contextObj The Zope object for which this page must be shown
|
|
|
|
layoutType The kind of layout: "view"? "edit"? "cell"?
|
|
|
|
layout The layout object that will dictate how object content
|
|
|
|
will be rendered.
|
|
|
|
</tal:comment>
|
|
|
|
<metal:show define-macro="show">
|
2011-11-25 11:01:20 -06:00
|
|
|
<metal:layout use-macro="context/ui/widgets/show/macros/layout"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</metal:show>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">
|
|
|
|
This macro displays all widgets of a given page. It requires:
|
|
|
|
contextObj The Zope object for which widgets must be shown
|
|
|
|
page We show widgets of a given page
|
|
|
|
layoutType We must know if we must render the widgets in a "view",
|
|
|
|
"edit" or "cell" layout
|
|
|
|
</tal:comment>
|
2011-09-18 08:00:05 -05:00
|
|
|
<table metal:define-macro="widgets"
|
2010-11-10 08:15:00 -06:00
|
|
|
tal:attributes="width layout/width">
|
2012-05-05 10:04:19 -05:00
|
|
|
<tr tal:repeat="widget groupedWidgets">
|
2010-08-05 11:23:17 -05:00
|
|
|
<td tal:condition="python: widget['type'] == 'group'">
|
2011-11-25 11:01:20 -06:00
|
|
|
<metal:call use-macro="app/ui/widgets/show/macros/group"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</td>
|
|
|
|
<td tal:condition="python: widget['type'] != 'group'">
|
2011-11-25 11:01:20 -06:00
|
|
|
<metal:call use-macro="app/ui/widgets/show/macros/field"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">
|
|
|
|
This macro displays an object's history. It is used by macro "header" below.
|
|
|
|
</tal:comment>
|
|
|
|
<metal:history define-macro="objectHistory"
|
|
|
|
tal:define="startNumber request/startNumber|python:0;
|
|
|
|
startNumber python: int(startNumber);
|
2011-01-28 19:18:14 -06:00
|
|
|
batchSize python: int(request.get('maxPerPage'));
|
|
|
|
historyInfo python: contextObj.getHistory(startNumber, batchSize=batchSize);
|
2010-08-05 11:23:17 -05:00
|
|
|
objs historyInfo/events;
|
|
|
|
totalNumber historyInfo/totalNumber;
|
|
|
|
ajaxHookId python:'appyHistory';
|
2011-01-28 19:18:14 -06:00
|
|
|
navBaseCall python: 'askObjectHistory(\'%s\',\'%s\',%d,**v**)' % (ajaxHookId, contextObj.absolute_url(),batchSize);
|
2012-06-03 11:34:56 -05:00
|
|
|
tool contextObj/getTool;
|
|
|
|
_ python: tool.translate">
|
2010-08-05 11:23:17 -05:00
|
|
|
|
|
|
|
<tal:comment replace="nothing">Table containing the history</tal:comment>
|
|
|
|
<tal:history condition="objs">
|
2011-11-25 11:01:20 -06:00
|
|
|
<metal:nav use-macro="context/ui/navigate/macros/appyNavigate"/>
|
2011-09-28 14:17:15 -05:00
|
|
|
<table width="100%" class="history">
|
2011-12-05 08:11:29 -06:00
|
|
|
<tr>
|
2012-07-18 14:58:11 -05:00
|
|
|
<th tal:attributes="align dleft" tal:content="python: _('object_action')"></th>
|
|
|
|
<th tal:attributes="align dleft" tal:content="python: _('object_author')"></th>
|
|
|
|
<th tal:attributes="align dleft" tal:content="python: _('action_date')"></th>
|
|
|
|
<th tal:attributes="align dleft" tal:content="python: _('action_comment')"></th>
|
2010-08-05 11:23:17 -05:00
|
|
|
</tr>
|
|
|
|
<tal:event repeat="event objs">
|
|
|
|
<tr tal:define="odd repeat/event/odd;
|
|
|
|
rhComments event/comments|nothing;
|
|
|
|
state event/review_state|nothing;
|
|
|
|
isDataChange python: event['action'] == '_datachange_'"
|
|
|
|
tal:attributes="class python:test(odd, 'even', 'odd')" valign="top">
|
2012-06-03 11:34:56 -05:00
|
|
|
<td tal:condition="isDataChange" tal:content="python: _('data_change')"></td>
|
2010-08-05 11:23:17 -05:00
|
|
|
<td tal:condition="not: isDataChange"
|
2012-06-03 11:34:56 -05:00
|
|
|
tal:content="python: _(contextObj.getWorkflowLabel(event['action']))"/>
|
2012-07-23 08:24:44 -05:00
|
|
|
<td tal:define="actorId python:event.get('actor')"
|
|
|
|
tal:content="python: tool.getUserName(actorId)"/>
|
|
|
|
<td tal:content="python: tool.formatDate(event['time'], withHour=True)"/>
|
2011-12-05 03:52:18 -06:00
|
|
|
<td tal:condition="not: isDataChange">
|
2012-03-19 11:00:44 -05:00
|
|
|
<tal:c condition="rhComments"
|
|
|
|
content="structure python: contextObj.formatText(rhComments)"/>
|
|
|
|
<span tal:condition="not: rhComments">-</span>
|
2011-12-05 03:52:18 -06:00
|
|
|
</td>
|
2010-08-05 11:23:17 -05:00
|
|
|
<td tal:condition="isDataChange">
|
|
|
|
<tal:comment replace="nothing">
|
|
|
|
Display the previous values of the fields whose value were modified in this change.</tal:comment>
|
|
|
|
<table class="appyChanges" width="100%">
|
|
|
|
<tr>
|
2012-06-27 06:27:24 -05:00
|
|
|
<th tal:attributes="align dleft" width="30%" tal:content="python: _('modified_field')"></th>
|
|
|
|
<th tal:attributes="align dleft" width="70%" tal:content="python: _('previous_value')"></th>
|
2010-08-05 11:23:17 -05:00
|
|
|
</tr>
|
|
|
|
<tr tal:repeat="change event/changes/items" valign="top">
|
2011-09-09 10:39:58 -05:00
|
|
|
<tal:change define="appyType python:contextObj.getAppyType(change[0], asDict=True);">
|
2012-06-03 11:34:56 -05:00
|
|
|
<td tal:content="structure python: _(appyType['labelId'])"></td>
|
2010-09-17 02:27:14 -05:00
|
|
|
<td tal:define="appyValue python: contextObj.getFormattedFieldValue(change[0], change[1][0]);
|
2010-08-05 11:23:17 -05:00
|
|
|
severalValues python: (appyType['multiplicity'][1] > 1) or (appyType['multiplicity'][1] == None)">
|
|
|
|
<span tal:condition="not: severalValues" tal:replace="appyValue"></span>
|
|
|
|
<ul tal:condition="python: severalValues">
|
|
|
|
<li tal:repeat="av appyValue" tal:content="av"></li>
|
|
|
|
</ul>
|
|
|
|
</td>
|
2011-09-09 10:39:58 -05:00
|
|
|
</tal:change>
|
2010-08-05 11:23:17 -05:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tal:event>
|
|
|
|
</table>
|
|
|
|
</tal:history>
|
|
|
|
</metal:history>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">
|
|
|
|
This macro displays an object's transitions(s). It is used by macro "header" below.
|
|
|
|
</tal:comment>
|
|
|
|
<metal:transitions define-macro="transitions"
|
|
|
|
tal:define="transitions contextObj/getAppyTransitions"
|
|
|
|
tal:condition="transitions">
|
|
|
|
<form id="triggerTransitionForm" method="post"
|
2011-11-25 11:01:20 -06:00
|
|
|
tal:attributes="action python: contextObj.absolute_url() + '/do'">
|
|
|
|
<input type="hidden" name="action" value="Trigger"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
<input type="hidden" name="workflow_action"/>
|
|
|
|
<table>
|
2011-03-24 10:21:57 -05:00
|
|
|
<tr valign="middle">
|
2012-03-19 11:00:44 -05:00
|
|
|
<tal:comment replace="nothing">Input field for storing comment</tal:comment>
|
|
|
|
<textarea id="comment" name="comment" cols="30" rows="3" style="display:none"></textarea>
|
2010-08-05 11:23:17 -05:00
|
|
|
<tal:comment replace="nothing">Buttons for triggering transitions</tal:comment>
|
2012-06-27 06:27:24 -05:00
|
|
|
<td tal:attributes="align dright" tal:repeat="transition transitions">
|
2011-02-01 04:09:54 -06:00
|
|
|
<tal:comment replace="nothing">Real button</tal:comment>
|
2012-03-19 11:00:44 -05:00
|
|
|
<input type="button" tal:condition="transition/may_trigger"
|
2011-07-26 15:15:04 -05:00
|
|
|
tal:attributes="value transition/title;
|
|
|
|
onClick python: 'triggerTransition(\'%s\',\'%s\')' % (transition['name'],transition['confirm']);"/>
|
2011-02-01 04:09:54 -06:00
|
|
|
<tal:comment replace="nothing">Fake button, explaining why the transition can't be triggered</tal:comment>
|
2012-03-19 11:00:44 -05:00
|
|
|
<div class="fakeButton" tal:condition="not: transition/may_trigger">
|
2011-07-26 15:15:04 -05:00
|
|
|
<acronym tal:content="transition/title"
|
2011-02-01 04:09:54 -06:00
|
|
|
tal:attributes="title transition/reason"></acronym>
|
|
|
|
</div>
|
2010-08-05 11:23:17 -05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</metal:transitions>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">
|
|
|
|
This macros displays the page header, containing object title,
|
|
|
|
workflow-related info, object history, etc.
|
|
|
|
</tal:comment>
|
|
|
|
<div metal:define-macro="header"
|
2012-11-05 06:12:18 -06:00
|
|
|
tal:define="hasHistory contextObj/hasHistory;
|
2011-01-28 19:18:14 -06:00
|
|
|
historyMaxPerPage options/maxPerPage|python: 5;
|
2011-10-01 15:40:13 -05:00
|
|
|
historyExpanded python: request.get('appyHistory', 'collapsed') == 'expanded';
|
2012-03-06 10:02:41 -06:00
|
|
|
_ python: tool.translate;
|
2010-08-05 11:23:17 -05:00
|
|
|
creator contextObj/Creator"
|
|
|
|
tal:condition="not: contextObj/isTemporary">
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Information that is common to all tabs (object title, state, etc)</tal:comment>
|
2011-09-28 14:17:15 -05:00
|
|
|
<table width="100%" class="summary">
|
2011-09-18 08:00:05 -05:00
|
|
|
<tr>
|
2011-09-28 14:17:15 -05:00
|
|
|
<td colspan="2" class="by">
|
2012-11-29 13:45:21 -06:00
|
|
|
<tal:icons replace="structure contextObj/getIcons"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
<tal:comment replace="nothing">Creator and last modification date</tal:comment>
|
|
|
|
<tal:comment replace="nothing">Plus/minus icon for accessing history</tal:comment>
|
|
|
|
<tal:accessHistory condition="hasHistory">
|
2012-06-27 06:27:24 -05:00
|
|
|
<img style="cursor:pointer" onClick="toggleCookie('appyHistory')"
|
|
|
|
tal:attributes="src python:test(historyExpanded, 'ui/collapse.gif', 'ui/expand.gif');
|
|
|
|
align dleft"
|
2010-08-05 11:23:17 -05:00
|
|
|
id="appyHistory_img"/>
|
2012-07-18 14:58:11 -05:00
|
|
|
<span tal:replace="python: _('object_history')"></span> ||
|
2010-08-05 11:23:17 -05:00
|
|
|
</tal:accessHistory>
|
|
|
|
|
2012-11-05 03:21:27 -06:00
|
|
|
<tal:comment replace="nothing">Document creator</tal:comment>
|
|
|
|
<tal:creator condition="python: creator != 'Anonymous User'">
|
2012-07-18 14:58:11 -05:00
|
|
|
<tal:by replace="python: _('object_created_by')"/>
|
2012-11-05 03:21:27 -06:00
|
|
|
<tal:creator replace="python: tool.getUserName(creator)"/>
|
|
|
|
</tal:creator>
|
|
|
|
<tal:comment replace="nothing">Creation and last modification dates</tal:comment>
|
2012-07-18 14:58:11 -05:00
|
|
|
<tal:by replace="python: _('object_created_on')"/>
|
2012-11-05 03:21:27 -06:00
|
|
|
<tal:dates define="creationDate contextObj/Created;
|
|
|
|
modificationDate contextObj/Modified">
|
|
|
|
<tal:date replace="python: tool.formatDate(creationDate, withHour=True)"/>
|
|
|
|
<tal:modified condition="python: modificationDate != creationDate">—
|
|
|
|
<tal:by replace="python: _('object_modified_on')"/>
|
|
|
|
<tal:date replace="python: tool.formatDate(modificationDate, withHour=True)"/>
|
|
|
|
</tal:modified>
|
|
|
|
</tal:dates>
|
|
|
|
<tal:comment replace="nothing">State</tal:comment>
|
|
|
|
<tal:state condition="contextObj/showState">
|
|
|
|
—
|
|
|
|
<tal:label replace="python: _('workflow_state')"/>:
|
|
|
|
<b tal:content="python: _(contextObj.getWorkflowLabel())"></b>
|
|
|
|
</tal:state>
|
|
|
|
</td>
|
2010-08-05 11:23:17 -05:00
|
|
|
</tr>
|
|
|
|
<tal:comment replace="nothing">Object history</tal:comment>
|
2012-11-29 13:45:21 -06:00
|
|
|
<tr tal:condition="hasHistory">
|
2010-08-05 11:23:17 -05:00
|
|
|
<td colspan="2">
|
|
|
|
<span id="appyHistory"
|
|
|
|
tal:attributes="style python:test(historyExpanded, 'display:block', 'display:none')">
|
|
|
|
<div tal:define="ajaxHookId python: contextObj.UID() + '_history';"
|
|
|
|
tal:attributes="id ajaxHookId">
|
2011-09-18 08:00:05 -05:00
|
|
|
<script tal:content="python: 'askObjectHistory(\'%s\',\'%s\',%d,0)' % (ajaxHookId, contextObj.absolute_url(),historyMaxPerPage)">
|
2010-08-05 11:23:17 -05:00
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2011-09-20 12:21:48 -05:00
|
|
|
<tal:comment replace="nothing">The page footer.</tal:comment>
|
2010-08-05 11:23:17 -05:00
|
|
|
<metal:footer define-macro="footer">
|
|
|
|
<script language="javascript">
|
|
|
|
<!--
|
2011-09-20 12:21:48 -05:00
|
|
|
initSlaves();
|
2010-08-05 11:23:17 -05:00
|
|
|
-->
|
|
|
|
</script>
|
|
|
|
</metal:footer>
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">
|
2012-11-05 06:12:18 -06:00
|
|
|
This macro shows the range of buttons (next, previous, save,...) and the workflow transitions.
|
2010-08-05 11:23:17 -05:00
|
|
|
</tal:comment>
|
2012-11-05 06:12:18 -06:00
|
|
|
<table metal:define-macro="buttons" cellpadding="2" cellspacing="0" style="margin-top: 7px"
|
|
|
|
tal:define="previousPage python: contextObj.getPreviousPage(phaseInfo, page)[0];
|
2010-09-13 14:04:10 -05:00
|
|
|
nextPage python: contextObj.getNextPage(phaseInfo, page)[0];
|
2010-10-19 03:47:42 -05:00
|
|
|
isEdit python: layoutType == 'edit';
|
|
|
|
pageInfo python: phaseInfo['pagesInfo'][page]">
|
2012-11-05 06:12:18 -06:00
|
|
|
<tr>
|
|
|
|
<tal:comment replace="nothing">Previous</tal:comment>
|
|
|
|
<td tal:condition="python: previousPage and pageInfo['showPrevious']">
|
2010-10-19 03:47:42 -05:00
|
|
|
<tal:button condition="isEdit">
|
2012-07-26 10:22:22 -05:00
|
|
|
<input type="image" name="buttonPrevious"
|
2012-06-03 11:34:56 -05:00
|
|
|
tal:attributes="src string:$appUrl/ui/previous.png;
|
|
|
|
title python: _('page_previous')"/>
|
2010-10-19 03:47:42 -05:00
|
|
|
<input type="hidden" name="previousPage" tal:attributes="value previousPage"/>
|
|
|
|
</tal:button>
|
|
|
|
<tal:link condition="not: isEdit">
|
|
|
|
<a tal:attributes="href python: contextObj.getUrl(page=previousPage)">
|
2012-06-03 11:34:56 -05:00
|
|
|
<img tal:attributes="src string:$appUrl/ui/previous.png;
|
|
|
|
title python: _('page_previous')"/>
|
2010-10-19 03:47:42 -05:00
|
|
|
</a>
|
|
|
|
</tal:link>
|
2012-11-05 06:12:18 -06:00
|
|
|
</td>
|
2010-08-05 11:23:17 -05:00
|
|
|
|
2012-11-05 06:12:18 -06:00
|
|
|
<tal:comment replace="nothing">Save</tal:comment>
|
|
|
|
<td tal:condition="python: isEdit and pageInfo['showSave']">
|
2012-07-26 10:22:22 -05:00
|
|
|
<input type="image" name="buttonOk"
|
2012-06-03 11:34:56 -05:00
|
|
|
tal:attributes="src string:$appUrl/ui/save.png;
|
|
|
|
title python: _('object_save')"/>
|
2012-11-05 06:12:18 -06:00
|
|
|
</td>
|
2010-08-05 11:23:17 -05:00
|
|
|
|
2012-11-05 06:12:18 -06:00
|
|
|
<tal:comment replace="nothing">Cancel</tal:comment>
|
|
|
|
<td tal:condition="python: isEdit and pageInfo['showCancel']">
|
2012-07-26 10:22:22 -05:00
|
|
|
<input type="image" name="buttonCancel"
|
2012-06-03 11:34:56 -05:00
|
|
|
tal:attributes="src string:$appUrl/ui/cancel.png;
|
|
|
|
title python: _('object_cancel')"/>
|
2012-11-05 06:12:18 -06:00
|
|
|
</td>
|
2010-08-05 11:23:17 -05:00
|
|
|
|
2012-11-05 06:12:18 -06:00
|
|
|
<tal:comment replace="nothing">Edit</tal:comment>
|
|
|
|
<td tal:condition="python: not isEdit and pageInfo['showOnEdit']">
|
|
|
|
<img style="cursor:pointer"
|
|
|
|
tal:attributes="onClick python: 'href: window.location=\'%s\'' % contextObj.getUrl(mode='edit', page=page);
|
|
|
|
title python: _('object_edit');
|
|
|
|
src string: $appUrl/ui/editBig.png"
|
|
|
|
tal:condition="contextObj/mayEdit"/>
|
|
|
|
</td>
|
2010-08-05 11:23:17 -05:00
|
|
|
|
2012-11-05 06:12:18 -06:00
|
|
|
<tal:comment replace="nothing">Refresh</tal:comment>
|
|
|
|
<td tal:condition="contextObj/isDebug">
|
2012-05-29 13:50:18 -05:00
|
|
|
<img title="Refresh" style="cursor:pointer; vertical-align:top"
|
2011-09-14 14:01:58 -05:00
|
|
|
tal:attributes="onClick python: 'href: window.location=\'%s\'' % contextObj.getUrl(mode=layoutType, page=page, refresh='yes');
|
2011-11-25 11:01:20 -06:00
|
|
|
src string: $appUrl/ui/refresh.png"/>
|
2012-11-05 06:12:18 -06:00
|
|
|
</td>
|
2011-09-14 14:01:58 -05:00
|
|
|
|
2012-11-05 06:12:18 -06:00
|
|
|
<tal:comment replace="nothing">Next</tal:comment>
|
|
|
|
<td tal:condition="python: nextPage and pageInfo['showNext']">
|
2010-10-19 03:47:42 -05:00
|
|
|
<tal:button condition="isEdit">
|
2012-07-26 10:22:22 -05:00
|
|
|
<input type="image" name="buttonNext"
|
2012-06-03 11:34:56 -05:00
|
|
|
tal:attributes="src string:$appUrl/ui/next.png;
|
|
|
|
title python: _('page_next')"/>
|
2010-10-19 03:47:42 -05:00
|
|
|
<input type="hidden" name="nextPage" tal:attributes="value nextPage"/>
|
|
|
|
</tal:button>
|
|
|
|
<tal:link condition="not: isEdit">
|
|
|
|
<a tal:attributes="href python: contextObj.getUrl(page=nextPage)">
|
2012-06-03 11:34:56 -05:00
|
|
|
<img tal:attributes="src string:$appUrl/ui/next.png;
|
|
|
|
title python: _('page_next')"/>
|
2010-10-19 03:47:42 -05:00
|
|
|
</a>
|
|
|
|
</tal:link>
|
2012-11-05 06:12:18 -06:00
|
|
|
</td>
|
|
|
|
<tal:comment replace="nothing">Workflow transitions</tal:comment>
|
|
|
|
<td tal:condition="python: layoutType in ('view', 'result')">
|
|
|
|
<metal:transitions use-macro="app/ui/page/macros/transitions"/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2010-08-05 11:23:17 -05:00
|
|
|
|
|
|
|
<tal:comment replace="nothing">
|
|
|
|
This macro displays the global message on the page.
|
|
|
|
</tal:comment>
|
2011-12-05 11:15:45 -06:00
|
|
|
<metal:message define-macro="message" tal:define="messages tool/consumeMessages" tal:condition="messages">
|
2012-09-19 10:48:49 -05:00
|
|
|
<div class="message">
|
|
|
|
<img tal:attributes="src python: '%s/ui/close.png' % appUrl"
|
|
|
|
align="right" style="cursor:pointer" onClick="this.parentNode.style.display='none'"/>
|
2012-12-07 04:23:08 -06:00
|
|
|
<span tal:replace="structure messages"></span>
|
2012-09-19 10:48:49 -05:00
|
|
|
</div>
|
2010-08-05 11:23:17 -05:00
|
|
|
</metal:message>
|