[Mpuls-commits] r3738 - wasko/trunk/waskoweb/templates/caselifetime

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Sep 20 11:01:00 CEST 2010


Author: torsten
Date: 2010-09-20 11:00:59 +0200 (Mon, 20 Sep 2010)
New Revision: 3738

Modified:
   wasko/trunk/waskoweb/templates/caselifetime/verlaengerung.mako
Log:
Changed style of first extratime fields


Modified: wasko/trunk/waskoweb/templates/caselifetime/verlaengerung.mako
===================================================================
--- wasko/trunk/waskoweb/templates/caselifetime/verlaengerung.mako	2010-09-20 08:19:15 UTC (rev 3737)
+++ wasko/trunk/waskoweb/templates/caselifetime/verlaengerung.mako	2010-09-20 09:00:59 UTC (rev 3738)
@@ -9,7 +9,11 @@
             Datum erste Verlängerung bis</td>
           </label>
         <td class="field">
-            <input type="text" id="cm_datum_verlaengerung_1" name="cm_datum_verlaengerung_1" value="" ${c.num_verlaengerung >= 1 and 'readonly' or ''}> 
+            % if c.num_verlaengerung >= 1:
+            <input type="text" id="cm_datum_verlaengerung_1" name="cm_datum_verlaengerung_1" value="" readonly class="disabled">
+            % else:
+            <input type="text" id="cm_datum_verlaengerung_1" name="cm_datum_verlaengerung_1" value="">
+            % endif
         </td>
         <td><form:error name="cm_datum_verlaengerung_1"/></td>
       </tr>
@@ -20,7 +24,11 @@
           </label>
         </td>
         <td class="field">
-          <input type="checkbox" id="cm_bestaet_verlaengerung_1" name="cm_bestaet_verlaengerung_1" value="1" ${c.num_verlaengerung >= 1 and 'readonly' or ''}>
+          % if c.num_verlaengerung >= 1:
+          <input type="checkbox" id="cm_bestaet_verlaengerung_1" name="cm_bestaet_verlaengerung_1" value="1" readonly class="disabled">
+          % else:
+          <input type="checkbox" id="cm_bestaet_verlaengerung_1" name="cm_bestaet_verlaengerung_1" value="1">
+          % endif
         </td>
         <td><form:error name="cm_bestaet_verlaengerung_1"/></td>
       </tr>
@@ -31,7 +39,11 @@
           </label>
         </td>
         <td class="field">
-          <textarea class="" name="cm_anmerk_verlaengerung_1" id="anmerkungen" rows="3" cols="80" onchange="setModification();"  ${c.num_verlaengerung >= 1 and 'readonly' or ''}></textarea>
+          % if c.num_verlaengerung >= 1:
+          <textarea name="cm_anmerk_verlaengerung_1" id="anmerkungen" rows="3" cols="80" onchange="setModification();" readonly class="disabled"></textarea>
+          % else:
+          <textarea name="cm_anmerk_verlaengerung_1" id="anmerkungen" rows="3" cols="80" onchange="setModification();"></textarea>
+          % endif
         </td>
         <td><form:error name="cm_anmerk_verlaengerung_1"/></td>
       </tr>



More information about the Mpuls-commits mailing list