[Mpuls-commits] r2164 - in wasko/branches/2.0/mpulsweb/templates: . formularpage
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Mar 25 12:30:55 CET 2010
Author: torsten
Date: 2010-03-25 12:30:51 +0100 (Thu, 25 Mar 2010)
New Revision: 2164
Added:
wasko/branches/2.0/mpulsweb/templates/formularpage/
wasko/branches/2.0/mpulsweb/templates/formularpage/content.mako
wasko/branches/2.0/mpulsweb/templates/formularpage/formular.mako
Log:
Copied templates for formular from jmdweb
Added: wasko/branches/2.0/mpulsweb/templates/formularpage/content.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/formularpage/content.mako 2010-03-25 11:26:22 UTC (rev 2163)
+++ wasko/branches/2.0/mpulsweb/templates/formularpage/content.mako 2010-03-25 11:30:51 UTC (rev 2164)
@@ -0,0 +1,8 @@
+## -*- coding: utf-8 -*-
+<div class="formularpage">
+%if c.print_version:
+ ${h.literal(c.formularheader)}
+%endif
+${h.literal(c.formularerrors)}
+${h.literal(c.formular)}
+</div>
Added: wasko/branches/2.0/mpulsweb/templates/formularpage/formular.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/formularpage/formular.mako 2010-03-25 11:26:22 UTC (rev 2163)
+++ wasko/branches/2.0/mpulsweb/templates/formularpage/formular.mako 2010-03-25 11:30:51 UTC (rev 2164)
@@ -0,0 +1,46 @@
+## -*- coding: utf-8 -*-
+<%inherit file="/casemanagement/main.mako"/>
+${h.literal(c.formular)}
+
+<%def name="buildNavipath()">
+ ${parent.buildNavipath()}
+ <li><a href="/case/select/${session.get('case').id}/1" onclick="return checkModification();">${_('cm_np_select')}</a></li>
+ % if session.get('render_mode') == 'ro':
+ <li><a href="/formularpage/show/${c.page_id}" onclick="return checkModification();">${h.get_pagename(c.page_id)}</a></li>
+ % else:
+ <li><a href="/formularpage/edit/${c.page_id}" onclick="return checkModification();">${h.get_pagename(c.page_id)}</a></li>
+ % endif
+</%def>
+
+<%def name="buildModusfield()">
+ <div id="modusfield">
+ <div id="modusinfo">
+ % if session.get('render_mode') == 'ro':
+ <h5>Ansichtsmodus</h5>
+ % else:
+ <h5>Bearbeitungsmodus</h5>
+ % endif
+ </div>
+ <div class="actions">
+ <ul>
+ % if h.hasRole(['cm_ka']):
+ % if session.get('render_mode') == 'ro':
+ <li><a href="/formularpage/edit/${c.page_id}" onclick="return checkModification();"> ${_('cm_actions_link_edit')}</a></li>
+ % else:
+ <li><a href="/formularpage/show/${c.page_id}" onclick="return checkModification();"> ${_('cm_actions_link_show')}</a></li>
+ % endif
+ % endif
+ <li><a href="/formularpage/printout/${c.page_id}" target="_blank" onclick="return checkModification();"> ${_('cm_actions_link_printout')}</a></li>
+ </ul>
+ </div>
+ </div>
+</%def>
+
+<%def name="buildContentHeader()">
+ <div id="content_header">
+ %if not c.print_version:
+ <div id="content_ueberschrift">${h.literal(c.formularheader)}</div>
+ %endif
+ ${self.buildModusfield()}
+ </div><br>
+</%def>
More information about the Mpuls-commits
mailing list