Dienstleistungsbericht: Nicht editierbare Felder nicht zur Auswahl geben
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 9 Nov 2012 16:23:34 +0000 (17:23 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 9 Nov 2012 16:23:34 +0000 (17:23 +0100)
Fixt #2004.

templates/webpages/ic/search.html

index ffdf29b..8379e15 100644 (file)
         <input name="itemstatus" id="itemstatus_active" class="radio" type="radio" value="active" checked>
         <label for="itemstatus_active">[% 'Active' | $T8 %]</label>
         <input name="itemstatus" id="itemstatus_onhand" class="radio" type="radio" value="onhand">
+      [%- UNLESS is_service %]
         <label for="itemstatus_onhand">[% 'On Hand' | $T8 %]</label>
         <input name="itemstatus" id="itemstatus_short" class="radio" type="radio" value="short">
         <label for="itemstatus_short">[% 'Short' | $T8 %]</label>
         <input name="itemstatus" id="itemstatus_obsolete" class="radio" type="radio" value="obsolete">
+      [%- END %]
         <label for="itemstatus_obsolete">[% 'Obsolete' | $T8 %]</label>
         <input name="itemstatus" id="itemstatus_orphaned" class="radio" type="radio" value="orphaned">
         <label for="itemstatus_orphaned">[% 'Orphaned' | $T8 %]</label>
            <input name="l_description" id="l_description" class="checkbox" type="checkbox" value="Y" checked>
            <label for="l_description">[% 'Part Description' | $T8 %]</label>
           </td>
+      [%- UNLESS is_service %]
           <td>
            <input name="l_serialnumber" id="l_serialnumber" class="checkbox" type="checkbox" value="Y">
            <label for="l_serialnumber">[% 'Serial Number' | $T8 %]</label>
           </td>
+      [%- END %]
           <td>
            <input name="l_unit" id="l_unit" class="checkbox" type="checkbox" value="Y" checked>
            <label for="l_unit">[% 'Unit of measure' | $T8 %]</label>
            <input name="l_deliverydate" id="l_deliverydate" class="checkbox" type="checkbox" value="Y">
            <label for="l_deliverydate">[% 'deliverydate' | $T8 %]</label>
           </td>
+      [%- UNLESS is_service %]
           <td>
            <input name="l_rop" id="l_rop" class="checkbox" type="checkbox" value="Y">
            <label for="l_rop">[% 'ROP' | $T8 %]</label>
            <input name="l_weight" id="l_weight" class="checkbox" type="checkbox" value="Y">
            <label for="l_weight">[% 'Weight' | $T8 %]</label>
           </td>
+      [%- END %]
          </tr>
 
          <tr>
          </tr>
 
          <tr>
+      [%- UNLESS is_service %]
           <td>
            <input name="l_onhand" id="l_onhand" class="checkbox" type="checkbox" value="Y">
            <label for="l_onhand">[% 'Stocked Qty' | $T8 %]</label>
           </td>
+      [%- END %]
           <td>
            <input name="l_projectnumber" id="l_projectnumber" class="checkbox" type="checkbox" value="Y">
            <label for="l_projectnumber">[% 'Project Number' | $T8 %]</label>
    <input class="submit" type="submit" name="action" value="[% 'TOP100' | $T8 %]">
   </p>
  </form>
-