[Mpuls-commits] r5155 - in base/trunk: . mpulsweb/lib mpulsweb/templates
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 7 09:37:01 CEST 2011
Author: torsten
Date: 2011-07-07 09:36:59 +0200 (Thu, 07 Jul 2011)
New Revision: 5155
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/lib/config.py
base/trunk/mpulsweb/templates/main.mako
Log:
Added new config var to enable and disable display of link to create new cases.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2011-07-06 16:57:15 UTC (rev 5154)
+++ base/trunk/ChangeLog 2011-07-07 07:36:59 UTC (rev 5155)
@@ -1,3 +1,10 @@
+2011-07-07 Torsten Irländer <torsten.irlaender at intevation.de>
+
+ * mpulsweb/lib/config.py: Added new config var "create" to enable and
+ disable creation of new cases. Defaults to enabled.
+ * mpulsweb/templates/main.mako: Show create link fr new cases
+ depending on new config var "create" of case-module.
+
2011-07-06 Bernhard Herzog <bh at intevation.de>
* mpulsweb/lib/security.py (store_dbname_in_session): New. Store
Modified: base/trunk/mpulsweb/lib/config.py
===================================================================
--- base/trunk/mpulsweb/lib/config.py 2011-07-06 16:57:15 UTC (rev 5154)
+++ base/trunk/mpulsweb/lib/config.py 2011-07-07 07:36:59 UTC (rev 5155)
@@ -144,6 +144,7 @@
set('case-module', 'search', '1')
set('case-module', 'casebundle', '1')
set('case-module', 'appointments', '1')
+ set('case-module', 'create', '1')
set('case-module', 'import', '1')
set('case-module', 'exportXML', '1')
set('case-module', 'exportXLS', '1')
Modified: base/trunk/mpulsweb/templates/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/main.mako 2011-07-06 16:57:15 UTC (rev 5154)
+++ base/trunk/mpulsweb/templates/main.mako 2011-07-07 07:36:59 UTC (rev 5155)
@@ -117,11 +117,13 @@
</a>
</li>
% if h.hasRole(['cm_ka']):
+ % if g.mpuls_config.is_enabled('case-module', 'create'):
<li>
<a href="${h.url_for(controller='/case', action='new')}">
${_('New case document')}
</a>
</li>
+ % endif
% if g.mpuls_config.is_enabled('case-module', 'import'):
<li>
<a href="${h.url_for(controller='/case', action='importCase')}">
More information about the Mpuls-commits
mailing list