View | Details | Raw Unified | Return to bug 10764
Collapse All | Expand All

(-)a/C4/Items.pm (-7 / +10 lines)
Lines 751-762 Create a status selector with the following code Link Here
751
751
752
=head3 in TEMPLATE
752
=head3 in TEMPLATE
753
753
754
 <select name="statusloop">
754
<select name="statusloop" id="statusloop">
755
     <option value="">Default</option>
755
    <option value="">Default</option>
756
 <!-- TMPL_LOOP name="statusloop" -->
756
    [% FOREACH statusloo IN statusloop %]
757
     <option value="<!-- TMPL_VAR name="value" -->" <!-- TMPL_IF name="selected" -->selected<!-- /TMPL_IF -->><!-- TMPL_VAR name="statusname" --></option>
757
        [% IF ( statusloo.selected ) %]
758
 <!-- /TMPL_LOOP -->
758
            <option value="[% statusloo.value %]" selected="selected">[% statusloo.statusname %]</option>
759
 </select>
759
        [% ELSE %]
760
            <option value="[% statusloo.value %]">[% statusloo.statusname %]</option>
761
        [% END %]
762
    [% END %]
763
</select>
760
764
761
=cut
765
=cut
762
766
763
- 

Return to bug 10764