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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/_forms.scss (-31 / +179 lines)
Lines 19-29 fieldset { Link Here
19
    }
19
    }
20
20
21
    &.fg {
21
    &.fg {
22
        container-name: form-grid;
23
        container-type: inline-size;
24
22
        .btn.btn-link {
25
        .btn.btn-link {
23
            padding: .175rem 0;
26
            padding: .175rem 0;
24
        }
27
        }
25
28
26
        .fg-checkbox {
29
        .fg-checkbox {
30
            .hint {
31
                display: inline;
32
            }
33
        }
34
35
        .fg-pair {
36
            display: flex;
37
            flex-wrap: nowrap;
38
            gap: .5rem;
39
        }
40
41
        .fg-radio {
27
            grid-column-start: 2;
42
            grid-column-start: 2;
28
        }
43
        }
29
44
Lines 35-62 fieldset { Link Here
35
            .label {
50
            .label {
36
                font-weight: bold;
51
                font-weight: bold;
37
            }
52
            }
38
        }
39
53
40
        .fg-row input[type="text"],
54
            .btn-default {
41
        .fg-row select {
55
                border: 1px solid #AAA;
42
            background-color: #FFF;
56
                border-radius: .375rem;
43
            border: 1px solid #AAAAAA;
57
                height: calc( 1.5em + .75rem + 2px );
44
            border-radius: 4px;
58
                padding: .375rem .75rem;
45
            color: #495057;
59
            }
46
            display: inline-block;
60
47
            height: calc( 1.5em + .75rem + 2px );
61
            .fg-input,
48
            line-height: 1.5;
62
            .fg-text {
49
            padding: .375rem .75rem;
63
                display: flex;
50
            width: 100%;
64
                gap: .5rem;
51
        }
65
66
                label {
67
                    margin-right: 1rem;
68
                }
69
            }
70
71
            &.input-checkbox {
72
                display: grid;
73
                grid-template-columns: 2rem 85%;
74
75
                .fg-label {
76
                    grid-column: 2 / 3;
77
                    grid-row: 1 / 2;
78
                    justify-self: left;
79
                    text-align: left;
80
                }
81
82
                .fg-input,
83
                .fg-text {
84
                    grid-column: 1 / 1;
85
                }
86
87
                .hint {
88
                    grid-row: 2 / 3;
89
                }
90
            }
91
92
            input[type="text"],
93
            input[type="password"],
94
            select {
95
                background-color: #FFF;
96
                border: 1px solid #AAAAAA;
97
                border-radius: 4px;
98
                color: #495057;
99
                display: inline-block;
100
                height: calc( 1.5em + .75rem + 2px );
101
                line-height: 1.5;
102
                padding: .375rem .75rem;
103
                width: 100%;
104
            }
105
106
            input[type="text"] {
107
                &.readonly,
108
                &:read-only {
109
                    background: #EEE url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='currentColor'%3E%3Cpath d='M6.5 1.371c.962 0 1.742.78 1.742 1.742v1.549H4.758V3.113c0-.962.78-1.742 1.742-1.742m2.613 5.226V3.113c0-3.484-5.226-3.484-5.226 0v1.549c-.962 0-1.742.78-1.742 1.741v4.355c0 .962.78 1.742 1.742 1.742h5.226c.962 0 1.742-.78 1.742-1.742V6.403c0-.962-.78-1.741-1.742-1.741' style='fill:%23838383'/%3E%3C/svg%3E" ) 1% 50% no-repeat;
110
                    border-style: inset;
111
                    border-width: 1px;
112
                    cursor: default;
113
                    padding-left: 20px;
114
115
                    &:focus {
116
                        border-color: unset;
117
                        border-radius: unset;
118
                    }
119
                }
120
            }
121
122
            input[type="text"].flatpickr-input {
123
                padding-left: calc( 1.5em + 10px );
124
                width: calc( 100% - 20px );
125
            }
126
127
            input[type="checkbox"],
128
            input[type="radio"] {
129
                margin: .4em 0 0 0;
130
            }
52
131
53
        .fg-row input[type="text"].flatpickr-input {
132
            textarea {
54
            padding-left: calc( 1.5em + 10px );
133
                border: 1px solid #AAAAAA;
55
            width: calc( 100% - 20px );
134
                border-radius: 4px;
135
                color: #495057;
136
                padding: .375rem .75rem;
137
                width: 100%;
138
            }
56
        }
139
        }
57
140
58
        .fg-row input[type="checkbox"] {
141
        .fg-row input[type="checkbox"] {
59
            margin: 0;
142
            margin: .4em .4em .4em 0;
143
        }
144
145
        .fg-row + .fg-row {
146
            margin-top: 1rem;
60
        }
147
        }
61
148
62
        .fg-label,
149
        .fg-label,
Lines 66-82 fieldset { Link Here
66
153
67
        .fg-text {
154
        .fg-text {
68
            padding: .375rem .75rem;
155
            padding: .375rem .75rem;
156
157
            label {
158
                margin-right: 1rem;
159
            }
160
        }
161
162
        .form-control[type="file"] {
163
            background-color: #FFF;
164
            border: 1px solid #AAA;
165
            display: inline-block;
166
            width: 80%;
69
        }
167
        }
70
168
71
        @media only screen and ( min-width: 608px ) {
169
        @container form-grid ( width > 768px ) {
72
            .fg-row {
170
            .fg-row {
73
                column-gap: .7rem;
171
                column-gap: .7rem;
74
                display: grid;
172
                display: grid;
75
                grid-template-columns: 15% 50% 15%;
173
                grid-template-columns: 25% 50% 15%;
76
                grid-template-rows: 1fr min-content;
174
                grid-template-rows: 1fr min-content;
77
175
176
                .fg-label {
177
                    justify-self: right;
178
                    text-align: right;
179
                }
180
181
                .fg-input,
182
                .fg-text {
183
                    grid-column-start: 2;
184
                }
185
186
                &.input-md {
187
                    grid-template-columns: 25% 30% 15%;
188
                }
189
190
                &.input-sm {
191
                    grid-template-columns: 25% 15% 15%;
192
                }
193
78
                &.wide {
194
                &.wide {
79
                    grid-template-columns: 15% 85%;
195
                    grid-template-columns: 25% 85%;
196
                }
197
198
                &.input-checkbox {
199
                    display: grid;
200
                    grid-template-columns: 25% 1.5rem 65%;
201
202
                    .fg-label {
203
                        grid-column: 3 / 4;
204
                        grid-row: 1 / 2;
205
                        justify-self: left;
206
                        text-align: left;
207
                    }
208
209
                    .fg-input,
210
                    .fg-text {
211
                        grid-column: 2 / 3;
212
                    }
213
214
                    .hint {
215
                        grid-column: 3 / 4;
216
                    }
80
                }
217
                }
81
218
82
                input[type="text"].flatpickr-input {
219
                input[type="text"].flatpickr-input {
Lines 84-106 fieldset { Link Here
84
                    width: calc( 100% - 20px );
221
                    width: calc( 100% - 20px );
85
                }
222
                }
86
            }
223
            }
87
88
            .fg-label {
89
                justify-self: right;
90
                text-align: right;
91
            }
92
        }
224
        }
93
225
94
        @media only screen and ( min-width: 1700px ) {
226
        @container form-grid ( width > 1700px ) {
95
            .fg-row {
227
            .fg-row {
96
                grid-template-columns: 10% 35% 15%;
228
                grid-template-columns: 20% 35% 15%;
229
230
                &.input-checkbox {
231
                    grid-template-columns: 20% 1.5rem 65%;
232
                }
233
234
                &.input-md {
235
                    grid-template-columns: 20% 30% 25%;
236
                }
237
238
                &.input-sm {
239
                    grid-template-columns: 20% 15% 25%;
240
                }
241
242
                &.wide {
243
                    grid-template-columns: 20% 80%;
244
                }
97
            }
245
            }
98
        }
246
        }
99
247
100
        .hint {
248
        .hint {
101
            color: #666;
249
            color: #666;
102
            font-size: 95%;
250
            font-size: 95%;
103
            grid-column-start: 2;
251
            grid-column: 4 / 2;
104
            margin: .3rem 0;
252
            margin: .3rem 0;
105
        }
253
        }
106
    }
254
    }
Lines 266-277 fieldset { Link Here
266
                    width: auto;
414
                    width: auto;
267
415
268
                    span {
416
                    span {
269
                        margin-left:5px;
417
                        margin-left: 5px;
270
                        width:auto;
418
                        width: auto;
271
                    }
419
                    }
272
                }
420
                }
273
421
274
                ul>li.hide-radio.selected {
422
                ul > li.hide-radio.selected {
275
                    background-color: initial;
423
                    background-color: initial;
276
                    color: initial;
424
                    color: initial;
277
                }
425
                }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt (-66 / +112 lines)
Lines 159-210 Link Here
159
        <h1>Duplicate budget</h1>
159
        <h1>Duplicate budget</h1>
160
        <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="add_modify_budget" name="f" method="post">
160
        <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="add_modify_budget" name="f" method="post">
161
            [% INCLUDE 'csrf-token.inc' %]
161
            [% INCLUDE 'csrf-token.inc' %]
162
            <fieldset class="rows">
162
            <fieldset class="fg">
163
                <input type="hidden" name="op" value="cud-duplicate_budget" />
163
                <input type="hidden" name="op" value="cud-duplicate_budget" />
164
                <input type="hidden" name="budget_period_id" value="[% budget_period_id | html %]" />
164
                <input type="hidden" name="budget_period_id" value="[% budget_period_id | html %]" />
165
165
166
                <ol>
166
                <div class="fg-row input-md">
167
                    <li>
167
                    <div class="fg-label">
168
                        <label class="required" for="from">Start date: </label>
168
                        <label class="required" for="from">Start date: </label>
169
                        <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | html %]" class="flatpickr" data-date_to="to" />
169
                    </div>
170
                        <span class="required">Required</span>
170
                    <div class="fg-input">
171
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
171
                        <input type="text" id="from" name="budget_period_startdate" value="[% budget_period_startdate | html %]" class="flatpickr" data-date_to="to" />
172
                    </li>
172
                    </div>
173
                    <li>
173
                    <div class="required">Required</div>
174
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
175
                </div>
176
                <div class="fg-row input-md">
177
                    <div class="fg-label">
174
                        <label class="required" for="to">End date: </label>
178
                        <label class="required" for="to">End date: </label>
175
                        <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | html %]" class="flatpickr" />
179
                    </div>
176
                        <span class="required">Required</span>
180
                    <div class="fg-input">
177
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
181
                        <input type="text" id="to" name="budget_period_enddate" value="[% budget_period_enddate | html %]" class="flatpickr" />
178
                    </li>
182
                    </div>
179
183
                    <div class="required">Required</div>
180
                    <li>
184
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
185
                </div>
186
187
                <div class="fg-row">
188
                    <div class="fg-label">
181
                        <label class="required" for="budget_period_description">Description</label>
189
                        <label class="required" for="budget_period_description">Description</label>
190
                    </div>
191
                    <div class="fg-input">
182
                        <input type="text" id="budget_period_description" name="budget_period_description" value="[% budgetperiod.budget_period_description | html %]" />
192
                        <input type="text" id="budget_period_description" name="budget_period_description" value="[% budgetperiod.budget_period_description | html %]" />
183
                        <span class="required">Required</span>
193
                    </div>
184
                    </li>
194
                    <div class="required">Required</div>
185
195
                </div>
186
                    <li>
196
187
                        <label for="amount_change_percentage">Change amounts by</label>
197
                <div class="fg-row input-sm">
188
                        <input type="text" id="amount_change_percentage" name="amount_change_percentage" /> %
198
                    <div class="fg-label">
189
                        <div class="hint">(can be positive or negative)</div>
199
                        <label for="amount_change_percentage">Change amounts by:</label>
190
                    </li>
200
                    </div>
191
201
                    <div class="fg-input"> <input type="text" id="amount_change_percentage" name="amount_change_percentage" /> % </div>
192
                    <li>
202
                    <div class="hint">Can be positive or negative</div>
203
                </div>
204
205
                <div class="fg-row input-sm">
206
                    <div class="fg-label">
193
                        <label for="amount_change_round_increment">If amounts changed, round to a multiple of</label>
207
                        <label for="amount_change_round_increment">If amounts changed, round to a multiple of</label>
208
                    </div>
209
                    <div class="fg-input">
194
                        <input type="text" id="amount_change_round_increment" name="amount_change_round_increment" />
210
                        <input type="text" id="amount_change_round_increment" name="amount_change_round_increment" />
195
                        <div class="hint">(amounts will be rounded down)</div>
211
                    </div>
196
                    </li>
212
                    <div class="hint">Amounts will be rounded down</div>
213
                </div>
197
214
198
                    <li>
215
                <div class="fg-row input-checkbox">
216
                    <div class="fg-label">
199
                        <label for="mark_as_inactive">Mark the original budget as inactive</label>
217
                        <label for="mark_as_inactive">Mark the original budget as inactive</label>
218
                    </div>
219
                    <div class="fg-input">
200
                        <input type="checkbox" id="mark_as_inactive" name="mark_original_budget_as_inactive" />
220
                        <input type="checkbox" id="mark_as_inactive" name="mark_original_budget_as_inactive" />
201
                    </li>
221
                    </div>
222
                </div>
202
223
203
                    <li>
224
                <div class="fg-row input-checkbox">
225
                    <div class="fg-label">
204
                        <label for="reset_all_budgets">Set all funds to zero</label>
226
                        <label for="reset_all_budgets">Set all funds to zero</label>
227
                    </div>
228
                    <div class="fg-input">
205
                        <input type="checkbox" id="reset_all_budgets" name="reset_all_budgets" />
229
                        <input type="checkbox" id="reset_all_budgets" name="reset_all_budgets" />
206
                    </li>
230
                    </div>
207
                </ol>
231
                </div>
208
            </fieldset>
232
            </fieldset>
209
233
210
            <fieldset class="action">
234
            <fieldset class="action">
Lines 224-286 Link Here
224
        [% END %]
248
        [% END %]
225
        <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="add_modify_budget" name="f" method="post">
249
        <form action="/cgi-bin/koha/admin/aqbudgetperiods.pl" id="add_modify_budget" name="f" method="post">
226
            [% INCLUDE 'csrf-token.inc' %]
250
            [% INCLUDE 'csrf-token.inc' %]
227
            <fieldset class="rows">
251
            <fieldset class="fg">
228
                <!-- ################################################################################# -->
252
                <!-- ################################################################################# -->
229
                <!-- display information about the budget period that must be added or modified -->
253
                <!-- display information about the budget period that must be added or modified -->
230
                <!-- ################################################################################# -->
254
                <!-- ################################################################################# -->
231
                <input type="hidden" name="op" value="cud-add_validate" />
255
                <input type="hidden" name="op" value="cud-add_validate" />
232
                <input type="hidden" name="budget_period_id" value="[% budget_period_id | html %]" />
256
                <input type="hidden" name="budget_period_id" value="[% budget_period_id | html %]" />
233
                <ol>
257
                <div class="fg-row input-md">
234
                    <li>
258
                    <div class="fg-label">
235
                        <label class="required" for="from">Start date: </label>
259
                        <label class="required" for="from">Start date: </label>
236
                        <input type="text" size="10" id="from" name="budget_period_startdate" value="[% budget_period_startdate | html %]" class="flatpickr" data-date_to="to" />
260
                    </div>
237
                        <span class="required">Required</span>
261
                    <div class="fg-input">
238
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
262
                        <input type="text" id="from" name="budget_period_startdate" value="[% budget_period_startdate | html %]" class="flatpickr" data-date_to="to" />
239
                    </li>
263
                    </div>
240
                    <li>
264
                    <div class="required">Required</div>
265
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
266
                </div>
267
                <div class="fg-row input-md">
268
                    <div class="fg-label">
241
                        <label class="required" for="to">End date: </label>
269
                        <label class="required" for="to">End date: </label>
242
                        <input type="text" size="10" id="to" name="budget_period_enddate" value="[% budget_period_enddate | html %]" class="flatpickr" />
270
                    </div>
243
                        <span class="required">Required</span>
271
                    <div class="fg-input">
244
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
272
                        <input type="text" id="to" name="budget_period_enddate" value="[% budget_period_enddate | html %]" class="flatpickr" />
245
                    </li>
273
                    </div>
246
274
                    <div class="required">Required</div>
247
                    <li>
275
                    <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
248
                        <!-- DESCRIPTION -->
276
                </div>
249
                        <!-- ############################## -->
277
278
                <div class="fg-row">
279
                    <!-- DESCRIPTION -->
280
                    <!-- ############################## -->
281
                    <div class="fg-label">
250
                        <label class="required" for="budget_period_description">Description: </label>
282
                        <label class="required" for="budget_period_description">Description: </label>
251
                        <input type="text" id="budget_period_description" name="budget_period_description" size="48" maxlength="80" value="[% budget_period_description | html %]" />
283
                    </div>
252
                        <span class="required">Required</span>
284
                    <div class="fg-input">
253
                    </li>
285
                        <input type="text" id="budget_period_description" name="budget_period_description" maxlength="80" value="[% budget_period_description | html %]" />
254
286
                    </div>
255
                    <li>
287
                    <div class="required">Required</div>
256
                        <!-- TOTAL -->
288
                </div>
257
                        <!-- ############################## -->
289
290
                <div class="fg-row input-sm">
291
                    <!-- TOTAL -->
292
                    <!-- ############################## -->
293
                    <div class="fg-label">
258
                        <label for="budget_period_total">Total amount: </label>
294
                        <label for="budget_period_total">Total amount: </label>
259
                        <input type="text" id="budget_period_total" name="budget_period_total" size="10" maxlength="80" value="[% budget_period_total | $Price on_editing => 1 %]" />
295
                    </div>
260
                    </li>
296
                    <div class="fg-input">
261
297
                        <input type="text" id="budget_period_total" name="budget_period_total" maxlength="80" value="[% budget_period_total | $Price on_editing => 1 %]" />
262
                    <li>
298
                    </div>
263
                        <!-- ACTIVE -->
299
                </div>
264
                        <!-- ############################## -->
300
301
                <div class="fg-row input-checkbox">
302
                    <!-- ACTIVE -->
303
                    <!-- ############################## -->
304
                    <div class="fg-label">
265
                        <label for="budget_period_active">Make budget active: </label>
305
                        <label for="budget_period_active">Make budget active: </label>
306
                    </div>
307
                    <div class="fg-input">
266
                        [% IF ( budget_period_active ) %]
308
                        [% IF ( budget_period_active ) %]
267
                            <input type="checkbox" checked="checked" id="budget_period_active" name="budget_period_active" value="1" />
309
                            <input type="checkbox" checked="checked" id="budget_period_active" name="budget_period_active" value="1" />
268
                        [% ELSE %]
310
                        [% ELSE %]
269
                            <input type="checkbox" id="budget_period_active" name="budget_period_active" value="1" />
311
                            <input type="checkbox" id="budget_period_active" name="budget_period_active" value="1" />
270
                        [% END %]
312
                        [% END %]
271
                    </li>
313
                    </div>
314
                </div>
272
315
273
                    <li>
316
                <div class="fg-row input-checkbox">
274
                        <!-- LOCK  -->
317
                    <!-- LOCK  -->
275
                        <!-- ############################## -->
318
                    <!-- ############################## -->
319
                    <div class="fg-label">
276
                        <label for="budget_period_locked">Lock budget: </label>
320
                        <label for="budget_period_locked">Lock budget: </label>
321
                    </div>
322
                    <div class="fg-input">
277
                        [% IF ( budget_period_locked ) %]
323
                        [% IF ( budget_period_locked ) %]
278
                            <input type="checkbox" checked="checked" id="budget_period_locked" name="budget_period_locked" value="1" />
324
                            <input type="checkbox" checked="checked" id="budget_period_locked" name="budget_period_locked" value="1" />
279
                        [% ELSE %]
325
                        [% ELSE %]
280
                            <input type="checkbox" id="budget_period_locked" name="budget_period_locked" value="1" />
326
                            <input type="checkbox" id="budget_period_locked" name="budget_period_locked" value="1" />
281
                        [% END %]
327
                        [% END %]
282
                    </li>
328
                    </div>
283
                </ol>
329
                </div>
284
            </fieldset>
330
            </fieldset>
285
331
286
            <fieldset class="action">
332
            <fieldset class="action">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt (-47 / +99 lines)
Lines 304-353 Link Here
304
                                [% END %]
304
                                [% END %]
305
                            [% END %]
305
                            [% END %]
306
                        </h1>
306
                        </h1>
307
                        <fieldset class="rows">
307
                        <fieldset class="fg">
308
                            <legend class="sr-only">Fund details</legend>
308
                            <legend class="sr-only">Fund details</legend>
309
309
310
                            <input type="hidden" name="op" value="cud-add_validate" />
310
                            <input type="hidden" name="op" value="cud-add_validate" />
311
                            <input type="hidden" name="checked" value="0" />
311
                            <input type="hidden" name="checked" value="0" />
312
                            <ol>
312
                            [% IF ( budget_parent_id ) %]
313
                                [% IF ( budget_parent_id ) %]
313
                                <div class="fg-row">
314
                                    <li>
314
                                    <div class="fg-label">
315
                                        <span class="label">Fund parent: </span>
315
                                        <span class="label">Fund parent: </span>
316
                                    </div>
317
                                    <div class="fg-text">
316
                                        [% budget_parent_name | html %]
318
                                        [% budget_parent_name | html %]
317
                                        [% budget_parent_id | html %]
319
                                        [% budget_parent_id | html %]
318
                                        - [% budget_parent_name | html %]
320
                                        - [% budget_parent_name | html %]
319
                                        <input type="hidden" name="budget_parent_id" value="[% budget_parent_id | html %]" />
321
                                        <input type="hidden" name="budget_parent_id" value="[% budget_parent_id | html %]" />
320
                                    </li>
322
                                    </div>
321
                                [% END %]
323
                                </div>
322
                                <li>
324
                            [% END %]
325
                            <div class="fg-row input-md">
326
                                <div class="fg-label">
323
                                    <label class="required" for="budget_code">Fund code: </label>
327
                                    <label class="required" for="budget_code">Fund code: </label>
324
                                    <input type="text" name="budget_code" id="budget_code" class="focus" value="[% budget_code | html %]" size="30" />
328
                                </div>
325
                                </li>
329
                                <div class="fg-input">
330
                                    <input type="text" name="budget_code" id="budget_code" class="focus" value="[% budget_code | html %]" />
331
                                </div>
332
                            </div>
326
333
327
                                <li>
334
                            <div class="fg-row">
335
                                <div class="fg-label">
328
                                    <label class="required" for="budget_name">Fund name: </label>
336
                                    <label class="required" for="budget_name">Fund name: </label>
329
                                    <input type="text" name="budget_name" id="budget_name" value="[% budget_name | html %]" size="60" />
337
                                </div>
330
                                </li>
338
                                <div class="fg-input">
339
                                    <input type="text" name="budget_name" id="budget_name" value="[% budget_name | html %]" />
340
                                </div>
341
                            </div>
331
342
332
                                <li>
343
                            <div class="fg-row input-sm">
344
                                <div class="fg-label">
333
                                    <label for="budget_amount" class="required">Amount: </label>
345
                                    <label for="budget_amount" class="required">Amount: </label>
334
                                    <input type="text" name="budget_amount" id="budget_amount" value="[% budget_amount | $Price on_editing => 1 %]" size="8" />
346
                                </div>
335
                                </li>
347
                                <div class="fg-input">
348
                                    <input type="text" name="budget_amount" id="budget_amount" value="[% budget_amount | $Price on_editing => 1 %]" />
349
                                </div>
350
                            </div>
336
351
337
                                <li>
352
                            <div class="fg-row input-sm">
353
                                <div class="fg-label">
338
                                    <label for="budget_encumb">Warning at (%): </label>
354
                                    <label for="budget_encumb">Warning at (%): </label>
339
                                    <input type="text" name="budget_encumb" id="budget_encumb" value="[% budget_encumb | html %]" size="10" />
355
                                </div>
340
                                    <span class="hint">0 to disable</span>
356
                                <div class="fg-input">
341
                                </li>
357
                                    <input type="text" name="budget_encumb" id="budget_encumb" value="[% budget_encumb | html %]" />
358
                                </div>
359
                                <div class="hint">0 to disable</div>
360
                            </div>
342
361
343
                                <li>
362
                            <div class="fg-row input-sm">
363
                                <div class="fg-label">
344
                                    <label for="budget_expend">Warning at (amount): </label>
364
                                    <label for="budget_expend">Warning at (amount): </label>
345
                                    <input type="text" name="budget_expend" id="budget_expend" value="[% budget_expend | $Price on_editing => 1 %]" size="10" />
365
                                </div>
346
                                    <span class="hint">0 to disable</span>
366
                                <div class="fg-input">
347
                                </li>
367
                                    <input type="text" name="budget_expend" id="budget_expend" value="[% budget_expend | $Price on_editing => 1 %]" />
368
                                </div>
369
                                <div class="hint">0 to disable</div>
370
                            </div>
348
371
349
                                <li>
372
                            <div class="fg-row">
373
                                <div class="fg-label">
350
                                    <span class="label">Owner: </span>
374
                                    <span class="label">Owner: </span>
375
                                </div>
376
                                <div class="fg-text">
351
                                    [% IF  budget_owner %]
377
                                    [% IF  budget_owner %]
352
                                        <span id="budget_owner_name">
378
                                        <span id="budget_owner_name">
353
                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% budget_owner.borrowernumber | uri %]"> [% budget_owner.firstname | html %] [% budget_owner.surname | html %] </a> |
379
                                            <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% budget_owner.borrowernumber | uri %]"> [% budget_owner.firstname | html %] [% budget_owner.surname | html %] </a> |
Lines 358-377 Link Here
358
                                    <a id="edit_owner" href="#patron_search_modal_owner" data-bs-toggle="modal"><i class="fa fa-search"></i> Select owner</a>
384
                                    <a id="edit_owner" href="#patron_search_modal_owner" data-bs-toggle="modal"><i class="fa fa-search"></i> Select owner</a>
359
                                    <a id="remove_owner" href="#"><i class="fa fa-trash-can"></i> Remove owner</a>
385
                                    <a id="remove_owner" href="#"><i class="fa fa-trash-can"></i> Remove owner</a>
360
                                    <input type="hidden" name="budget_owner_id" id="budget_owner_id" value="[% budget_owner.borrowernumber | html %]" />
386
                                    <input type="hidden" name="budget_owner_id" id="budget_owner_id" value="[% budget_owner.borrowernumber | html %]" />
361
                                </li>
387
                                </div>
388
                            </div>
362
389
363
                                [% IF budget_has_children %]
390
                            [% IF budget_has_children %]
364
                                    <li class="radio">
391
                                <div class="fg-row input-checkbox">
392
                                    <div class="fg-label">
365
                                        <label>
393
                                        <label>
366
                                            <input type="checkbox" id="set_owner_to_children" name="set_owner_to_children" value="1" />
367
                                            <span>Update all sub funds with this owner</span>
394
                                            <span>Update all sub funds with this owner</span>
368
                                        </label>
395
                                        </label>
369
                                        <span class="hint">Selecting this option will overwrite existing fund owners, if any</span>
396
                                    </div>
370
                                    </li>
397
                                    <div class="fg-input">
371
                                [% END %]
398
                                        <input type="checkbox" id="set_owner_to_children" name="set_owner_to_children" value="1" />
399
                                    </div>
400
                                    <div class="hint">Selecting this option will overwrite existing fund owners, if any</div>
401
                                </div>
402
                            [% END %]
372
403
373
                                <li>
404
                            <div class="fg-row">
405
                                <div class="fg-label">
374
                                    <span class="label">Users:</span>
406
                                    <span class="label">Users:</span>
407
                                </div>
408
                                <div class="fg-input">
375
                                    <ul style="float:left;" id="budget_users">
409
                                    <ul style="float:left;" id="budget_users">
376
                                        [% FOREACH user IN budget_users %]
410
                                        [% FOREACH user IN budget_users %]
377
                                            <li id="user_[% user.borrowernumber | html %]">
411
                                            <li id="user_[% user.borrowernumber | html %]">
Lines 384-431 Link Here
384
                                        >
418
                                        >
385
                                    </ul>
419
                                    </ul>
386
                                    <input type="hidden" name="budget_users_ids" id="budget_users_id" value="[% budget_users_ids | html %]" />
420
                                    <input type="hidden" name="budget_users_ids" id="budget_users_id" value="[% budget_users_ids | html %]" />
387
                                </li>
421
                                </div>
388
                                <li>
422
                            </div>
423
                            <div class="fg-row">
424
                                <div class="fg-label">
389
                                    <label for="budget_branchcode">Library: </label>
425
                                    <label for="budget_branchcode">Library: </label>
426
                                </div>
427
                                <div class="fg-input">
390
                                    <select name="budget_branchcode" id="budget_branchcode">
428
                                    <select name="budget_branchcode" id="budget_branchcode">
391
                                        <option value=""></option>
429
                                        <option value=""></option>
392
                                        [% PROCESS options_for_libraries libraries => Branches.all( selected => budget_branchcode, unfiltered => 1 ) %]
430
                                        [% PROCESS options_for_libraries libraries => Branches.all( selected => budget_branchcode, unfiltered => 1 ) %]
393
                                    </select>
431
                                    </select>
394
                                </li>
432
                                </div>
433
                            </div>
395
434
396
                                <li>
435
                            <div class="fg-row input-md">
436
                                <div class="fg-label">
397
                                    <label for="budget_permission">Restrict access to: </label>
437
                                    <label for="budget_permission">Restrict access to: </label>
438
                                </div>
439
                                <div class="fg-input">
398
                                    <select name="budget_permission" id="budget_permission">
440
                                    <select name="budget_permission" id="budget_permission">
399
                                        <option value="0" [% IF budget_perm_0 %]selected="selected"[% END %]> None </option>
441
                                        <option value="0" [% IF budget_perm_0 %]selected="selected"[% END %]> None </option>
400
401
                                        <option value="1" [% IF budget_perm_1 %]selected="selected"[% END %]> Owner </option>
442
                                        <option value="1" [% IF budget_perm_1 %]selected="selected"[% END %]> Owner </option>
402
403
                                        <option value="3" [% IF budget_perm_3 %]selected="selected"[% END %]> Owner and users </option>
443
                                        <option value="3" [% IF budget_perm_3 %]selected="selected"[% END %]> Owner and users </option>
404
405
                                        <option value="2" [% IF budget_perm_2 %]selected="selected"[% END %]> Owner, users and library </option>
444
                                        <option value="2" [% IF budget_perm_2 %]selected="selected"[% END %]> Owner, users and library </option>
406
                                    </select>
445
                                    </select>
407
                                </li>
446
                                </div>
447
                            </div>
408
448
409
                                <li>
449
                            <div class="fg-row">
450
                                <div class="fg-label">
410
                                    <label for="budget_notes">Notes: </label>
451
                                    <label for="budget_notes">Notes: </label>
452
                                </div>
453
                                <div class="fg-input">
411
                                    <textarea name="budget_notes" id="budget_notes" cols="80" rows="6">[% budget_notes | html %]</textarea>
454
                                    <textarea name="budget_notes" id="budget_notes" cols="80" rows="6">[% budget_notes | html %]</textarea>
412
                                </li>
455
                                </div>
456
                            </div>
413
457
414
                                <li>
458
                            <div class="fg-row">
459
                                <div class="fg-label">
415
                                    <label for="authorised_value_category1">Statistic 1 done on: </label>
460
                                    <label for="authorised_value_category1">Statistic 1 done on: </label>
461
                                </div>
462
                                <div class="fg-input">
416
                                    <select name="sort1_authcat" id="authorised_value_category1">
463
                                    <select name="sort1_authcat" id="authorised_value_category1">
417
                                        <option value=""></option>
464
                                        <option value=""></option>
418
                                        [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => sort1_authcat ) %]
465
                                        [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => sort1_authcat ) %]
419
                                    </select>
466
                                    </select>
420
                                </li>
467
                                </div>
421
                                <li>
468
                            </div>
469
470
                            <div class="fg-row">
471
                                <div class="fg-label">
422
                                    <label for="authorised_value_category2">Statistic 2 done on: </label>
472
                                    <label for="authorised_value_category2">Statistic 2 done on: </label>
473
                                </div>
474
                                <div class="fg-input">
423
                                    <select name="sort2_authcat" id="authorised_value_category2">
475
                                    <select name="sort2_authcat" id="authorised_value_category2">
424
                                        <option value=""></option>
476
                                        <option value=""></option>
425
                                        [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => sort2_authcat ) %]
477
                                        [% PROCESS options_for_authorised_value_categories authorised_value_categories => AuthorisedValues.GetCategories( selected => sort2_authcat ) %]
426
                                    </select>
478
                                    </select>
427
                                </li>
479
                                </div>
428
                            </ol>
480
                            </div>
429
481
430
                            [% IF ( budget_id ) %]
482
                            [% IF ( budget_id ) %]
431
                                <input type="hidden" name="budget_id" value="[% budget_id | html %]" />
483
                                <input type="hidden" name="budget_id" value="[% budget_id | html %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt (-25 / +44 lines)
Lines 90-126 Link Here
90
                [% ELSE %]
90
                [% ELSE %]
91
                    <h1>New contract for [% booksellername | html %]</h1>
91
                    <h1>New contract for [% booksellername | html %]</h1>
92
                [% END %]
92
                [% END %]
93
                <fieldset class="rows">
93
                <fieldset class="fg">
94
                    <ol>
94
                    [% IF ( contractnumber ) %]
95
                        [% IF ( contractnumber ) %]
95
                        <div class="fg-row">
96
                            <li
96
                            <div class="fg-label">
97
                                ><span class="label">Contract ID </span>[% contractnumber | html %]
97
                                <span class="label">Contract ID </span>
98
                            </div>
99
                            <div class="fg-text">
100
                                [% contractnumber | html %]
98
                                <input type="hidden" name="contractnumber" value="[% contractnumber | html %]" />
101
                                <input type="hidden" name="contractnumber" value="[% contractnumber | html %]" />
99
                                <input type="hidden" name="is_a_modif" value="1" />
102
                                <input type="hidden" name="is_a_modif" value="1" />
100
                            </li>
103
                            </div>
101
                        [% END %]
104
                        </div>
102
                        <li
105
                    [% END %]
103
                            ><label for="contractname" class="required">Name:</label> &nbsp;
106
                    <div class="fg-row">
107
                        <div class="fg-label">
108
                            <label for="contractname" class="required">Name:</label>
109
                        </div>
110
                        <div class="fg-input">
104
                            <input type="text" name="contractname" id="contractname" size="40" maxlength="80" value="[% contractname | html %]" />
111
                            <input type="text" name="contractname" id="contractname" size="40" maxlength="80" value="[% contractname | html %]" />
105
                            <span class="required">Required</span>
112
                            <div class="required">Required</div>
106
                        </li>
113
                        </div>
107
                        <li
114
                    </div>
108
                            ><label for="contractdescription">Description: </label> &nbsp;
115
                    <div class="fg-row">
116
                        <div class="fg-label">
117
                            <label for="contractdescription">Description: </label>
118
                        </div>
119
                        <div class="fg-input">
109
                            <input type="text" name="contractdescription" id="contractdescription" size="40" maxlength="80" value="[% contractdescription | html %]" />
120
                            <input type="text" name="contractdescription" id="contractdescription" size="40" maxlength="80" value="[% contractdescription | html %]" />
110
                        </li>
121
                        </div>
111
                        <li
122
                    </div>
112
                            ><label for="from" class="required">Start date:</label> &nbsp;
123
                    <div class="fg-row">
124
                        <div class="fg-label">
125
                            <label for="from" class="required">Start date:</label>
126
                        </div>
127
                        <div class="fg-input">
113
                            <input type="text" name="contractstartdate" id="from" value="[% contractstartdate | html %]" maxlength="10" size="10" class="flatpickr" data-date_to="to" />
128
                            <input type="text" name="contractstartdate" id="from" value="[% contractstartdate | html %]" maxlength="10" size="10" class="flatpickr" data-date_to="to" />
114
                            <span class="required">Required</span>
129
                            <div class="required">Required</div>
115
                            <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
130
                        </div>
116
                        </li>
131
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
117
                        <li
132
                    </div>
118
                            ><label for="to" class="required">End date:</label> &nbsp;
133
                    <div class="fg-row">
134
                        <div class="fg-label">
135
                            <label for="to" class="required">End date:</label>
136
                        </div>
137
                        <div class="fg-input">
119
                            <input type="text" name="contractenddate" id="to" value="[% contractenddate | html %]" maxlength="10" size="10" class="flatpickr" />
138
                            <input type="text" name="contractenddate" id="to" value="[% contractenddate | html %]" maxlength="10" size="10" class="flatpickr" />
120
                            <span class="required">Required</span>
139
                            <div class="required">Required</div>
121
                            <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
140
                        </div>
122
                        </li>
141
                        <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
123
                    </ol>
142
                    </div>
124
                </fieldset>
143
                </fieldset>
125
                <fieldset class="action">
144
                <fieldset class="action">
126
                    <input type="submit" class="btn btn-primary" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid | html %]&amp;contractnumber=[% contractnumber | html %]">Cancel</a>
145
                    <input type="submit" class="btn btn-primary" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/aqcontract.pl?booksellerid=[% booksellerid | html %]&amp;contractnumber=[% contractnumber | html %]">Cancel</a>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt (-38 / +77 lines)
Lines 108-165 Link Here
108
        <form action="/cgi-bin/koha/admin/currency.pl" name="Aform" method="post" class="validated">
108
        <form action="/cgi-bin/koha/admin/currency.pl" name="Aform" method="post" class="validated">
109
            [% INCLUDE 'csrf-token.inc' %]
109
            [% INCLUDE 'csrf-token.inc' %]
110
            <input type="hidden" name="op" value="cud-add_validate" />
110
            <input type="hidden" name="op" value="cud-add_validate" />
111
            <fieldset class="rows">
111
            <fieldset class="fg">
112
                <legend class="sr-only">New currency entry form</legend>
112
                <legend class="sr-only">New currency entry form</legend>
113
                <ol>
113
                <div class="fg-row input-md">
114
                    <li>
114
                    [% IF currency %]
115
                        [% IF currency %]
115
                        <div class="fg-label">
116
                            <span class="label">Currency: </span>
116
                            <span class="label">Currency: </span>
117
                        </div>
118
                        <div class="fg-text">
119
                            [% currency.currency | html %]
117
                            <input type="hidden" name="is_a_modif" value="1" />
120
                            <input type="hidden" name="is_a_modif" value="1" />
118
                            <input type="hidden" name="currency_code" id="currency" value="[% currency.currency | html %]" />[% currency.currency | html %]
121
                            <input type="hidden" name="currency_code" id="currency" value="[% currency.currency | html %]" />
119
                        [% ELSE %]
122
                        </div>
123
                    [% ELSE %]
124
                        <div class="fg-label">
120
                            <label for="currency_code" class="required">Currency: </label>
125
                            <label for="currency_code" class="required">Currency: </label>
121
                            <input type="text" name="currency_code" id="currency_code" class="focus required" size="50" maxlength="50" required="required" /> <span class="required">Required</span>
126
                        </div>
122
                        [% END %]
127
                        <div class="fg-input">
123
                    </li>
128
                            <input type="text" name="currency_code" id="currency_code" class="focus required" size="50" maxlength="50" required="required" />
124
                    <li>
129
                        </div>
130
                        <div class="required">Required</div>
131
                    [% END %]
132
                </div>
133
                <div class="fg-row input-sm">
134
                    <div class="fg-label">
125
                        <label for="rate" class="required">Rate: </label>
135
                        <label for="rate" class="required">Rate: </label>
126
                        <input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% currency.rate | html %]" required="required" class="required" /> <span class="required">Required</span>
136
                    </div>
127
                    </li>
137
                    <div class="fg-input">
128
                    <li>
138
                        <input type="text" name="rate" id="rate" size="10" maxlength="10" value="[% currency.rate | html %]" required="required" class="required" />
139
                    </div>
140
                    <div class="required">Required</div>
141
                </div>
142
                <div class="fg-row input-sm">
143
                    <div class="fg-label">
129
                        <label for="symbol" class="required">Symbol: </label>
144
                        <label for="symbol" class="required">Symbol: </label>
130
                        <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% currency.symbol | html %]" required="required" class="required" /> <span class="required">Required</span>
145
                    </div>
131
                    </li>
146
                    <div class="fg-input">
132
                    <li>
147
                        <input type="text" name="symbol" id="symbol" size="5" maxlength="5" value="[% currency.symbol | html %]" required="required" class="required" />
148
                    </div>
149
                    <div class="required">Required</div>
150
                </div>
151
                <div class="fg-row input-sm">
152
                    <div class="fg-label">
133
                        <label for="isocode">ISO code: </label>
153
                        <label for="isocode">ISO code: </label>
154
                    </div>
155
                    <div class="fg-input">
134
                        <input type="text" name="isocode" id="isocode" size="5" maxlength="5" value="[% currency.isocode | html %]" />
156
                        <input type="text" name="isocode" id="isocode" size="5" maxlength="5" value="[% currency.isocode | html %]" />
135
                    </li>
157
                    </div>
136
                    <li> <span class="label">Last updated: </span>[% currency.timestamp | $KohaDates %] </li>
158
                </div>
137
                    <li>
159
                [% IF ( currency ) %]
160
                    <div class="fg-row">
161
                        <div class="fg-label">
162
                            <span class="label">Last updated: </span>
163
                        </div>
164
                        <div class="fg-text"> [% currency.timestamp | $KohaDates %] </div>
165
                    </div>
166
                [% END %]
167
                <div class="fg-row input-checkbox">
168
                    <div class="fg-label">
138
                        <label for="p_sep_by_space">Space separation between symbol and value: </label>
169
                        <label for="p_sep_by_space">Space separation between symbol and value: </label>
170
                    </div>
171
                    <div class="fg-input">
139
                        [% IF currency.p_sep_by_space %]
172
                        [% IF currency.p_sep_by_space %]
140
                            <input type="checkbox" id="p_sep_by_space" name="p_sep_by_space" value="1" checked="checked" />
173
                            <input type="checkbox" id="p_sep_by_space" name="p_sep_by_space" value="1" checked="checked" />
141
                        [% ELSE %]
174
                        [% ELSE %]
142
                            <input type="checkbox" id="p_sep_by_space" name="p_sep_by_space" value="1" />
175
                            <input type="checkbox" id="p_sep_by_space" name="p_sep_by_space" value="1" />
143
                        [% END %]
176
                        [% END %]
144
                    </li>
177
                    </div>
145
                    <li>
178
                </div>
179
                <div class="fg-row input-checkbox">
180
                    <div class="fg-label">
146
                        <label for="p_cs_precedes">Currency symbol precedes value: </label>
181
                        <label for="p_cs_precedes">Currency symbol precedes value: </label>
182
                    </div>
183
                    <div class="fg-input">
147
                        [% IF currency.p_cs_precedes %]
184
                        [% IF currency.p_cs_precedes %]
148
                            <input type="checkbox" id="p_cs_precedes" name="p_cs_precedes" value="1" checked="checked" />
185
                            <input type="checkbox" id="p_cs_precedes" name="p_cs_precedes" value="1" checked="checked" />
149
                        [% ELSE %]
186
                        [% ELSE %]
150
                            <input type="checkbox" id="p_cs_precedes" name="p_cs_precedes" value="1" />
187
                            <input type="checkbox" id="p_cs_precedes" name="p_cs_precedes" value="1" />
151
                        [% END %]
188
                        [% END %]
152
                    </li>
189
                    </div>
153
                    <li>
190
                </div>
191
                <div class="fg-row input-checkbox">
192
                    <div class="fg-label">
154
                        <label for="active">Active: </label>
193
                        <label for="active">Active: </label>
194
                    </div>
195
                    <div class="fg-input">
155
                        [% IF currency.active %]
196
                        [% IF currency.active %]
156
                            <input type="checkbox" id="active" name="active" value="1" checked="checked" />
197
                            <input type="checkbox" id="active" name="active" value="1" checked="checked" />
157
                        [% ELSE %]
198
                        [% ELSE %]
158
                            <input type="checkbox" id="active" name="active" value="1" />
199
                            <input type="checkbox" id="active" name="active" value="1" />
159
                        [% END %]
200
                        [% END %]
160
                        <span id="hint" class="hint"></span>
201
                    </div>
161
                    </li>
202
                    <div id="hint" class="hint"></div>
162
                </ol>
203
                </div>
163
            </fieldset>
204
            </fieldset>
164
205
165
            <fieldset class="action">
206
            <fieldset class="action">
Lines 266-295 Link Here
266
[% MACRO jsinclude BLOCK %]
307
[% MACRO jsinclude BLOCK %]
267
    [% Asset.js("js/admin-menu.js") | $raw %]
308
    [% Asset.js("js/admin-menu.js") | $raw %]
268
    [% INCLUDE 'datatables.inc' %]
309
    [% INCLUDE 'datatables.inc' %]
269
    <script>
270
        let table_settings = [% TablesSettings.GetTableSettings( 'admin', 'currency', 'currencies-table', 'json' ) | $raw %]
271
    </script>
272
    <script>
310
    <script>
273
        function check_currency(val) {
311
        function check_currency(val) {
274
            if (val == 1.0) {
312
            if ( val == 1.0 ) {
275
                $("#active").prop("disabled", false);
313
                $("#active").prop('disabled', false);
276
                $("#hint").html("");
314
                $("#hint").html("");
277
            } else {
315
            } else {
278
                $("#active").prop("checked", false);
316
                $("#active").prop('checked', false);
279
                $("#active").prop("disabled", true);
317
                $("#active").prop('disabled', true);
280
                $("#hint").html(_("The active currency must have a rate of 1.0"));
318
                $("#hint").html(_("The active currency must have a rate of 1.0"));
281
            }
319
            }
282
        }
320
        }
283
321
284
        $(document).ready(function () {
322
        $(document).ready(function() {
323
            let table_settings = [% TablesSettings.GetTableSettings( 'admin', 'currency', 'currencies-table', 'json' ) | $raw %]
285
            $("#currencies-table").kohaTable({}, table_settings);
324
            $("#currencies-table").kohaTable({}, table_settings);
286
325
287
            // prevents users to check active with a currency != 1
326
            // prevents users to check active with a currency != 1
288
            $("#rate").keyup(function () {
327
            $("#rate").keyup(function() {
289
                check_currency($(this).val());
328
                check_currency( $(this).val() );
290
            });
329
            });
291
            check_currency($("#rate").val());
330
            check_currency( $("#rate").val() );
292
            $("#currency_code").on("blur", function () {
331
            $("#currency_code").on("blur",function(){
293
                toUC(this);
332
                toUC(this);
294
            });
333
            });
295
        });
334
        });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt (-52 / +94 lines)
Lines 98-108 Link Here
98
            </h1>
98
            </h1>
99
99
100
            <!-- Basic information -->
100
            <!-- Basic information -->
101
            <fieldset class="rows">
101
            <fieldset class="fg">
102
                <legend>Basic information</legend>
102
                <legend>Basic information</legend>
103
                <ol>
103
                <div class="fg-row">
104
                    <li>
104
                    <div class="fg-label">
105
                        <label for="vendor_id">Vendor: </label>
105
                        <label for="vendor_id">Vendor: </label>
106
                    </div>
107
                    <div class="fg-input">
106
                        <select name="vendor_id" id="vendor_id">
108
                        <select name="vendor_id" id="vendor_id">
107
                            [% FOREACH vendor IN vendors %]
109
                            [% FOREACH vendor IN vendors %]
108
                                [% IF account.vendor_id == vendor.id %]
110
                                [% IF account.vendor_id == vendor.id %]
Lines 112-125 Link Here
112
                                [% END %]
114
                                [% END %]
113
                            [% END %]
115
                            [% END %]
114
                        </select>
116
                        </select>
115
                    </li>
117
                    </div>
116
                    <li>
118
                </div>
119
                <div class="fg-row">
120
                    <div class="fg-label">
117
                        <label for="description">Description: </label>
121
                        <label for="description">Description: </label>
122
                    </div>
123
                    <div class="fg-input">
118
                        <input type="text" name="description" id="description" size="20" value="[% account.description | html %]" />
124
                        <input type="text" name="description" id="description" size="20" value="[% account.description | html %]" />
119
                    </li>
125
                    </div>
120
                    [% IF plugins %]
126
                </div>
121
                        <li>
127
                [% IF plugins %]
128
                    <div class="fg-row">
129
                        <div class="fg-label">
122
                            <label for="plugin">Plugin: </label>
130
                            <label for="plugin">Plugin: </label>
131
                        </div>
132
                        <div class="fg-input">
123
                            <select name="plugin" id="plugin">
133
                            <select name="plugin" id="plugin">
124
                                <option value="">Do not use plugin</option>
134
                                <option value="">Do not use plugin</option>
125
                                [% FOREACH plugin IN plugins %]
135
                                [% FOREACH plugin IN plugins %]
Lines 130-141 Link Here
130
                                    [% END %]
140
                                    [% END %]
131
                                [% END %]
141
                                [% END %]
132
                            </select>
142
                            </select>
133
                        </li>
143
                        </div>
134
                    [% ELSE %]
144
                    </div>
135
                        <input type="hidden" name="plugin" value="" />
145
                [% ELSE %]
136
                    [% END %]
146
                    <input type="hidden" name="plugin" value="" />
137
                    <li>
147
                [% END %]
148
                <div class="fg-row">
149
                    <div class="fg-label">
138
                        <label for="id_code_qualifier">Qualifier:</label>
150
                        <label for="id_code_qualifier">Qualifier:</label>
151
                    </div>
152
                    <div class="fg-input">
139
                        <select name="id_code_qualifier" id="id_code_qualifier">
153
                        <select name="id_code_qualifier" id="id_code_qualifier">
140
                            [% FOREACH qualifier IN code_qualifiers %]
154
                            [% FOREACH qualifier IN code_qualifiers %]
141
                                [% IF qualifier.code == account.id_code_qualifier %]
155
                                [% IF qualifier.code == account.id_code_qualifier %]
Lines 145-157 Link Here
145
                                [% END %]
159
                                [% END %]
146
                            [% END %]
160
                            [% END %]
147
                        </select>
161
                        </select>
148
                    </li>
162
                    </div>
149
                    <li>
163
                </div>
164
                <div class="fg-row">
165
                    <div class="fg-label">
150
                        <label for="san">SAN: </label>
166
                        <label for="san">SAN: </label>
167
                    </div>
168
                    <div class="fg-input">
151
                        <input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san | html %]" />
169
                        <input type="text" name="san" id="san" size="20" maxlength="20" value="[% account.san | html %]" />
152
                    </li>
170
                    </div>
153
                    <li>
171
                </div>
172
                <div class="fg-row">
173
                    <div class="fg-label">
154
                        <label for="standard">Standard:</label>
174
                        <label for="standard">Standard:</label>
175
                    </div>
176
                    <div class="fg-input">
155
                        <select name="standard" id="standard">
177
                        <select name="standard" id="standard">
156
                            [% FOREACH standard IN standards %]
178
                            [% FOREACH standard IN standards %]
157
                                [% IF standard == 'BIC' %]
179
                                [% IF standard == 'BIC' %]
Lines 166-181 Link Here
166
                                [% END %]
188
                                [% END %]
167
                            [% END %]
189
                            [% END %]
168
                        </select>
190
                        </select>
169
                    </li>
191
                    </div>
170
                </ol>
192
                </div>
171
            </fieldset>
193
            </fieldset>
172
194
173
            <!-- Transport settings -->
195
            <!-- Transport settings -->
174
            <fieldset class="rows">
196
            <fieldset class="fg">
175
                <legend>Transport settings</legend>
197
                <legend>Transport settings</legend>
176
                <ol>
198
                <div class="fg-row">
177
                    <li>
199
                    <div class="fg-label">
178
                        <label for="file_transport_id">File transport: </label>
200
                        <label for="file_transport_id">File transport: </label>
201
                    </div>
202
                    <div class="fg-input">
179
                        <select name="file_transport_id" id="file_transport_id">
203
                        <select name="file_transport_id" id="file_transport_id">
180
                            <option value="">Select a file transport configuration</option>
204
                            <option value="">Select a file transport configuration</option>
181
                            [% FOREACH transport IN file_transports %]
205
                            [% FOREACH transport IN file_transports %]
Lines 186-261 Link Here
186
                                [% END %]
210
                                [% END %]
187
                            [% END %]
211
                            [% END %]
188
                        </select>
212
                        </select>
189
                        <div class="hint"> Select a file transport configuration for this EDI account. File transports can be managed in <a href="/cgi-bin/koha/admin/file_transports.pl">Administration &rsaquo; File transports</a>. </div>
213
                    </div>
190
                    </li>
214
                    <div class="hint"> Select a file transport configuration for this EDI account. File transports can be managed in <a href="/cgi-bin/koha/admin/file_transports.pl">Administration &rsaquo; File transports</a>. </div>
191
                </ol>
215
                </div>
192
            </fieldset>
216
            </fieldset>
193
217
194
            <!-- Message types -->
218
            <!-- Message types -->
195
            <fieldset class="rows">
219
            <fieldset class="fg">
196
                <legend>Message types</legend>
220
                <legend>Message types</legend>
197
                <ol>
221
                <div class="fg-row input-checkbox">
198
                    <li>
222
                    <div class="fg-label">
199
                        <label for="quotes_enabled">Quotes enabled: </label>
223
                        <label for="quotes_enabled">Quotes enabled: </label>
224
                    </div>
225
                    <div class="fg-input">
200
                        [% IF account.quotes_enabled %]
226
                        [% IF account.quotes_enabled %]
201
                            <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" checked="checked" />
227
                            <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" checked="checked" />
202
                        [% ELSE %]
228
                        [% ELSE %]
203
                            <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" />
229
                            <input type="checkbox" name="quotes_enabled" id="quotes_enabled" value="1" />
204
                        [% END %]
230
                        [% END %]
205
                    </li>
231
                    </div>
206
                    <li>
232
                </div>
233
                <div class="fg-row input-checkbox">
234
                    <div class="fg-label">
207
                        <label for="orders_enabled">Orders enabled: </label>
235
                        <label for="orders_enabled">Orders enabled: </label>
236
                    </div>
237
                    <div class="fg-input">
208
                        [% IF account.orders_enabled %]
238
                        [% IF account.orders_enabled %]
209
                            <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" checked="checked" />
239
                            <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" checked="checked" />
210
                        [% ELSE %]
240
                        [% ELSE %]
211
                            <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" />
241
                            <input type="checkbox" name="orders_enabled" id="orders_enabled" value="1" />
212
                        [% END %]
242
                        [% END %]
213
                    </li>
243
                    </div>
214
                    <li>
244
                </div>
245
                <div class="fg-row input-checkbox">
246
                    <div class="fg-label">
215
                        <label for="invoices_enabled">Invoices enabled: </label>
247
                        <label for="invoices_enabled">Invoices enabled: </label>
248
                    </div>
249
                    <div class="fg-input">
216
                        [% IF account.invoices_enabled %]
250
                        [% IF account.invoices_enabled %]
217
                            <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" checked="checked" />
251
                            <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" checked="checked" />
218
                        [% ELSE %]
252
                        [% ELSE %]
219
                            <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" />
253
                            <input type="checkbox" name="invoices_enabled" id="invoices_enabled" value="1" />
220
                        [% END %]
254
                        [% END %]
221
                    </li>
255
                    </div>
222
                    <li>
256
                </div>
257
                <div class="fg-row input-checkbox">
258
                    <div class="fg-label">
223
                        <label for="responses_enabled">Responses enabled: </label>
259
                        <label for="responses_enabled">Responses enabled: </label>
260
                    </div>
261
                    <div class="fg-input">
224
                        [% IF account.responses_enabled %]
262
                        [% IF account.responses_enabled %]
225
                            <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" checked="checked" />
263
                            <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" checked="checked" />
226
                        [% ELSE %]
264
                        [% ELSE %]
227
                            <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" />
265
                            <input type="checkbox" name="responses_enabled" id="responses_enabled" value="1" />
228
                        [% END %]
266
                        [% END %]
229
                    </li>
267
                    </div>
230
                </ol>
268
                </div>
231
            </fieldset>
269
            </fieldset>
232
270
233
            <!-- Functional switches -->
271
            <!-- Functional switches -->
234
            <fieldset class="rows">
272
            <fieldset class="fg">
235
                <legend>Functional switches</legend>
273
                <legend>Functional switches</legend>
236
                <ol>
274
                <div class="fg-row input-checkbox">
237
                    <li>
275
                    <div class="fg-label">
238
                        <label for="auto_orders">Automatic ordering: </label>
276
                        <label for="auto_orders">Automatic ordering: </label>
277
                    </div>
278
                    <div class="fg-input">
239
                        [% IF account.auto_orders %]
279
                        [% IF account.auto_orders %]
240
                            <input type="checkbox" name="auto_orders" id="auto_orders" value="1" checked="checked" />
280
                            <input type="checkbox" name="auto_orders" id="auto_orders" value="1" checked="checked" />
241
                        [% ELSE %]
281
                        [% ELSE %]
242
                            <input type="checkbox" name="auto_orders" id="auto_orders" value="1" />
282
                            <input type="checkbox" name="auto_orders" id="auto_orders" value="1" />
243
                        [% END %]
283
                        [% END %]
244
                        <div class="hint"> With automatic ordering quotes generate orders without staff intervention. </div>
284
                    </div>
245
                    </li>
285
                    <div class="hint"> With automatic ordering quotes generate orders without staff intervention. </div>
246
                    <li>
286
                </div>
287
                <div class="fg-row input-checkbox">
288
                    <div class="fg-label">
247
                        <label for="po_is_basketname">Use purchase order numbers: </label>
289
                        <label for="po_is_basketname">Use purchase order numbers: </label>
290
                    </div>
291
                    <div class="fg-input">
248
                        [% IF account.po_is_basketname %]
292
                        [% IF account.po_is_basketname %]
249
                            <input type="checkbox" name="po_is_basketname" id="po_is_basketname" value="1" checked="checked" />
293
                            <input type="checkbox" name="po_is_basketname" id="po_is_basketname" value="1" checked="checked" />
250
                        [% ELSE %]
294
                        [% ELSE %]
251
                            <input type="checkbox" name="po_is_basketname" id="po_is_basketname" value="1" />
295
                            <input type="checkbox" name="po_is_basketname" id="po_is_basketname" value="1" />
252
                        [% END %]
296
                        [% END %]
253
                        <div class="hint">
297
                    </div>
254
                            When enabled, basket names are used as purchase order numbers. <br />For received QUOTE messages, we will use the RFF+ON field to populate the basket name. <br />For generated ORDER messages, we will use the
298
                    <div class="hint">
255
                            basket name to populate the BGM segment.</div
299
                        When enabled, basket names are used as purchase order numbers. <br />For received QUOTE messages, we will use the RFF+ON field to populate the basket name. <br />For generated ORDER messages, we will use the basket
256
                        >
300
                        name to populate the BGM segment.
257
                    </li>
301
                    </div>
258
                </ol>
302
                </div>
259
            </fieldset>
303
            </fieldset>
260
304
261
            <fieldset class="action">
305
            <fieldset class="action">
Lines 410-419 Link Here
410
    [% Asset.js("js/admin-menu.js") | $raw %]
454
    [% Asset.js("js/admin-menu.js") | $raw %]
411
    [% INCLUDE 'datatables.inc' %]
455
    [% INCLUDE 'datatables.inc' %]
412
    <script>
456
    <script>
413
        var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'edi_accounts', 'edi_accounts_table', 'json' ) | $raw %];
457
        $(document).ready(function(){
414
    </script>
458
            var table_settings = [% TablesSettings.GetTableSettings( 'admin', 'edi_accounts', 'edi_accounts_table', 'json' ) | $raw %];
415
    <script>
416
        $(document).ready(function () {
417
            $("#edi_accounts_table").kohaTable(
459
            $("#edi_accounts_table").kohaTable(
418
                {
460
                {
419
                    pagingType: "full",
461
                    pagingType: "full",
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_ean_accounts.tt (-12 / +25 lines)
Lines 97-108 Link Here
97
                [% END %]
97
                [% END %]
98
            </h1>
98
            </h1>
99
99
100
            <fieldset class="rows">
100
            <fieldset class="fg">
101
                <legend class="sr-only">EAN details</legend>
101
                <legend class="sr-only">EAN details</legend>
102
102
103
                <ol>
103
                <div class="fg-row">
104
                    <li>
104
                    <div class="fg-label">
105
                        <label for="branchcode">Library: </label>
105
                        <label for="branchcode">Library: </label>
106
                    </div>
107
                    <div class="fg-input">
106
                        <select name="branchcode" id="branchcode">
108
                        <select name="branchcode" id="branchcode">
107
                            <option value="">All libraries</option>
109
                            <option value="">All libraries</option>
108
                            [% FOREACH branch IN branches %]
110
                            [% FOREACH branch IN branches %]
Lines 113-129 Link Here
113
                                [% END %]
115
                                [% END %]
114
                            [% END %]
116
                            [% END %]
115
                        </select>
117
                        </select>
116
                    </li>
118
                    </div>
117
                    <li>
119
                </div>
120
                <div class="fg-row">
121
                    <div class="fg-label">
118
                        <label for="description">Description: </label>
122
                        <label for="description">Description: </label>
123
                    </div>
124
                    <div class="fg-input">
119
                        <input type="text" name="description" id="description" size="30" maxlength="128" value="[% ean.description | html %]" />
125
                        <input type="text" name="description" id="description" size="30" maxlength="128" value="[% ean.description | html %]" />
120
                    </li>
126
                    </div>
121
                    <li>
127
                </div>
128
                <div class="fg-row">
129
                    <div class="fg-label">
122
                        <label for="ean">EAN: </label>
130
                        <label for="ean">EAN: </label>
131
                    </div>
132
                    <div class="fg-input">
123
                        <input type="text" name="ean" id="ean" size="20" maxlength="15" value="[% ean.ean | html %]" />
133
                        <input type="text" name="ean" id="ean" size="20" maxlength="15" value="[% ean.ean | html %]" />
124
                    </li>
134
                    </div>
125
                    <li>
135
                </div>
136
                <div class="fg-row">
137
                    <div class="fg-label">
126
                        <label for="id_code_qualifier">Qualifier: </label>
138
                        <label for="id_code_qualifier">Qualifier: </label>
139
                    </div>
140
                    <div class="fg-input">
127
                        <select name="id_code_qualifier" id="id_code_qualifier">
141
                        <select name="id_code_qualifier" id="id_code_qualifier">
128
                            [% FOREACH qualifier IN code_qualifiers %]
142
                            [% FOREACH qualifier IN code_qualifiers %]
129
                                [% IF qualifier.code == ean.id_code_qualifier %]
143
                                [% IF qualifier.code == ean.id_code_qualifier %]
Lines 133-140 Link Here
133
                                [% END %]
147
                                [% END %]
134
                            [% END %]
148
                            [% END %]
135
                        </select>
149
                        </select>
136
                    </li>
150
                    </div>
137
                </ol>
151
                </div>
138
            </fieldset>
152
            </fieldset>
139
153
140
            <fieldset class="action">
154
            <fieldset class="action">
141
- 

Return to bug 41823