do/form_header.html: Element »department_id« nicht doppelt ausgeben
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 10 Jan 2017 14:53:51 +0000 (15:53 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 10 Jan 2017 14:59:14 +0000 (15:59 +0100)
templates/webpages/do/form_header.html

index 4bfefaa..277181e 100644 (file)
         <td colspan="3">
           [% IF ( delivered ) %]
             [% L.hidden_tag('department_id', department_id) %]
+          [% ELSE %]
+            [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width: 250px', disabled = delivered )%]
           [% END %]
-          [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width: 250px', disabled = delivered )%]
        </td>
        </tr>
        [%- END %]