Lines 53-83
Link Here
|
53 |
[% END %] |
53 |
[% END %] |
54 |
[% ELSE %] |
54 |
[% ELSE %] |
55 |
[% FOREACH av IN AuthorisedValues.GetAuthValueDropbox( authorised_value_category ) %] |
55 |
[% FOREACH av IN AuthorisedValues.GetAuthValueDropbox( authorised_value_category ) %] |
56 |
[% IF !field.repeatable %] |
56 |
[% IF av.authorised_value == values.${field.id}.0 %] |
57 |
[% IF av.authorised_value == values.${field.id}.0 %] |
57 |
<option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html %]</option> |
58 |
<option value="[% av.authorised_value | html %]" selected="selected">[% av.lib | html %]</option> |
|
|
59 |
[% ELSE %] |
60 |
<option value="[% av.authorised_value | html %]">[% av.lib | html %]</option> |
61 |
[% END %] |
62 |
[% ELSE %] |
58 |
[% ELSE %] |
63 |
[% SET av_field_value_rendered = 0 %] |
59 |
<option value="[% av.authorised_value | html %]">[% av.lib | html %]</option> |
64 |
[% FOR value IN values.${field.id} %] |
|
|
65 |
[% IF av.authorised_value == value %] |
66 |
<label class="radio"> |
67 |
<input type="checkbox" id="additional_field_[% field.id | html %]" checked name="additional_field_[% field.id | html %]" value="[% av.authorised_value | html %]" />[% av.lib | html %] |
68 |
</label> |
69 |
[% SET av_field_value_rendered = 1 %] |
70 |
[% END %] |
71 |
[% END %] |
72 |
[% IF !av_field_value_rendered %] |
73 |
<label class="radio"> |
74 |
<input type="checkbox" id="additional_field_[% field.id | html %]" name="additional_field_[% field.id | html %]" value="[% av.authorised_value | html %]" />[% av.lib | html %] |
75 |
</label> |
76 |
[% END %] |
77 |
[% END %] |
60 |
[% END %] |
78 |
[% END %] |
61 |
[% END %] |
79 |
[% END %] |
62 |
[% END %] |
80 |
</select> |
63 |
</select> |
|
|
64 |
[% ELSE %] |
65 |
[% FOREACH av IN AuthorisedValues.GetAuthValueDropbox( authorised_value_category ) %] |
66 |
[% SET av_field_value_rendered = 0 %] |
67 |
[% FOR value IN values.${field.id} %] |
68 |
[% IF av.authorised_value == value %] |
69 |
<label class="radio"> |
70 |
<input type="checkbox" id="additional_field_[% field.id | html %]" checked name="additional_field_[% field.id | html %]" value="[% av.authorised_value | html %]" />[% av.lib | html %] |
71 |
</label> |
72 |
[% SET av_field_value_rendered = 1 %] |
73 |
[% END %] |
74 |
[% END %] |
75 |
[% IF !av_field_value_rendered %] |
76 |
<label class="radio"> <input type="checkbox" id="additional_field_[% field.id | html %]" name="additional_field_[% field.id | html %]" value="[% av.authorised_value | html %]" />[% av.lib | html %] </label> |
77 |
[% END %] |
78 |
[% END %] |
81 |
[% END %] |
79 |
[% END %] |
82 |
[% IF !search_form %] |
80 |
[% IF !search_form %] |
83 |
<span>(Authorised values for [% authorised_value_category | html %])</span> |
81 |
<span>(Authorised values for [% authorised_value_category | html %])</span> |
84 |
- |
|
|