[Mpuls-commits] r2538 - wasko/branches/2.0/jmdweb/templates/jmdstruktur

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Apr 28 12:52:26 CEST 2010


Author: torsten
Date: 2010-04-28 12:52:25 +0200 (Wed, 28 Apr 2010)
New Revision: 2538

Added:
   wasko/branches/2.0/jmdweb/templates/jmdstruktur/permission.mako
Log:
* jmdweb/templates/jmdstruktur/permission.mako: Added new template to
	set permission for jmdstruktur-modul


Added: wasko/branches/2.0/jmdweb/templates/jmdstruktur/permission.mako
===================================================================
--- wasko/branches/2.0/jmdweb/templates/jmdstruktur/permission.mako	2010-04-28 10:51:21 UTC (rev 2537)
+++ wasko/branches/2.0/jmdweb/templates/jmdstruktur/permission.mako	2010-04-28 10:52:25 UTC (rev 2538)
@@ -0,0 +1,40 @@
+## -*- coding: utf-8 -*-
+<%inherit file="../main.mako" />
+
+<%def name="buildNavipath()">
+  ${parent.buildNavipath()}
+  <li><a href="/case/">${_('cm_np_root')}</a></li>
+  <li><a href="/case/">${_('cm_np_new')}</a></li>
+</%def>
+
+<div class="waska_form">
+  <form id="waska_form" action="/jmdstruktur/permissionAction" accept-charset="UTF-8"
+        name="waska_form" method="POST">
+    <h1>Benutzerrechte</h1>
+    <p>
+      Bitte wählen Sie aus der Liste die Benutzer aus, die berechtigt sein sollen die JMD-Sturkturfallakten lesene, und bearbeiten zu können.
+    </p>
+    <fieldset>
+      <legend>Benutzer</legend>
+    % if len(c.userlist) > 0:
+      <ul>
+      % for user in c.userlist:
+        <li>
+          <input type="checkbox" name="userid" value="${user.id}" id="user-${user.id}">
+          <label for="user-${user.id}">
+            ${user.last_name}, ${user.first_name}
+          </label>
+        </li>
+      % endfor
+      </ul>
+    % else:
+      Keine Benutzer gefunden
+    % endif
+    </fieldset>
+    <div class="input_space">
+      <p>
+        <input type="submit" value="Berechtigung setzen" name="save">
+      </p>
+    </div>
+  </form>
+</div>



More information about the Mpuls-commits mailing list