[Mpuls-commits] r6076 - base/trunk/mpulsweb/templates/administration
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Thu Sep 27 17:57:05 CEST 2012
Author: torsten
Date: 2012-09-27 17:57:05 +0200 (Thu, 27 Sep 2012)
New Revision: 6076
Modified:
base/trunk/mpulsweb/templates/administration/edit_user.mako
base/trunk/mpulsweb/templates/administration/new_user.mako
base/trunk/mpulsweb/templates/administration/show_user_body.mako
Log:
Added elements to set the responisibility of users for agencys if the
evaluations server is enabled.
Modified: base/trunk/mpulsweb/templates/administration/edit_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/edit_user.mako 2012-09-27 15:54:28 UTC (rev 6075)
+++ base/trunk/mpulsweb/templates/administration/edit_user.mako 2012-09-27 15:57:05 UTC (rev 6076)
@@ -85,9 +85,23 @@
<td></td>
</tr>
</table>
-
-
</fieldset>
+ % if g.mpuls_config.is_enabled('module', 'agency-overview'):
+ <fieldset><legend>${_('Visibility')}</legend>
+ <p>
+ <label for="agencys">${_('Agency')}</label><br>
+ <select id="agencys" name="agencys" size="5" multiple>
+ % for agency in c.agency_list:
+ % if int(agency.id) in c.uo.linked_fkz:
+ <option value="${agency.id}" selected="selected">${agency.name} (${agency.count})</option>
+ % else:
+ <option value="${agency.id}">${agency.name} (${agency.count})</option>
+ % endif
+ % endfor
+ </select>
+ </p>
+ </fieldset>
+ %endif
<fieldset><legend>${_('Information about login')}</legend>
<table>
<tr>
Modified: base/trunk/mpulsweb/templates/administration/new_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/new_user.mako 2012-09-27 15:54:28 UTC (rev 6075)
+++ base/trunk/mpulsweb/templates/administration/new_user.mako 2012-09-27 15:57:05 UTC (rev 6076)
@@ -83,6 +83,18 @@
maxlength="64">
</div>
</fieldset>
+ % if g.mpuls_config.is_enabled('module', 'agency-overview'):
+ <fieldset><legend>${_('Visibility')}</legend>
+ <p>
+ <label for="agencys">${_('Agency')}</label><br>
+ <select id="agencys" name="agencys" size="5" multiple>
+ % for agency in c.agency_list:
+ <option value="${agency.id}">${agency.name} (${agency.count})</option>
+ % endfor
+ </select>
+ </p>
+ </fieldset>
+ %endif
<fieldset><legend>${_('Information about login')}</legend>
<div class="w25">
% if c.form_errors.get('login'):
Modified: base/trunk/mpulsweb/templates/administration/show_user_body.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/show_user_body.mako 2012-09-27 15:54:28 UTC (rev 6075)
+++ base/trunk/mpulsweb/templates/administration/show_user_body.mako 2012-09-27 15:57:05 UTC (rev 6076)
@@ -27,6 +27,12 @@
<td class="table_row_v_2">${c.vuo.name | F.NA}</td>
</tr>
% endif
+ % if g.mpuls_config.is_enabled('module', 'agency-overview'):
+ <tr>
+ <td class="label table_header_v">${_('Visibility')}</td>
+ <td class="table_row_v">${", ".join(agency.name for agency in c.agency_list if int(agency.id) in c.uo.linked_fkz)}</td>
+ </tr>
+ % endif
</table>
<h2>${_('Login settings')}</h2>
<table>
More information about the Mpuls-commits
mailing list