[Mpuls-commits] r6084 - base/trunk/mpulsweb/templates/settings

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Tue Oct 2 11:33:24 CEST 2012


Author: roland
Date: 2012-10-02 11:33:24 +0200 (Tue, 02 Oct 2012)
New Revision: 6084

Modified:
   base/trunk/mpulsweb/templates/settings/edit.mako
   base/trunk/mpulsweb/templates/settings/show.mako
Log:
Add job-percentage support to the edit and show templates (2066-5)


Modified: base/trunk/mpulsweb/templates/settings/edit.mako
===================================================================
--- base/trunk/mpulsweb/templates/settings/edit.mako	2012-10-02 09:32:44 UTC (rev 6083)
+++ base/trunk/mpulsweb/templates/settings/edit.mako	2012-10-02 09:33:24 UTC (rev 6084)
@@ -83,6 +83,22 @@
           </p>
         </div>
       </fieldset>
+
+      % if g.mpuls_config.is_enabled('job_percentage', 'enabled'):
+      <fieldset>
+        <legend>${_('Edit job percentage')}</legend>
+        <div class="waska_form_element">
+          <label for="meta_user_name">
+            ${_('Job percentage')}
+          </label>
+          <input type="text" id="job_percentage" name="job_percentage" value="" maxlength="120"/>
+          <p class="info">
+            ${_('Description help comes here')}
+          </p>
+        </div>
+      </fieldset>
+      % endif
+
       % if g.mpuls_config.is_enabled('case-module', 'meta-server'):
       <fieldset>
         <legend>${_('Edit meta user settings')}</legend>

Modified: base/trunk/mpulsweb/templates/settings/show.mako
===================================================================
--- base/trunk/mpulsweb/templates/settings/show.mako	2012-10-02 09:32:44 UTC (rev 6083)
+++ base/trunk/mpulsweb/templates/settings/show.mako	2012-10-02 09:33:24 UTC (rev 6084)
@@ -66,6 +66,15 @@
       % endif
     </td>
   </tr>
+  % if g.mpuls_config.is_enabled('job_percentage', 'enabled'):
+  <tr>
+    <td class="label table_header_v table_width_name">
+      ${_('Job percentage')}
+    </td>
+    <td class="table_row_v">${c.agency.getJobPercentage()}
+    </td>
+  </tr>
+  % endif
 </table>
 
 % if g.mpuls_config.is_enabled('case-module', 'meta-server'):



More information about the Mpuls-commits mailing list