[Mpuls-commits] r5349 - base/trunk/mpulsweb/templates/settings

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Sep 15 17:32:17 CEST 2011


Author: bh
Date: 2011-09-15 17:32:17 +0200 (Thu, 15 Sep 2011)
New Revision: 5349

Modified:
   base/trunk/mpulsweb/templates/settings/edit.mako
   base/trunk/mpulsweb/templates/settings/show.mako
Log:
Add support for the meta-server settings to the settings templates.
The meta-server part of the templates was copied from WASKU web revision
425:73012a984201.


Modified: base/trunk/mpulsweb/templates/settings/edit.mako
===================================================================
--- base/trunk/mpulsweb/templates/settings/edit.mako	2011-09-15 14:24:54 UTC (rev 5348)
+++ base/trunk/mpulsweb/templates/settings/edit.mako	2011-09-15 15:32:17 UTC (rev 5349)
@@ -83,6 +83,23 @@
           </p>
         </div>
       </fieldset>
+      % if g.mpuls_config.is_enabled('case-module', 'meta-server'):
+      <fieldset>
+        <legend>${_('Edit meta user settings')}</legend>
+        <div class="waska_form_element w30">
+          <label for="meta_user_name">
+            ${_('Meta user name')}
+          </label>
+          <input type="text" id="meta_user_name" name="meta_user_name" value="" maxlength="120"/>
+        </div>
+        <div class="waska_form_element w30">
+          <label for="meta_user_password">
+            ${_('Meta user password')}
+          </label>
+          <input type="text" id="meta_user_password" name="meta_user_password" value="" maxlength="120"/>
+        </div>
+      </fieldset>
+      % endif
       <div id="admin_edit_settings_submit" class="waska_form_element w100">
         <input type="submit" value="${_('Save settings')}">
       </div>

Modified: base/trunk/mpulsweb/templates/settings/show.mako
===================================================================
--- base/trunk/mpulsweb/templates/settings/show.mako	2011-09-15 14:24:54 UTC (rev 5348)
+++ base/trunk/mpulsweb/templates/settings/show.mako	2011-09-15 15:32:17 UTC (rev 5349)
@@ -67,3 +67,23 @@
     </td>
   </tr>
 </table>
+
+% if g.mpuls_config.is_enabled('case-module', 'meta-server'):
+<p>${_('Here you can see meta user settings')}</p>
+<table>
+  <tr>
+    <td class="label table_header_v table_width_name">
+      ${_('Name of the meta user')}
+    </td>
+    <td class="table_description">${c.agency.getMetaUserName()}
+    </td>
+  </tr>
+  <tr>
+    <td class="label table_width_name">
+      ${_('Password of the meta user')}
+    </td>
+    <td class="table_description">${c.agency.getMetaUserPassword()}
+    </td>
+  </tr>
+% endif
+</table>



More information about the Mpuls-commits mailing list