[Mpuls-commits] r4631 - base/trunk/mpulsweb/templates/search

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 16 15:33:39 CET 2011


Author: torsten
Date: 2011-02-16 15:33:38 +0100 (Wed, 16 Feb 2011)
New Revision: 4631

Modified:
   base/trunk/mpulsweb/templates/search/search.mako
Log:
* mpulsweb/templates/search/search.mako: Display federal state search
options if this search option is enabled in configuration.


Modified: base/trunk/mpulsweb/templates/search/search.mako
===================================================================
--- base/trunk/mpulsweb/templates/search/search.mako	2011-02-16 14:32:29 UTC (rev 4630)
+++ base/trunk/mpulsweb/templates/search/search.mako	2011-02-16 14:33:38 UTC (rev 4631)
@@ -115,6 +115,95 @@
         </td>
       </tr>
       % endif
+      % if g.mpuls_config.is_enabled('search', 'option-federalstate'):
+        <tr style="${not c.extended_search and 'display:none' or ''}">
+          <td class="label">${_('Federal state')}</td>
+          <td colspan="2">
+            <a href="#">${_('Select all')}</a> | 
+            <a href="#">${_('Deselect all')}</a><br> 
+            <table style="font-size: 0.8em">
+              <tbody>
+                <tr>
+                  <td>
+                    <input type="checkbox" checked="checked" id="BW" value="0" name="federal_state">
+                    <label for="BW">Baden-Württemberg</label> 
+                  </td>
+                  <td>
+                    <input type="checkbox" checked="checked" id="BY" value="1" name="federal_state">
+                    <label for="BY">Bayern</label> 
+                  </td>
+                  <td>
+                    <input type="checkbox" checked="checked" id="BE" value="2" name="federal_state">
+                    <label for="BE">Berlin</label> 
+                  </td>
+                    </tr>
+                    <tr>
+                  <td>
+                    <input type="checkbox" checked="checked" id="BB" value="3" name="federal_state">
+                    <label for="BB">Brandenburg</label> 
+                  </td>
+                  <td>
+                    <input type="checkbox" checked="checked" id="HB" value="4" name="federal_state">
+                    <label for="HB">Bremen</label> 
+                  </td>
+                  <td>
+                    <input type="checkbox" checked="checked" id="HH" value="5" name="federal_state">
+                    <label for="HH">Hamburg</label> 
+                  </td>
+                    </tr>
+                    <tr>
+                  <td>
+                    <input type="checkbox" checked="checked" id="HE" value="6" name="federal_state">
+                    <label for="HE">Hessen</label> 
+                  </td>
+                  <td>
+                    <input type="checkbox" checked="checked" id="MV" value="7" name="federal_state">
+                    <label for="MV">Mecklenburg-Vorpommern</label> 
+                  </td>
+                  <td>
+                    <input type="checkbox" checked="checked" id="NI" value="8" name="federal_state">
+                    <label for="NI">Niedersachsen</label> 
+                  </td>
+                    </tr>
+                    <tr>
+                  <td>
+                    <input type="checkbox" checked="checked" id="NW" value="9" name="federal_state">
+                    <label for="NW">Nordrhein-Westfalen</label> 
+                  </td>
+                  <td>
+                    <input type="checkbox" checked="checked" id="RP" value="10" name="federal_state">
+                    <label for="RP">Rheinland-Pfalz</label> 
+                  </td>
+                  <td>
+                    <input type="checkbox" checked="checked" id="SL" value="11" name="federal_state">
+                    <label for="SL">Saarland</label> 
+                  </td>
+                    </tr>
+                    <tr>
+                  <td>
+                    <input type="checkbox" checked="checked" id="SN" value="12" name="federal_state">
+                    <label for="SN">Sachsen</label> 
+                  </td>
+                  <td>
+                    <input type="checkbox" checked="checked" id="ST" value="13" name="federal_state">
+                    <label for="ST">Sachsen-Anhalt</label> 
+                  </td>
+                  <td>
+                    <input type="checkbox" checked="checked" id="SH" value="14" name="federal_state">
+                    <label for="SH">Schleswig-Holstein</label> 
+                  </td>
+                    </tr>
+                    <tr>
+                  <td>
+                    <input type="checkbox" checked="checked" id="TH" value="15" name="federal_state">
+                    <label for="TH">Thüringen</label> 
+                  </td>
+                </tr>
+              </tbody>
+            </table>
+          </td>
+        </tr>
+      % endif
       % if g.case_search.supports_option("gender") and g.mpuls_config.is_enabled('search', 'option-gender'):
         <tr style="${not c.extended_search and 'display:none' or ''}">
           <td class="label">${_('Gender')}</td>



More information about the Mpuls-commits mailing list