2011-09-18 08:00:05 -05:00
|
|
|
<tal:main define="tool context/getTool">
|
2011-11-25 11:01:20 -06:00
|
|
|
<html metal:use-macro="context/ui/template/macros/main">
|
2011-09-18 08:00:05 -05:00
|
|
|
<metal:fill fill-slot="content"
|
2011-09-20 12:21:48 -05:00
|
|
|
tal:define="contextObj context/getParentNode;
|
2011-09-18 08:00:05 -05:00
|
|
|
errors request/errors | python:{};
|
|
|
|
layoutType python:'edit';
|
|
|
|
layout python: contextObj.getPageLayout(layoutType);
|
|
|
|
phaseInfo python: contextObj.getAppyPhases(currentOnly=True, layoutType=layoutType);
|
|
|
|
phase phaseInfo/name;
|
|
|
|
page request/page|python:'main';
|
|
|
|
cssJs python: contextObj.getCssAndJs(contextObj.getAppyTypes(layoutType, page), layoutType);
|
|
|
|
confirmMsg request/confirmMsg | nothing;">
|
2009-10-18 07:52:27 -05:00
|
|
|
|
2010-08-05 11:23:17 -05:00
|
|
|
<tal:comment replace="nothing">Include type-specific CSS and JS.</tal:comment>
|
2011-09-18 08:00:05 -05:00
|
|
|
<link tal:repeat="cssFile cssJs/css" rel="stylesheet" type="text/css"
|
2011-11-25 11:01:20 -06:00
|
|
|
tal:attributes="href string:$appUrl/ui/$cssFile"/>
|
2011-09-18 08:00:05 -05:00
|
|
|
<script tal:repeat="jsFile cssJs/js" type="text/javascript"
|
2011-11-25 11:01:20 -06:00
|
|
|
tal:attributes="src string:$appUrl/ui/$jsFile"></script>
|
2009-10-18 07:52:27 -05:00
|
|
|
|
2011-11-25 11:01:20 -06:00
|
|
|
<metal:prologue use-macro="context/ui/page/macros/prologue"/>
|
2011-09-18 08:00:05 -05:00
|
|
|
<form id="appyEditForm" name="appyEditForm" method="post" enctype="multipart/form-data"
|
2011-11-25 11:01:20 -06:00
|
|
|
tal:attributes="action python: contextObj.absolute_url()+'/do';
|
2011-09-18 08:00:05 -05:00
|
|
|
class python: test(confirmMsg, 'atBaseEditForm', 'enableUnloadProtection atBaseEditForm')">
|
|
|
|
<input type="hidden" name="action" value="Update"/>
|
|
|
|
<input type="hidden" name="page" tal:attributes="value page"/>
|
|
|
|
<input type="hidden" name="nav" tal:attributes="value request/nav|nothing"/>
|
|
|
|
<input type="hidden" name="is_new" tal:attributes="value contextObj/isTemporary"/>
|
|
|
|
<input type="hidden" name="confirmed" value="False"/>
|
2011-11-25 11:01:20 -06:00
|
|
|
<metal:show use-macro="context/ui/page/macros/show"/>
|
2011-09-18 08:00:05 -05:00
|
|
|
</form>
|
|
|
|
<script tal:condition="confirmMsg"
|
|
|
|
tal:content="python: 'askConfirm(\'script\', \'postConfirmedEditForm()\', \'%s\')' % confirmMsg">
|
|
|
|
</script>
|
2011-11-25 11:01:20 -06:00
|
|
|
<metal:footer use-macro="context/ui/page/macros/footer"/>
|
2011-09-18 08:00:05 -05:00
|
|
|
</metal:fill>
|
2009-10-18 07:52:27 -05:00
|
|
|
</html>
|
2011-09-18 08:00:05 -05:00
|
|
|
</tal:main>
|