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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_flatpickr.scss (-4 / +3 lines)
Lines 949-955 span.flatpickr-weekday { Link Here
949
949
950
    input,
950
    input,
951
    .flatpickr-am-pm {
951
    .flatpickr-am-pm {
952
953
        &:hover,
952
        &:hover,
954
        &:focus {
953
        &:focus {
955
            background: lighten($dayHoverBackground, 3);
954
            background: lighten($dayHoverBackground, 3);
Lines 958-969 span.flatpickr-weekday { Link Here
958
}
957
}
959
958
960
.flatpickr-input {
959
.flatpickr-input {
960
    background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23369' class='bi bi-calendar3' viewBox='0 0 32 32'%3E%3Cg stroke-width='1.333'%3E%3Cpath d='M25 4H7a3 3 0 0 0-3 3v18a3 3 0 0 0 3 3h18a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3ZM5.5 9.786c0-.71.672-1.286 1.5-1.286h18c.828 0 1.5.576 1.5 1.286v15.428c0 .71-.672 1.286-1.5 1.286H7c-.828 0-1.5-.576-1.5-1.286z'/%3E%3Cpath d='M13.75 14.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm4.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm4.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zM9.25 19a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm4.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm4.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm4.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm-13.5 4.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm4.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm4.5 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/g%3E%3C/svg%3E" );
961
    background-position: 0;
961
    background-repeat: no-repeat;
962
    background-repeat: no-repeat;
962
    background-position: 3px;
963
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23369' class='bi bi-calendar3'%3E%3Cg stroke-width='1.333'%3E%3Cpath d='M10.5 0h-9A1.5 1.5 0 0 0 0 1.5v9A1.5 1.5 0 0 0 1.5 12h9a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 10.5 0zM.75 2.893c0-.355.336-.643.75-.643h9c.414 0 .75.288.75.643v7.714c0 .355-.336.643-.75.643h-9c-.414 0-.75-.288-.75-.643z'/%3E%3Cpath d='M4.875 5.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zM2.625 7.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm-6.75 2.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5zm2.25 0a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5z'/%3E%3C/g%3E%3C/svg%3E");
964
    border-style: inset;
963
    border-style: inset;
965
    border-width: 1px;
964
    border-width: 1px;
966
    padding: 3px 3px 3px 20px;
965
    padding: 3px 3px 3px 25px;
967
966
968
    &.flatpickr-mobile {
967
    &.flatpickr-mobile {
969
        height: 2rem;
968
        height: 2rem;
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss (+87 lines)
Lines 18-23 fieldset { Link Here
18
        padding: 0;
18
        padding: 0;
19
    }
19
    }
20
20
21
    &.fg {
22
        .btn.btn-link {
23
            padding: .175rem 0;
24
        }
25
26
        .fg-checkbox {
27
            grid-column-start: 2;
28
        }
29
30
        .fg-row {
31
            display: block;
32
            margin-bottom: .7rem;
33
34
            label,
35
            .label {
36
                font-weight: bold;
37
            }
38
        }
39
40
        .fg-row input[type="text"],
41
        .fg-row select {
42
            background-color: #FFF;
43
            border: 1px solid #AAAAAA;
44
            border-radius: 4px;
45
            color: #495057;
46
            display: inline-block;
47
            height: calc( 1.5em + .75rem + 2px );
48
            line-height: 1.5;
49
            padding: .375rem .75rem;
50
            width: 100%;
51
        }
52
53
        .fg-row input[type="text"].flatpickr-input {
54
            padding-left: calc( 1.5em + 10px );
55
            width: calc( 100% - 20px );
56
        }
57
58
        .fg-row input[type="checkbox"] {
59
            margin: 0;
60
        }
61
62
        .fg-label,
63
        .fg-row .required {
64
            margin: .3rem 0;
65
        }
66
67
        .fg-text {
68
            padding: .375rem .75rem;
69
        }
70
71
        @media only screen and ( min-width: 608px ) {
72
            .fg-row {
73
                column-gap: .7rem;
74
                display: grid;
75
                grid-template-columns: 15% 50% 15%;
76
                grid-template-rows: 1fr min-content;
77
78
                &.wide {
79
                    grid-template-columns: 15% 85%;
80
                }
81
82
                input[type="text"].flatpickr-input {
83
                    padding-left: calc( 1.5em + 10px );
84
                    width: calc( 100% - 20px );
85
                }
86
            }
87
88
            .fg-label {
89
                justify-self: right;
90
                text-align: right;
91
            }
92
        }
93
94
        @media only screen and ( min-width: 1700px ) {
95
            .fg-row {
96
                grid-template-columns: 10% 35% 15%;
97
            }
98
        }
99
100
        .hint {
101
            color: #666;
102
            font-size: 95%;
103
            grid-column-start: 2;
104
            margin: .3rem 0;
105
        }
106
    }
107
21
    &.rows {
108
    &.rows {
22
        clear: left;
109
        clear: left;
23
        float: left;
110
        float: left;
(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (-2 / +5 lines)
Lines 3498-3503 a.browse-button { Link Here
3498
    }
3498
    }
3499
}
3499
}
3500
3500
3501
.required {
3502
    color: $warning-text-color;
3503
    font-style: italic;
3504
}
3505
3501
span {
3506
span {
3502
    &.browse-button {
3507
    &.browse-button {
3503
        color: #999;
3508
        color: #999;
Lines 3519-3526 span { Link Here
3519
    }
3524
    }
3520
3525
3521
    &.required {
3526
    &.required {
3522
        color: $warning-text-color;
3523
        font-style: italic;
3524
        margin-left: .5em;
3527
        margin-left: .5em;
3525
    }
3528
    }
3526
3529
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt (-111 / +248 lines)
Lines 125-228 Link Here
125
        </h1>
125
        </h1>
126
        <form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" class="validated" method="post">
126
        <form action="/cgi-bin/koha/admin/branches.pl" id="Aform" name="Aform" class="validated" method="post">
127
            [% INCLUDE 'csrf-token.inc' %]
127
            [% INCLUDE 'csrf-token.inc' %]
128
            <fieldset class="rows">
128
            <fieldset class="fg">
129
                <input type="hidden" name="op" value="cud-add_validate" />
129
                <input type="hidden" name="op" value="cud-add_validate" />
130
                [% IF library %]
130
                [% IF library %]
131
                    <input type="hidden" name="is_a_modif" value="1" />
131
                    <input type="hidden" name="is_a_modif" value="1" />
132
                [% END %]
132
                [% END %]
133
                <ol>
133
                <div class="fg-row">
134
                    <li>
134
                    [% IF library %]
135
                        [% IF library %]
135
                        <div class="fg-label">
136
                            <span class="label">Library code: </span>
136
                            <span class="label">Library code: </span>
137
                        </div>
138
                        <div class="fg-input">
137
                            <input type="hidden" name="branchcode" value="[% library.branchcode | html %]" />
139
                            <input type="hidden" name="branchcode" value="[% library.branchcode | html %]" />
138
                            [% library.branchcode | html %]
140
                            <div class="fg-text">[% library.branchcode | html %]</div>
139
                        [% ELSE %]
141
                        </div>
142
                    [% ELSE %]
143
                        <div class="fg-label">
140
                            <label for="branchcode" class="required">Library code: </label>
144
                            <label for="branchcode" class="required">Library code: </label>
145
                        </div>
146
                        <div class="fg-input">
141
                            <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode | html %]" class="required focus" required="required" />
147
                            <input type="text" name="branchcode" id="branchcode" size="10" maxlength="10" value="[% library.branchcode | html %]" class="required focus" required="required" />
142
                            <span class="required">Required</span>
148
                        </div>
143
                        [% END %]
149
                        <div class="required">Required</div>
144
                    </li>
150
                    [% END %]
145
                    <li>
151
                </div>
152
                <div class="fg-row">
153
                    <div class="fg-label">
146
                        <label for="branchname" class="required">Name: </label>
154
                        <label for="branchname" class="required">Name: </label>
155
                    </div>
156
                    <div class="fg-input">
147
                        [% IF library %]
157
                        [% IF library %]
148
                            <input type="text" name="branchname" id="branchname" size="80" value="[% library.branchname | html %]" class="required focus" required="required" />
158
                            <input type="text" name="branchname" id="branchname" size="80" value="[% library.branchname | html %]" class="required focus" required="required" />
149
                        [% ELSE %]
159
                        [% ELSE %]
150
                            <input type="text" name="branchname" id="branchname" size="80" value="[% library.branchname | html %]" class="required" required="required" />
160
                            <input type="text" name="branchname" id="branchname" size="80" value="[% library.branchname | html %]" class="required" required="required" />
151
                        [% END %]
161
                        [% END %]
152
                        <span class="required">Required</span>
162
                    </div>
153
                    </li>
163
                    <div class="required">Required</div>
154
                </ol>
164
                </div>
155
            </fieldset>
165
            </fieldset>
156
            [% IF categories %]
166
            [% IF categories %]
157
                <fieldset class="rows"
167
                <fieldset class="fg"
158
                    ><legend>Group(s):</legend>
168
                    ><legend>Group(s):</legend>
159
                    <ol>
169
                    [% FOREACH category IN categories %]
160
                        [% FOREACH category IN categories %]
170
                        <div class="fg-row">
161
                            <li>
171
                            <div class="fg-label">
162
                                <label for="[% category.categorycode | html %]">[% category.categoryname | html %]: </label>
172
                                <label for="[% category.categorycode | html %]">[% category.categoryname | html %]: </label>
173
                            </div>
174
                            <div class="fg-input">
163
                                [% IF category and selected_categorycodes.grep(category.categorycode).size %]
175
                                [% IF category and selected_categorycodes.grep(category.categorycode).size %]
164
                                    <input type="checkbox" id="[% category.categorycode | html %]" name="selected_categorycode_[% category.categorycode | html %]" checked="checked" />
176
                                    <input type="checkbox" id="[% category.categorycode | html %]" name="selected_categorycode_[% category.categorycode | html %]" checked="checked" />
165
                                [% ELSE %]
177
                                [% ELSE %]
166
                                    <input type="checkbox" id="[% category.categorycode | html %]" name="selected_categorycode_[% category.categorycode | html %]" />
178
                                    <input type="checkbox" id="[% category.categorycode | html %]" name="selected_categorycode_[% category.categorycode | html %]" />
167
                                [% END %]
179
                                [% END %]
168
                                <div class="hint">[% category.codedescription | html %]</div>
180
                            </div>
169
                            </li>
181
                            <div class="hint">[% category.codedescription | html %]</div>
170
                        [% END %]
182
                        </div>
171
                    </ol>
183
                    [% END %]
172
                </fieldset>
184
                </fieldset>
173
            [% END %]
185
            [% END %]
174
            <fieldset class="rows">
186
            <fieldset class="fg">
175
                <ol>
187
                <div class="fg-row">
176
                    <li><label for="branchaddress1">Address line 1: </label><input type="text" name="branchaddress1" id="branchaddress1" size="60" value="[% library.branchaddress1 | html %]" /></li>
188
                    <div class="fg-label">
177
                    <li><label for="branchaddress2">Address line 2: </label><input type="text" name="branchaddress2" id="branchaddress2" size="60" value="[% library.branchaddress2 | html %]" /></li>
189
                        <label for="branchaddress1">Address line 1: </label>
178
                    <li><label for="branchaddress3">Address line 3: </label><input type="text" name="branchaddress3" id="branchaddress3" size="60" value="[% library.branchaddress3 | html %]" /></li>
190
                    </div>
179
                    <li><label for="branchcity">City: </label><input type="text" name="branchcity" id="branchcity" size="60" value="[% library.branchcity | html %]" /></li>
191
                    <div class="fg-input">
180
                    <li><label for="branchstate">State: </label><input type="text" name="branchstate" id="branchstate" size="60" value="[% library.branchstate | html %]" /></li>
192
                        <input type="text" name="branchaddress1" id="branchaddress1" size="60" value="[% library.branchaddress1 | html %]" />
181
                    <li><label for="branchzip">ZIP/Postal code: </label><input type="text" name="branchzip" id="branchzip" size="25" maxlength="25" value="[% library.branchzip | html %]" /></li>
193
                    </div>
182
                    <li><label for="branchcountry">Country: </label><input type="text" name="branchcountry" id="branchcountry" size="60" value="[% library.branchcountry | html %]" /></li>
194
                </div>
183
                    <li><label for="branchphone">Phone: </label><input type="text" name="branchphone" id="branchphone" size="60" value="[% library.branchphone | html %]" /></li>
195
                <div class="fg-row">
184
                    <li><label for="branchfax">Fax: </label><input type="text" name="branchfax" id="branchfax" size="60" value="[% library.branchfax | html %]" /></li>
196
                    <div class="fg-label">
185
                    <li><label for="branchemail">Email: </label><input type="text" name="branchemail" id="branchemail" class="email" size="80" value="[% library.branchemail | html %]" /></li>
197
                        <label for="branchaddress2">Address line 2: </label>
186
                    [% IF (Koha.Preference('ILLModule')) %]
198
                    </div>
187
                        <li>
199
                    <div class="fg-input">
200
                        <input type="text" name="branchaddress2" id="branchaddress2" size="60" value="[% library.branchaddress2 | html %]" />
201
                    </div>
202
                </div>
203
                <div class="fg-row">
204
                    <div class="fg-label">
205
                        <label for="branchaddress3">Address line 3: </label>
206
                    </div>
207
                    <div class="fg-input">
208
                        <input type="text" name="branchaddress3" id="branchaddress3" size="60" value="[% library.branchaddress3 | html %]" />
209
                    </div>
210
                </div>
211
                <div class="fg-row">
212
                    <div class="fg-label">
213
                        <label for="branchcity">City: </label>
214
                    </div>
215
                    <div class="fg-input">
216
                        <input type="text" name="branchcity" id="branchcity" size="60" value="[% library.branchcity | html %]" />
217
                    </div>
218
                </div>
219
                <div class="fg-row">
220
                    <div class="fg-label">
221
                        <label for="branchstate">State: </label>
222
                    </div>
223
                    <div class="fg-input">
224
                        <input type="text" name="branchstate" id="branchstate" size="60" value="[% library.branchstate | html %]" />
225
                    </div>
226
                </div>
227
                <div class="fg-row">
228
                    <div class="fg-label">
229
                        <label for="branchzip">ZIP/Postal code: </label>
230
                    </div>
231
                    <div class="fg-input">
232
                        <input type="text" name="branchzip" id="branchzip" size="25" maxlength="25" value="[% library.branchzip | html %]" />
233
                    </div>
234
                </div>
235
                <div class="fg-row">
236
                    <div class="fg-label">
237
                        <label for="branchcountry">Country: </label>
238
                    </div>
239
                    <div class="fg-input">
240
                        <input type="text" name="branchcountry" id="branchcountry" size="60" value="[% library.branchcountry | html %]" />
241
                    </div>
242
                </div>
243
                <div class="fg-row">
244
                    <div class="fg-label">
245
                        <label for="branchphone">Phone: </label>
246
                    </div>
247
                    <div class="fg-input">
248
                        <input type="text" name="branchphone" id="branchphone" size="60" value="[% library.branchphone | html %]" />
249
                    </div>
250
                </div>
251
                <div class="fg-row">
252
                    <div class="fg-label">
253
                        <label for="branchfax">Fax: </label>
254
                    </div>
255
                    <div class="fg-input">
256
                        <input type="text" name="branchfax" id="branchfax" size="60" value="[% library.branchfax | html %]" />
257
                    </div>
258
                </div>
259
                <div class="fg-row">
260
                    <div class="fg-label">
261
                        <label for="branchemail">Email: </label>
262
                    </div>
263
                    <div class="fg-input">
264
                        <input type="text" name="branchemail" id="branchemail" class="email" size="80" value="[% library.branchemail | html %]" />
265
                    </div>
266
                </div>
267
                [% IF (Koha.Preference('ILLModule')) %]
268
                    <div class="fg-row">
269
                        <div class="fg-label">
188
                            <label for="branchillemail">ILL staff email: </label>
270
                            <label for="branchillemail">ILL staff email: </label>
271
                        </div>
272
                        <div class="fg-input">
189
                            <input type="text" name="branchillemail" id="branchillemail" class="email" size="80" value="[% library.branchillemail | html %]" />
273
                            <input type="text" name="branchillemail" id="branchillemail" class="email" size="80" value="[% library.branchillemail | html %]" />
190
                            <div class="hint">
274
                        </div>
191
                                [% IF ( CAN_user_parameters_manage_sysprefs ) %]
192
                                    [% pref_ILLDefaultStaffEmail_link = BLOCK %]<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ILLDefaultStaffEmail">ILLDefaultStaffEmail</a>[% END %]
193
                                    Default: [% pref_ILLDefaultStaffEmail_link | $raw | $KohaSpan %] system preference
194
                                [% ELSE %]
195
                                    Default: ILLDefaultStaffEmail system preference
196
                                [% END %]
197
                            </div>
198
                        </li>
199
                    [% END %]
200
                    <li>
201
                        <label for="branchreplyto">Reply-To: </label>
202
                        <input type="text" name="branchreplyto" id="branchreplyto" class="email" size="80" value="[% library.branchreplyto | html %]" />
203
                        <div class="hint">
275
                        <div class="hint">
204
                            [% IF ( CAN_user_parameters_manage_sysprefs ) %]
276
                            [% IF ( CAN_user_parameters_manage_sysprefs ) %]
205
                                [% pref_ReplyToDefault_link = BLOCK %]<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ReplyToDefault">ReplyToDefault</a>[% END %]
277
                                [% pref_ILLDefaultStaffEmail_link = BLOCK %]<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ILLDefaultStaffEmail">ILLDefaultStaffEmail</a>[% END %]
206
                                Default: [% pref_ReplyToDefault_link | $raw | $KohaSpan %] system preference
278
                                Default: [% pref_ILLDefaultStaffEmail_link | $raw | $KohaSpan %] system preference
207
                            [% ELSE %]
279
                            [% ELSE %]
208
                                Default: ReplyToDefault system preference
280
                                Default: ILLDefaultStaffEmail system preference
209
                            [% END %]
281
                            [% END %]
210
                        </div>
282
                        </div>
211
                    </li>
283
                    </div>
212
                    <li>
284
                [% END %]
285
                <div class="fg-row">
286
                    <div class="fg-label">
287
                        <label for="branchreplyto">Reply-To: </label>
288
                    </div>
289
                    <div class="fg-input">
290
                        <input type="text" name="branchreplyto" id="branchreplyto" class="email" size="80" value="[% library.branchreplyto | html %]" />
291
                    </div>
292
                    <div class="hint">
293
                        [% IF ( CAN_user_parameters_manage_sysprefs ) %]
294
                            [% pref_ReplyToDefault_link = BLOCK %]<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ReplyToDefault">ReplyToDefault</a>[% END %]
295
                            Default: [% pref_ReplyToDefault_link | $raw | $KohaSpan %] system preference
296
                        [% ELSE %]
297
                            Default: ReplyToDefault system preference
298
                        [% END %]
299
                    </div>
300
                </div>
301
                <div class="fg-row">
302
                    <div class="fg-label">
213
                        <label for="branchreturnpath">Return-Path: </label>
303
                        <label for="branchreturnpath">Return-Path: </label>
304
                    </div>
305
                    <div class="fg-input">
214
                        <input type="text" name="branchreturnpath" id="branchreturnpath" class="email" size="80" value="[% library.branchreturnpath | html %]" />
306
                        <input type="text" name="branchreturnpath" id="branchreturnpath" class="email" size="80" value="[% library.branchreturnpath | html %]" />
215
                        <div class="hint">
307
                    </div>
216
                            [% IF ( CAN_user_parameters_manage_sysprefs ) %]
308
                    <div class="hint">
217
                                [% pref_ReturnpathDefault_link = BLOCK %]<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ReturnpathDefault">ReturnpathDefault</a>[% END %]
309
                        [% IF ( CAN_user_parameters_manage_sysprefs ) %]
218
                                Default: [% pref_ReturnpathDefault_link | $raw | $KohaSpan %] system preference
310
                            [% pref_ReturnpathDefault_link = BLOCK %]<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ReturnpathDefault">ReturnpathDefault</a>[% END %]
219
                            [% ELSE %]
311
                            Default: [% pref_ReturnpathDefault_link | $raw | $KohaSpan %] system preference
220
                                Default: ReturnpathDefault system preference
312
                        [% ELSE %]
221
                            [% END %]
313
                            Default: ReturnpathDefault system preference
222
                        </div>
314
                        [% END %]
223
                    </li>
315
                    </div>
224
                    <li
316
                </div>
225
                        ><label for="smtp_server">SMTP server: </label>
317
                <div class="fg-row">
318
                    <div class="fg-label">
319
                        <label for="smtp_server">SMTP server: </label>
320
                    </div>
321
                    <div class="fg-input">
226
                        <select name="smtp_server" id="smtp_server">
322
                        <select name="smtp_server" id="smtp_server">
227
                            [% IF library AND library.smtp_server.is_system_default %]
323
                            [% IF library AND library.smtp_server.is_system_default %]
228
                                <option value="*" selected="selected">Default</option>
324
                                <option value="*" selected="selected">Default</option>
Lines 237-275 Link Here
237
                                [% END %]
333
                                [% END %]
238
                            [% END %]
334
                            [% END %]
239
                        </select>
335
                        </select>
240
                    </li>
336
                    </div>
241
                    <li><label for="branchurl">URL: </label><input type="text" name="branchurl" id="branchurl" size="80" value="[% library.branchurl | html %]" class="url" /></li>
337
                </div>
242
                    <li
338
                <div class="fg-row">
243
                        ><label for="opac_info">OPAC information: </label>
339
                    <div class="fg-label">
340
                        <label for="branchurl">URL: </label>
341
                    </div>
342
                    <div class="fg-input">
343
                        <input type="text" name="branchurl" id="branchurl" size="80" value="[% library.branchurl | html %]" class="url" />
344
                    </div>
345
                </div>
346
                <div class="fg-row">
347
                    <div class="fg-label">
348
                        <label for="opac_info">OPAC information: </label>
349
                    </div>
350
                    <div class="fg-input">
244
                        [% IF OpacLibraryInfo %]
351
                        [% IF OpacLibraryInfo %]
245
                            <!-- opac_info -->
352
                            <!-- opac_info -->
246
                            <div>[% OpacLibraryInfo.content | $raw %]</div>
353
                            <div>[% OpacLibraryInfo.content | $raw %]</div>
247
                            <div class="hint"><a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations&op=add_form&id=[% OpacLibraryInfo.id | $raw %]&editmode=wysiwyg" target="_blank">Edit HTML content</a></div>
354
                            <a class="btn btn-link" href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations&op=add_form&id=[% OpacLibraryInfo.id | $raw %]&editmode=wysiwyg" target="_blank">Edit HTML content</a>
248
                        [% ELSE %]
355
                        [% ELSE %]
249
                            <a href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations&op=add_form&editmode=wysiwyg" target="_blank">Add HTML content</a>
356
                            <a class="btn btn-link" href="/cgi-bin/koha/tools/additional-contents.pl?category=html_customizations&op=add_form&editmode=wysiwyg" target="_blank">Add HTML content</a>
250
                        [% END %]
357
                        [% END %]
251
                    </li>
358
                    </div>
252
                    <li>
359
                </div>
360
                <div class="fg-row">
361
                    <div class="fg-label">
253
                        <label for="branchip">IP: </label>
362
                        <label for="branchip">IP: </label>
363
                    </div>
364
                    <div class="fg-input">
254
                        <input type="text" name="branchip" id="branchip" size="15" maxlength="15" value="[% library.branchip | html %]" />
365
                        <input type="text" name="branchip" id="branchip" size="15" maxlength="15" value="[% library.branchip | html %]" />
255
                        <div class="hint">Enter as a single IP address, or a subnet such as 192.168.1.*</div>
366
                    </div>
256
                    </li>
367
                    <div class="hint">Enter as a single IP address, or a subnet such as 192.168.1.*</div>
257
                    <li>
368
                </div>
369
                <div class="fg-row">
370
                    <div class="fg-label">
258
                        <label for="marcorgcode">MARC organization code: </label>
371
                        <label for="marcorgcode">MARC organization code: </label>
372
                    </div>
373
                    <div class="fg-input">
259
                        <input type="text" name="marcorgcode" id="marcorgcode" size="16" maxlength="16" value="[% library.marcorgcode | html %]" />
374
                        <input type="text" name="marcorgcode" id="marcorgcode" size="16" maxlength="16" value="[% library.marcorgcode | html %]" />
260
                        <div class="hint">
375
                    </div>
261
                            [% IF ( CAN_user_parameters_manage_sysprefs ) %]
376
                    <div class="hint">
262
                                [% pref_MARCOrgCode_link = BLOCK %]<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=MARCOrgCode">MARCOrgCode</a>[% END %]
377
                        [% IF ( CAN_user_parameters_manage_sysprefs ) %]
263
                                Default: [% pref_MARCOrgCode_link | $raw | $KohaSpan %] system preference.
378
                            [% pref_MARCOrgCode_link = BLOCK %]<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=MARCOrgCode">MARCOrgCode</a>[% END %]
264
                            [% ELSE %]
379
                            Default: [% pref_MARCOrgCode_link | $raw | $KohaSpan %] system preference.
265
                                Default: MARCOrgCode system preference.
380
                        [% ELSE %]
266
                            [% END %]
381
                            Default: MARCOrgCode system preference.
267
                            Obtain a library code from the <a href="https://www.loc.gov/marc/organizations/orgshome.html" target="_blank">Library of Congress</a>.
382
                        [% END %]
268
                        </div>
383
                        Obtain a library code from the <a href="https://www.loc.gov/marc/organizations/orgshome.html" target="_blank">Library of Congress</a>.
269
                    </li>
384
                    </div>
270
                    <li><label for="branchnotes">Notes: </label><input type="text" name="branchnotes" id="branchnotes" size="80" value="[% library.branchnotes | html %]" /></li>
385
                </div>
271
                    <li
386
                <div class="fg-row">
272
                        ><label for="pickup_location">Pickup location: </label>
387
                    <div class="fg-label">
388
                        <label for="branchnotes">Notes: </label>
389
                    </div>
390
                    <div class="fg-input">
391
                        <input type="text" name="branchnotes" id="branchnotes" size="80" value="[% library.branchnotes | html %]" />
392
                    </div>
393
                </div>
394
                <div class="fg-row">
395
                    <div class="fg-label">
396
                        <label for="pickup_location">Pickup location: </label>
397
                    </div>
398
                    <div class="fg-input">
273
                        <select name="pickup_location" id="pickup_location">
399
                        <select name="pickup_location" id="pickup_location">
274
                            [% IF !library || library.pickup_location == 1 %]
400
                            [% IF !library || library.pickup_location == 1 %]
275
                                <option value="1" selected="selected">Yes</option>
401
                                <option value="1" selected="selected">Yes</option>
Lines 279-287 Link Here
279
                                <option value="0" selected="selected">No</option>
405
                                <option value="0" selected="selected">No</option>
280
                            [% END %]
406
                            [% END %]
281
                        </select>
407
                        </select>
282
                    </li>
408
                    </div>
283
                    <li
409
                </div>
284
                        ><label for="public">Public: </label>
410
                <div class="fg-row">
411
                    <div class="fg-label">
412
                        <label for="public">Public: </label>
413
                    </div>
414
                    <div class="fg-input">
285
                        <select name="public" id="public">
415
                        <select name="public" id="public">
286
                            [% IF !library || library.public == 1 %]
416
                            [% IF !library || library.public == 1 %]
287
                                <option value="1" selected="selected">Yes</option>
417
                                <option value="1" selected="selected">Yes</option>
Lines 291-300 Link Here
291
                                <option value="0" selected="selected">No</option>
421
                                <option value="0" selected="selected">No</option>
292
                            [% END %]
422
                            [% END %]
293
                        </select>
423
                        </select>
294
                        <div class="hint">Set to 'Yes' to show this library as a search option and on the libraries page in the OPAC.</div>
424
                    </div>
295
                    </li>
425
                    <div class="hint">Set to 'Yes' to show this library as a search option and on the libraries page in the OPAC.</div>
296
                    <li>
426
                </div>
427
                <div class="fg-row wide">
428
                    <div class="fg-label">
297
                        <label for="library_hours">Library hours: </label>
429
                        <label for="library_hours">Library hours: </label>
430
                    </div>
431
                    <div class="fg-table">
298
                        <table id="library_hours_table">
432
                        <table id="library_hours_table">
299
                            <thead>
433
                            <thead>
300
                                <tr>
434
                                <tr>
Lines 351-374 Link Here
351
                                [% END %]
485
                                [% END %]
352
                            </tbody>
486
                            </tbody>
353
                        </table>
487
                        </table>
354
                    </li>
488
                    </div>
355
                    <li>
489
                </div>
490
                <div class="fg-row">
491
                    <div class="fg-label">
356
                        <label for="opacuserjs">Specific OPAC JS: </label>
492
                        <label for="opacuserjs">Specific OPAC JS: </label>
357
                        <div style="display:flex; flex-direction:column;">
493
                    </div>
358
                            <a class="expand-textarea" id="expand_opacuserjs" data-target="opacuserjs" data-syntax="javascript" href="#">Edit</a>
494
                    <div class="fg-input">
359
                            <textarea style="display:none" name="opacuserjs" id="opacuserjs" class="codemirror" rows="10" cols="40">[% library.opacuserjs | html %]</textarea>
495
                        <a class="expand-textarea btn btn-link" id="expand_opacuserjs" data-target="opacuserjs" data-syntax="javascript" href="#">Edit</a>
360
                            <a class="collapse-textarea" id="collapse_opacuserjs" data-target="opacuserjs" data-syntax="javascript" style="display:none" href="#">Collapse<br /></a>
496
                        <textarea style="display:none" name="opacuserjs" id="opacuserjs" class="codemirror" rows="10" cols="40">[% library.opacuserjs | html %]</textarea>
361
                        </div>
497
                        <a class="collapse-textarea btn btn-link" id="collapse_opacuserjs" data-target="opacuserjs" data-syntax="javascript" style="display:none" href="#">Collapse<br /></a>
362
                    </li>
498
                    </div>
363
                    <li>
499
                </div>
500
                <div class="fg-row">
501
                    <div class="fg-label">
364
                        <label for="opacusercss">Specific OPAC CSS: </label>
502
                        <label for="opacusercss">Specific OPAC CSS: </label>
365
                        <div style="display:flex; flex-direction:column;">
503
                    </div>
366
                            <a class="expand-textarea" id="expand_opacusercss" data-target="opacusercss" data-syntax="css" href="#">Edit</a>
504
                    <div class="fg-input">
367
                            <textarea style="display:none" name="opacusercss" id="opacusercss" class="" rows="10" cols="40">[% library.opacusercss | html %]</textarea>
505
                        <a class="expand-textarea btn btn-link" id="expand_opacusercss" data-target="opacusercss" data-syntax="css" href="#">Edit</a>
368
                            <a class="collapse-textarea" id="collapse_opacusercss" data-target="opacusercss" data-syntax="css" style="display:none" href="#">Collapse<br /></a>
506
                        <textarea style="display:none" name="opacusercss" id="opacusercss" class="" rows="10" cols="40">[% library.opacusercss | html %]</textarea>
369
                        </div>
507
                        <a class="collapse-textarea btn btn-link" id="collapse_opacusercss" data-target="opacusercss" data-syntax="css" style="display:none" href="#">Collapse<br /></a>
370
                    </li>
508
                    </div>
371
                </ol>
509
                </div>
372
            </fieldset>
510
            </fieldset>
373
            [% IF additional_fields.size %]
511
            [% IF additional_fields.size %]
374
                [% INCLUDE 'additional-fields-entry.inc' available=additional_fields values=additional_field_values wrap_fieldset=1 %]
512
                [% INCLUDE 'additional-fields-entry.inc' available=additional_fields values=additional_field_values wrap_fieldset=1 %]
375
- 

Return to bug 39483