[Mpuls-commits] r5418 - base/trunk/mpulsweb/templates/logbook

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 7 11:04:28 CEST 2011


Author: roland
Date: 2011-10-07 11:04:28 +0200 (Fri, 07 Oct 2011)
New Revision: 5418

Modified:
   base/trunk/mpulsweb/templates/logbook/edit_body.mako
Log:
issue2299: added JS warnings for modified form elements for logbook


Modified: base/trunk/mpulsweb/templates/logbook/edit_body.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/edit_body.mako	2011-10-07 08:55:07 UTC (rev 5417)
+++ base/trunk/mpulsweb/templates/logbook/edit_body.mako	2011-10-07 09:04:28 UTC (rev 5418)
@@ -4,28 +4,28 @@
   <div class="w25">
     % if c.form_errors.get('date'):
       <label for="date" class="error_font">${_('Date:')}</label><br>
-      <input type="text" class="field error_box" name="date" id="date" maxlength="10"/>
+      <input type="text" class="field error_box" name="date" id="date" maxlength="10" onchange="setModification();"/>
     % else:
       <label for="date">${_('Date:')}</label><br>
-      <input type="text" class="field" name="date" id="date" maxlength="10"/>
+      <input type="text" class="field" name="date" id="date" maxlength="10" onchange="setModification();"/>
     % endif
   </div>
   <div class="w75">
     % if c.form_errors.get('time'):
       <label for="date" class="error_font">${_('Time:')}</label><br>
-      <input type="text" class="field error_box" name="time" id="time" maxlength="5"/>
+      <input type="text" class="field error_box" name="time" id="time" maxlength="5" onchange="setModification();"/>
     % else:
       <label for="time">${_('Time:')}</label><br>
-      <input type="text" class="field" name="time" id="time" maxlength="5"/>
+      <input type="text" class="field" name="time" id="time" maxlength="5" onchange="setModification();"/>
     % endif
   </div>
   <div class="w25">
     % if c.form_errors.get('duration'):
       <label for="duration" class="error_font">${_('Duration in minutes')}:</label><br>
-      <input type="text" class="field error_box" name="duration" id="duration" maxlength="4"/>
+      <input type="text" class="field error_box" name="duration" id="duration" maxlength="4" onchange="setModification();"/>
     % else:
       <label for="duration">${_('Duration in minutes')}:</label><br>
-      <input type="text" class="field" name="duration" id="duration" maxlength="4"/>
+      <input type="text" class="field" name="duration" id="duration" maxlength="4" onchange="setModification();"/>
     % endif
   </div>
 </fieldset>
@@ -43,15 +43,15 @@
 % endfor
   % if c.form_errors.get('short_notice'):
     <label for="short_notice" class="error_font">${_('Mention rest:')}</label><br>
-    <input type="text" class="field error_box" name="short_notice" id="short_notice" maxlength="80"/>
+    <input type="text" class="field error_box" name="short_notice" id="short_notice" maxlength="80" onchange="setModification();"/>
   % else:
     <label for="short_notice">${_('Mention rest:')}</label><br>
-    <input type="text" class="field" name="short_notice" id="short_notice" maxlength="80"/>
+    <input type="text" class="field" name="short_notice" id="short_notice" maxlength="80" onchange="setModification();"/>
   % endif
 </div>
 <div>
   <label for="notice">${_('Note')}:</label><br>
-  <textarea cols="70" rows="10" name="notice" id="notice"></textarea>
+  <textarea cols="70" rows="10" name="notice" id="notice" onchange="setModification();"></textarea>
 </div>
 <div>
   <input type="hidden" name="case_id" value="">



More information about the Mpuls-commits mailing list