2010-08-05 11:23:17 -05:00
|
|
|
<tal:edit metal:define-macro="master"
|
|
|
|
define="contextObj python:context.getParentNode();
|
|
|
|
errors request/errors | python:{};
|
|
|
|
layoutType python:'edit';
|
|
|
|
layout python: contextObj.getPageLayout(layoutType);
|
|
|
|
tool contextObj/getTool;
|
|
|
|
appFolder tool/getAppFolder;
|
|
|
|
appName appFolder/getId;
|
2010-12-17 07:46:55 -06:00
|
|
|
phaseInfo python: contextObj.getAppyPhases(currentOnly=True, layoutType=layoutType);
|
2010-10-19 03:47:42 -05:00
|
|
|
phase phaseInfo/name;
|
2010-08-05 11:23:17 -05:00
|
|
|
page request/page|python:'main';
|
2010-12-17 07:46:55 -06:00
|
|
|
cssJs python: contextObj.getCssAndJs(contextObj.getAppyTypes(layoutType, page), layoutType);
|
2010-11-22 02:36:14 -06:00
|
|
|
confirmMsg request/confirmMsg | nothing;">
|
2009-10-18 07:52:27 -05:00
|
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
|
|
|
|
xmlns:tal="http://xml.zope.org/namespaces/tal"
|
|
|
|
xmlns:metal="http://xml.zope.org/namespaces/metal"
|
|
|
|
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
|
|
|
metal:use-macro="here/main_template/macros/master">
|
|
|
|
|
|
|
|
<tal:comment replace="nothing">Disable the Standard Plone green tab</tal:comment>
|
|
|
|
<div metal:fill-slot="top_slot">
|
|
|
|
<metal:block metal:use-macro="here/global_defines/macros/defines" />
|
|
|
|
<div tal:define="dummy python:request.set('disable_border', 1)" />
|
|
|
|
</div>
|
|
|
|
|
2010-08-05 11:23:17 -05:00
|
|
|
<tal:comment replace="nothing">Include type-specific CSS and JS.</tal:comment>
|
|
|
|
<metal:js fill-slot="javascript_head_slot">
|
2010-12-17 07:46:55 -06:00
|
|
|
<tal:js condition="cssJs/js" repeat="jsFile cssJs/js">
|
2009-10-18 07:52:27 -05:00
|
|
|
<script type="text/javascript" charset="iso-8859-1"
|
2010-08-05 11:23:17 -05:00
|
|
|
tal:condition="python:exists('portal/%s' % jsFile)"
|
|
|
|
tal:attributes="src string:$portal_url/$jsFile">
|
2009-10-18 07:52:27 -05:00
|
|
|
</script>
|
|
|
|
</tal:js>
|
2010-08-05 11:23:17 -05:00
|
|
|
</metal:js>
|
2009-10-18 07:52:27 -05:00
|
|
|
<metal:css fill-slot="css_slot">
|
2010-12-17 07:46:55 -06:00
|
|
|
<tal:css condition="cssJs/css" repeat="cssFile cssJs/css">
|
2009-10-18 07:52:27 -05:00
|
|
|
<style type="text/css" media="all"
|
2010-08-05 11:23:17 -05:00
|
|
|
tal:condition="python:exists('portal/%s' % cssFile)"
|
|
|
|
tal:content="structure string:<!-- @import url($portal_url/$cssFile); -->">
|
2009-10-18 07:52:27 -05:00
|
|
|
</style>
|
|
|
|
</tal:css>
|
|
|
|
</metal:css>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<metal:fill fill-slot="main">
|
2010-08-05 11:23:17 -05:00
|
|
|
<metal:prologue use-macro="here/skyn/page/macros/prologue"/>
|
2010-11-22 02:36:14 -06:00
|
|
|
<form id="appyEditForm" name="appyEditForm" method="post" enctype="multipart/form-data"
|
|
|
|
tal:attributes="action python: contextObj.absolute_url()+'/skyn/do';
|
|
|
|
class python: test(confirmMsg, 'atBaseEditForm', 'enableUnloadProtection atBaseEditForm')">
|
2009-10-20 09:57:00 -05:00
|
|
|
<input type="hidden" name="action" value="Update"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
<input type="hidden" name="page" tal:attributes="value page"/>
|
2010-09-19 08:04:44 -05:00
|
|
|
<input type="hidden" name="nav" tal:attributes="value request/nav|nothing"/>
|
2010-11-10 08:15:00 -06:00
|
|
|
<input type="hidden" name="is_new" tal:attributes="value contextObj/isTemporary"/>
|
2010-11-22 02:36:14 -06:00
|
|
|
<input type="hidden" name="confirmed" value="False"/>
|
2010-08-05 11:23:17 -05:00
|
|
|
<metal:show use-macro="here/skyn/page/macros/show"/>
|
2009-10-18 07:52:27 -05:00
|
|
|
</form>
|
2010-11-22 02:36:14 -06:00
|
|
|
<script tal:condition="confirmMsg"
|
|
|
|
tal:content="python: 'askConfirm(\'script\', \'postConfirmedEditForm()\', \'%s\')' % confirmMsg">
|
|
|
|
</script>
|
2010-08-05 11:23:17 -05:00
|
|
|
<metal:footer use-macro="here/skyn/page/macros/footer"/>
|
2009-10-18 07:52:27 -05:00
|
|
|
</metal:fill>
|
|
|
|
</body>
|
|
|
|
</html>
|
2010-08-05 11:23:17 -05:00
|
|
|
</tal:edit>
|