Abteilung aus ausgelagerten Lieferscheinen in Rechnungen übernommen
authorThomas Heck <theck@linet-services.de>
Thu, 30 Aug 2012 11:51:21 +0000 (13:51 +0200)
committerThomas Heck <theck@linet-services.de>
Thu, 30 Aug 2012 11:51:21 +0000 (13:51 +0200)
fixt #1950

templates/webpages/do/form_header.html

index 891ee38..2f29a95 100644 (file)
        <tr>
         <th align="right" nowrap>[% 'Department' | $T8 %]</th>
         <td colspan="3">
-         [% L.select_tag('department_id', L.options_for_select(ALL_DEPARTMENTS, default=department_id, title="description", with_empty=1), style='width: 250px', disabled => delivered )%]
+          [% IF ( delivered ) %]
+            [% L.hidden_tag('department_id', department_id) %]
+          [% END %]
+          [% L.select_tag('department_id', L.options_for_select(ALL_DEPARTMENTS, default=department_id, title="description", with_empty=1), style='width: 250px', disabled => delivered )%]
        </td>
        </tr>
        [%- END %]