[Mpuls-commits] r967 - wasko/branches/2.0/waskaweb/templates/casemanagement

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jan 28 09:48:51 CET 2010


Author: torsten
Date: 2010-01-28 09:48:51 +0100 (Thu, 28 Jan 2010)
New Revision: 967

Modified:
   wasko/branches/2.0/waskaweb/templates/casemanagement/upload.mako
Log:
* waskaweb/templates/casemanagement/upload.mako: Fixed formatting.
Provive "name" parameter for submit button, Changed h.file_field call
to h.file.


Modified: wasko/branches/2.0/waskaweb/templates/casemanagement/upload.mako
===================================================================
--- wasko/branches/2.0/waskaweb/templates/casemanagement/upload.mako	2010-01-28 08:38:33 UTC (rev 966)
+++ wasko/branches/2.0/waskaweb/templates/casemanagement/upload.mako	2010-01-28 08:48:51 UTC (rev 967)
@@ -1,23 +1,28 @@
 ## -*- coding: utf-8 -*-
 <%inherit file="../main.mako" />
 <%!  import waskaweb.lib.filters as F %>
+
 <%def name="buildNavipath()">
-		${parent.buildNavipath()}
-	<li><a href="/case">${_('cm_np_root')}</a></li>
-	<li><a href="/case/import/">${_('cm_np_import')}</a></li>
+  ${parent.buildNavipath()}
+  <li><a href="/case">${_('cm_np_root')}</a></li>
+  <li><a href="/case/import/">${_('cm_np_import')}</a></li>
 </%def>
+
 <h1>${_('cm_header_import')}</h1>
 <div id="waska_form" class="import_box">
-
-<h2>XML-Import</h2>
-<p class="import_p">Es können Dateien im XML-Format (.xml) angegeben werden. <br>
-Die Größe einer Datei darf 10MB nicht überschreiten.</p>
-<div class="import_box_dialog">
-${h.form(h.url_for(action='importXMLAction'), multipart=True)}
-<label class="import_label" for="xmlfile"><strong class="import_number">1.</strong> Datei wählen:</label>
-${h.file_field('xmlfile')}<br>
-<label class="import_label" for="pdfimport"><strong class="import_number">2.</strong> Datei importieren:</label>
-${h.submit(_('cm_from_import_submit'))}
-${h.end_form()}
+  <h2>XML-Import</h2>
+  <p class="import_p">Es können Dateien im XML-Format (.xml) angegeben werden.<br>
+  Die Größe einer Datei darf 10MB nicht überschreiten.</p>
+  <div class="import_box_dialog">
+    ${h.form(h.url_for(action='importXMLAction'), multipart=True)}
+    <label class="import_label" for="xmlfile">
+      <strong class="import_number">1.</strong> Datei wählen:
+    </label>
+    ${h.file('xmlfile')}<br>
+    <label class="import_label" for="pdfimport">
+      <strong class="import_number">2.</strong> Datei importieren:
+    </label>
+    ${h.submit('importXML', _('cm_from_import_submit'))}
+    ${h.end_form()}
+  </div>
 </div>
-</div>



More information about the Mpuls-commits mailing list