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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-9 / +16 lines)
Lines 163-173 Link Here
163
                                            <li id="opac-suggestion-quantity">
163
                                            <li id="opac-suggestion-quantity">
164
                                                [% IF ( quantity_required ) %]
164
                                                [% IF ( quantity_required ) %]
165
                                                    <label for="quantity" class="required">Quantity:</label>
165
                                                    <label for="quantity" class="required">Quantity:</label>
166
                                                    <input type="text" id="quantity" name="quantity" required="required" maxlength="4" size="4" />
166
                                                    <input type="text" id="quantity" name="quantity" required="required" maxlength="4" size="4" value="[% quantity | html %]" />
167
                                                    <span class="required">Required</span>
167
                                                    <span class="required">Required</span>
168
                                                [% ELSE %]
168
                                                [% ELSE %]
169
                                                    <label for="quantity">Quantity:</label>
169
                                                    <label for="quantity">Quantity:</label>
170
                                                    <input type="text" id="quantity" name="quantity"  maxlength="4" size="4" />
170
                                                    <input type="text" id="quantity" name="quantity"  maxlength="4" size="4" value="[% quantity | html %]" />
171
                                                [% END %]
171
                                                [% END %]
172
                                            </li>
172
                                            </li>
173
                                        [% END %]
173
                                        [% END %]
Lines 175-185 Link Here
175
                                            <li>
175
                                            <li>
176
                                            [% IF ( itemtype_required ) %]
176
                                            [% IF ( itemtype_required ) %]
177
                                                <label for="itemtype" class="required">Item type:</label>
177
                                                <label for="itemtype" class="required">Item type:</label>
178
                                                [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, required = 1, blank = 1 %]
178
                                                [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, required = 1, blank = 1, default=itemtype %]
179
                                                <span class="required">Required</span>
179
                                                <span class="required">Required</span>
180
                                            [% ELSE %]
180
                                            [% ELSE %]
181
                                                <label for="itemtype">Item type:</label>
181
                                                <label for="itemtype">Item type:</label>
182
                                                [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, blank = 1 %]
182
                                                [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, blank = 1, default=itemtype %]
183
                                            [% END %]
183
                                            [% END %]
184
                                            </li>
184
                                            </li>
185
                                        [% END %]
185
                                        [% END %]
Lines 188-200 Link Here
188
                                                [% IF ( branchcode_required ) %]
188
                                                [% IF ( branchcode_required ) %]
189
                                                    <label for="branch" class="required">Library:</label>
189
                                                    <label for="branch" class="required">Library:</label>
190
                                                    <select name="branchcode" id="branch" required="required">
190
                                                    <select name="branchcode" id="branch" required="required">
191
                                                        [% PROCESS options_for_libraries libraries => Branches.all %]
191
                                                        [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
192
                                                    </select>
192
                                                    </select>
193
                                                    <span class="required">Required</span>
193
                                                    <span class="required">Required</span>
194
                                                [% ELSE %]
194
                                                [% ELSE %]
195
                                                    <label for="branch">Library:</label>
195
                                                    <label for="branch">Library:</label>
196
                                                    <select name="branchcode" id="branch">
196
                                                    <select name="branchcode" id="branch">
197
                                                        [% PROCESS options_for_libraries libraries => Branches.all %]
197
                                                        [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %]
198
                                                    </select>
198
                                                    </select>
199
                                                [% END %]
199
                                                [% END %]
200
                                            </li>
200
                                            </li>
Lines 207-213 Link Here
207
                                                    <select name="patronreason" id="patronreason" required="required">
207
                                                    <select name="patronreason" id="patronreason" required="required">
208
                                                        <option value="">-- Choose --</option>
208
                                                        <option value="">-- Choose --</option>
209
                                                        [% FOREACH patron_reason_loo IN patron_reason_loop %]
209
                                                        [% FOREACH patron_reason_loo IN patron_reason_loop %]
210
                                                            <option value="[% patron_reason_loo.authorised_value | html %]">[% patron_reason_loo.lib | html %]</option>
210
                                                            [% IF patron_reason_loo.authorised_value == patronreason %]
211
                                                                <option value="[% patron_reason_loo.authorised_value | html %]" selected="selected">[% patron_reason_loo.lib | html %]</option>
212
                                                            [% ELSE %]
213
                                                                <option value="[% patron_reason_loo.authorised_value | html %]">[% patron_reason_loo.lib | html %]</option>
214
                                                            [% END %]
211
                                                        [% END %]
215
                                                        [% END %]
212
                                                    </select>
216
                                                    </select>
213
                                                    <span class="required">Required</span>
217
                                                    <span class="required">Required</span>
Lines 216-222 Link Here
216
                                                    <select name="patronreason" id="patronreason">
220
                                                    <select name="patronreason" id="patronreason">
217
                                                        <option value="">-- Choose --</option>
221
                                                        <option value="">-- Choose --</option>
218
                                                        [% FOREACH patron_reason_loo IN patron_reason_loop %]
222
                                                        [% FOREACH patron_reason_loo IN patron_reason_loop %]
219
                                                            <option value="[% patron_reason_loo.authorised_value | html %]">[% patron_reason_loo.lib | html %]</option>
223
                                                            [% IF patron_reason_loo.authorised_value == patronreason %]
224
                                                                <option value="[% patron_reason_loo.authorised_value | html %]" selected="selected">[% patron_reason_loo.lib | html %]</option>
225
                                                            [% ELSE %]
226
                                                                <option value="[% patron_reason_loo.authorised_value | html %]">[% patron_reason_loo.lib | html %]</option>
227
                                                            [% END %]
220
                                                        [% END %]
228
                                                        [% END %]
221
                                                    </select>
229
                                                    </select>
222
                                                [% END %]
230
                                                [% END %]
223
- 

Return to bug 29419