[Mpuls-commits] r6165 - wasko/trunk/waskoweb/templates/settings
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Fri Jan 18 12:03:52 CET 2013
Author: ludwig
Date: 2013-01-18 12:03:52 +0100 (Fri, 18 Jan 2013)
New Revision: 6165
Modified:
wasko/trunk/waskoweb/templates/settings/edit.mako
wasko/trunk/waskoweb/templates/settings/show.mako
Log:
Add meta_transfer option to show and edit dialogs.
Modified: wasko/trunk/waskoweb/templates/settings/edit.mako
===================================================================
--- wasko/trunk/waskoweb/templates/settings/edit.mako 2013-01-17 11:09:28 UTC (rev 6164)
+++ wasko/trunk/waskoweb/templates/settings/edit.mako 2013-01-18 11:03:52 UTC (rev 6165)
@@ -110,11 +110,22 @@
% if g.mpuls_config.is_enabled('case-module', 'meta-server'):
<fieldset><legend>${_('Meta connection')}</legend>
- % if c.agency.getMetaUserName() and c.agency.getMetaUserPassword():
- <div>${_('Meta connection is enabled')}</div>
- % else:
- <div>${_('Meta connection is not enabled')}</div>
- % endif
+ % if c.agency.getMetaUserName() and c.agency.getMetaUserPassword():
+ <div>${_('Meta connection is enabled')}</div>
+ <div class="waska_form_element w100">
+ % if c.form_errors.get('meta_transfer'):
+ <a href="#error_list">
+ <img class="smallicon" alt="" src="${h.url('/images/icons/info/failure_22.png')}">
+ </a>
+ % endif
+ <input id="meta_transfer" name="meta_transfer" type="checkbox"/>
+ <label for="meta_transfer">
+ ${_('Transfer cases to meta server')}
+ </label>
+ </div>
+ % else:
+ <div>${_('Meta connection is not enabled')}</div>
+ % endif
</fieldset>
% endif
<div id="admin_edit_settings_submit" class="waska_form_element w100">
Modified: wasko/trunk/waskoweb/templates/settings/show.mako
===================================================================
--- wasko/trunk/waskoweb/templates/settings/show.mako 2013-01-17 11:09:28 UTC (rev 6164)
+++ wasko/trunk/waskoweb/templates/settings/show.mako 2013-01-18 11:03:52 UTC (rev 6165)
@@ -86,6 +86,18 @@
<p>${_('Meta connection')}</p>
% if c.agency.getMetaUserName() and c.agency.getMetaUserPassword():
<div>${_('Meta connection is enabled')}</div>
+ <table>
+ <tr>
+ <td class="label table_header_v">${_('Transfer cases to meta server')}</td>
+ <td class="table_header_v">
+ % if c.agency.isMetaTransfer():
+ ${_('Yes')}
+ % else:
+ ${_('No')}
+ % endif
+ </td>
+ </tr>
+ </table>
% else:
<div>${_('Meta connection is not enabled')}</div>
% endif
More information about the Mpuls-commits
mailing list