[Mpuls-commits] r6006 - in base/trunk/mpulsweb: controllers public/styles
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Wed Aug 1 14:29:35 CEST 2012
Author: ludwig
Date: 2012-08-01 14:29:35 +0200 (Wed, 01 Aug 2012)
New Revision: 6006
Modified:
base/trunk/mpulsweb/controllers/case.py
base/trunk/mpulsweb/public/styles/screen.css
Log:
Add set of sync permission, if the in new case dialog sync_permission is set.
Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py 2012-08-01 12:28:06 UTC (rev 6005)
+++ base/trunk/mpulsweb/controllers/case.py 2012-08-01 12:29:35 UTC (rev 6006)
@@ -572,6 +572,11 @@
if form_result.get('statement_signed'):
statement.sign()
+ if g.mpuls_config.is_enabled('case-module', 'meta-server'):
+ meta = case.getMeta()
+ if form_result.get('sync_permission'):
+ meta.allow_sync()
+
# Reload case to load navigation and set session correct. Loading
# overhead here is not nice but not critical as creating new cases
# should not happen so often
Modified: base/trunk/mpulsweb/public/styles/screen.css
===================================================================
--- base/trunk/mpulsweb/public/styles/screen.css 2012-08-01 12:28:06 UTC (rev 6005)
+++ base/trunk/mpulsweb/public/styles/screen.css 2012-08-01 12:29:35 UTC (rev 6006)
@@ -585,6 +585,9 @@
#statement_signed {
margin: 1em 1em 0.2em 0.4em;
}
+#sync_permission {
+ margin: 1em 1em 0.2em 0.4em;
+}
table#cmphases td {
min-height: 2.5em;
More information about the Mpuls-commits
mailing list