[Mpuls-commits] r681 - in wasko/branches/1.0: . waskaweb/templates/caselifetime

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 11 10:41:39 CET 2009


Author: torsten
Date: 2009-11-11 10:41:38 +0100 (Wed, 11 Nov 2009)
New Revision: 681

Modified:
   wasko/branches/1.0/ChangeLog.txt
   wasko/branches/1.0/waskaweb/templates/caselifetime/overview.mako
Log:
Partial fix for issue554


Modified: wasko/branches/1.0/ChangeLog.txt
===================================================================
--- wasko/branches/1.0/ChangeLog.txt	2009-11-11 09:11:21 UTC (rev 680)
+++ wasko/branches/1.0/ChangeLog.txt	2009-11-11 09:41:38 UTC (rev 681)
@@ -11,7 +11,9 @@
 
 	Issue554
 
-	* waskaweb/controllers/caselifetime.py: Added check on None-Values.
+	* waskaweb/controllers/caselifetime.py: 
+		- Added check on None-Values.
+		- Disable Submit for admin in Verwaltungsfunktionen
 
 
 2009-11-04 	Torsten Irlaender	<torsten.irlaender at intevation.de> 

Modified: wasko/branches/1.0/waskaweb/templates/caselifetime/overview.mako
===================================================================
--- wasko/branches/1.0/waskaweb/templates/caselifetime/overview.mako	2009-11-11 09:11:21 UTC (rev 680)
+++ wasko/branches/1.0/waskaweb/templates/caselifetime/overview.mako	2009-11-11 09:41:38 UTC (rev 681)
@@ -53,7 +53,11 @@
       <td class="table_row_h"><strong>Verlängerung des Integrationsprozesses</strong>
         <a target="_blank" href="/case/showhelp/verlaengerung"><img alt="Hilfesymbol" src="/images/icons/form_help.png" border="0"></a>
       </td>
+      % if h.hasRole(['cm_ka']):
       <td class="table_row_h" align="right"><input value="Ausführen" name="verlaengerung" type="submit"></td>
+      % else:
+      <td class="table_row_h" align="right"><input value="Ausführen" name="verlaengerung" type="submit" disabled></td>
+      % endif
     % else:
       <td class="table_row_h inactive"><strong>Verlängerung des Integrationsprozesses</strong>
         <a target="_blank" href="/case/showhelp/verlaengerung"><img alt="Hilfesymbol" src="/images/icons/form_help.png" border="0"></a>
@@ -175,7 +179,11 @@
           <td><strong>Wiederaufnahme nach erfolgreicher Reintegration</strong>
           <a target="_blank" href="/case/showhelp/wiederaufnahme"><img alt="Hilfesymbol" src="/images/icons/form_help.png" border="0"></a>
           </td>
+          % if h.hasRole(['cm_ka']):
           <td align="right"><input value="Ausführen" type="submit" name="wiederaufnahme"></td>
+          % else:
+          <td align="right"><input value="Ausführen" type="submit" name="wiederaufnahme" disabled></td>
+          % endif
         % else:
           <td class="inactive"><strong>Wiederaufnahme nach erfolgreicher Reintegration</strong>
           <a target="_blank" href="/case/showhelp/wiederaufnahme"><img alt="Hilfesymbol" src="/images/icons/form_help.png" border="0"></a>
@@ -325,7 +333,11 @@
         <td class="table_row_h"><strong>Neuaufnahme nach sonstiger Beendigung</strong>
           <a target="_blank" href="/case/showhelp/neuaufnahme"><img alt="Hilfesymbol" src="/images/icons/form_help.png" border="0"></a>
         </td>
+        % if h.hasRole(['cm_ka']):
         <td class="table_row_h" align="right"><input value="Ausführen" type="submit" name="neuaufnahme"></td>
+        % else:
+        <td class="table_row_h" align="right"><input value="Ausführen" type="submit" name="neuaufnahme" disabled></td>
+        % endif
       % else:
         <td class="table_row_h inactive"><strong>Neuaufnahme nach sonstiger Beendigung</strong>
           <a target="_blank" href="/case/showhelp/neuaufnahme"><img alt="Hilfesymbol" src="/images/icons/form_help.png" border="0"></a>
@@ -379,7 +391,11 @@
         <td><strong>Abbruch der Eingangsdokumentation</strong>
           <a target="_blank" href="/case/showhelp/abbruch"><img alt="Hilfesymbol" src="/images/icons/form_help.png" border="0"></a>
         </td>
+        % if h.hasRole(['cm_ka']):
         <td class="" align="right"><input value="Ausführen" type="submit" name="abort"></td>
+        % else:
+        <td class="" align="right"><input value="Ausführen" type="submit" name="abort" disabled></td>
+        % endif
       % else:
         <td class="inactive"><strong>Abbruch der Eingangsdokumentation</strong>
           <a target="_blank" href="/case/showhelp/abbruch"><img alt="Hilfesymbol" src="/images/icons/form_help.png" border="0"></a>



More information about the Mpuls-commits mailing list