Lines 131-139
Link Here
|
131 |
[% ELSIF ( CHUNK.type_modalselect ) %] |
131 |
[% ELSIF ( CHUNK.type_modalselect ) %] |
132 |
<input type="text" name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="modalselect preference preference-[% CHUNK.type | html %]" data-source="[% CHUNK.source | html %]" data-required="[% CHUNK.required | html %]" data-exclusions="[% CHUNK.exclusions | html %]" readonly="readonly" value="[% CHUNK.value | html %]"/> |
132 |
<input type="text" name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="modalselect preference preference-[% CHUNK.type | html %]" data-source="[% CHUNK.source | html %]" data-required="[% CHUNK.required | html %]" data-exclusions="[% CHUNK.exclusions | html %]" readonly="readonly" value="[% CHUNK.value | html %]"/> |
133 |
[% ELSIF ( CHUNK.type_multiple ) %] |
133 |
[% ELSIF ( CHUNK.type_multiple ) %] |
134 |
<select name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "choice" | html %]" multiple="multiple"> |
134 |
<select name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "choice" | html %]" multiple="multiple"> |
135 |
[% FOREACH CHOICE IN CHUNK.CHOICES %][% IF ( CHOICE.selected ) %]<option value="[% CHOICE.value | html %]" selected="selected">[% ELSE %]<option value="[% CHOICE.value | html %]">[% END %][% CHOICE.text | html %]</option>[% END %] |
135 |
[% FOREACH CHOICE IN CHUNK.CHOICES %] |
136 |
</select> |
136 |
[% IF ( CHOICE.selected ) %] |
|
|
137 |
<option value="[% CHOICE.value | html %]" selected="selected"> |
138 |
[% ELSE %] |
139 |
<option value="[% CHOICE.value | html %]"> |
140 |
[% END %] |
141 |
[% CHOICE.text | html %] |
142 |
</option> |
143 |
[% END %] |
144 |
</select> |
137 |
[% ELSIF ( CHUNK.type_textarea )%] |
145 |
[% ELSIF ( CHUNK.type_textarea )%] |
138 |
[% IF ( CHUNK.syntax == "text/html" && Koha.Preference('UseWYSIWYGinSystemPreferences') ) %] |
146 |
[% IF ( CHUNK.syntax == "text/html" && Koha.Preference('UseWYSIWYGinSystemPreferences') ) %] |
139 |
<textarea name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "short" | html %] mce" rows="20" cols="60">[% CHUNK.value | html %]</textarea> |
147 |
<textarea name="pref_[% CHUNK.name | html %]" id="pref_[% CHUNK.name | html %]" class="preference preference-[% CHUNK.class or "short" | html %] mce" rows="20" cols="60">[% CHUNK.value | html %]</textarea> |