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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step1.tt (-12 / +16 lines)
Lines 51-74 Link Here
51
        <input type="hidden" name="course_id" value="[% course.course_id | html %]" />
51
        <input type="hidden" name="course_id" value="[% course.course_id | html %]" />
52
        <input type="hidden" name="op" value="lookup" />
52
        <input type="hidden" name="op" value="lookup" />
53
53
54
        <fieldset class="rows">
54
        <fieldset class="fg">
55
            <legend>Add items by barcode</legend>
55
            <legend>Add items by barcode</legend>
56
            <ol>
56
            <div class="fg-row input-md">
57
                <li>
57
                <div class="fg-label">
58
                    <label class="required" for="barcode">Item barcode:</label>
58
                    <label class="required" for="barcode">Item barcode:</label>
59
                    <input id="barcode" name="barcode" class="focus" type="text" />
59
                </div>
60
                </li>
60
                <div class="fg-input">
61
            </ol>
61
                    <input id="barcode" name="barcode" class="focus" type="text" maxlength="20" />
62
                </div>
63
            </div>
62
        </fieldset>
64
        </fieldset>
63
65
64
        <fieldset class="rows">
66
        <fieldset class="fg">
65
            <legend>Or use biblionumber of a bibliographic record</legend>
67
            <legend>Or use biblionumber of a bibliographic record</legend>
66
            <ol>
68
            <div class="fg-row input-sm">
67
                <li>
69
                <div class="fg-label">
68
                    <label class="required" for="biblionumber">Biblionumber:</label>
70
                    <label class="required" for="biblionumber">Biblionumber:</label>
69
                    <input id="biblionumber" name="biblionumber" type="text" />
71
                </div>
70
                </li>
72
                <div class="fg-input">
71
            </ol>
73
                    <input id="biblionumber" name="biblionumber" type="text" maxlength="11" />
74
                </div>
75
            </div>
72
        </fieldset>
76
        </fieldset>
73
77
74
        <fieldset class="action">
78
        <fieldset class="action">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt (-23 / +52 lines)
Lines 69-91 Link Here
69
        <input type="hidden" name="op" value="cud-add" />
69
        <input type="hidden" name="op" value="cud-add" />
70
70
71
        [% IF item # adding an item to course items %]
71
        [% IF item # adding an item to course items %]
72
            <fieldset class="rows">
72
            <fieldset class="fg">
73
                [% IF is_edit || course_reserve %]
73
                [% IF is_edit || course_reserve %]
74
                    <legend>[% tpx("Editing course reserve item", "Editing {title}", { title = item_title }) | $raw %]</legend>
74
                    <legend>[% tpx("Editing course reserve item", "Editing {title}", { title = item_title }) | $raw %]</legend>
75
                [% ELSE %]
75
                [% ELSE %]
76
                    <legend>[% tpx("Adding course reserve item", "Adding {title}", { title = item_title }) | $raw %]</legend>
76
                    <legend>[% tpx("Adding course reserve item", "Adding {title}", { title = item_title }) | $raw %]</legend>
77
                [% END %]
77
                [% END %]
78
                <ol>
78
79
                    <li>
79
                <div class="fg-row">
80
                    <div class="fg-label">
80
                        <span class="label">Barcode:</span>
81
                        <span class="label">Barcode:</span>
82
                    </div>
83
                    <div class="fg-text">
81
                        <span id="barcode">[% item.barcode | html %]</span>
84
                        <span id="barcode">[% item.barcode | html %]</span>
82
                        <input type="hidden" name="itemnumber" value="[% item.itemnumber | html %]" />
85
                        <input type="hidden" name="itemnumber" value="[% item.itemnumber | html %]" />
83
                    </li>
86
                    </div>
87
                </div>
84
88
85
                    [% IF item_level_itypes %]
89
                [% IF item_level_itypes %]
86
                        <li>
90
                    <div class="fg-row">
91
                        <div class="fg-label">
87
                            <label class="required" for="itype">Item type:</label>
92
                            <label class="required" for="itype">Item type:</label>
88
93
                        </div>
94
                        <div class="fg-input">
89
                            [% IF course_item.itype_enabled %]
95
                            [% IF course_item.itype_enabled %]
90
                                <input type="checkbox" class="field-toggle" data-pulldown="itype" value="1" name="itype_enabled" id="itype_enabled" checked="checked" />
96
                                <input type="checkbox" class="field-toggle" data-pulldown="itype" value="1" name="itype_enabled" id="itype_enabled" checked="checked" />
91
                            [% ELSE %]
97
                            [% ELSE %]
Lines 102-113 Link Here
102
                                    [% END %]
108
                                    [% END %]
103
                                [% END %]
109
                                [% END %]
104
                            </select>
110
                            </select>
105
                        </li>
111
                        </div>
106
                    [% END %]
112
                    </div>
113
                [% END %]
107
114
108
                    <li>
115
                <div class="fg-row">
116
                    <div class="fg-label">
109
                        <label class="required" for="ccode">Collection:</label>
117
                        <label class="required" for="ccode">Collection:</label>
110
118
                    </div>
119
                    <div class="fg-input">
111
                        [% IF course_item.ccode_enabled %]
120
                        [% IF course_item.ccode_enabled %]
112
                            <input type="checkbox" class="field-toggle" data-pulldown="ccode" value="1" name="ccode_enabled" id="ccode_enabled" checked="checked" />
121
                            <input type="checkbox" class="field-toggle" data-pulldown="ccode" value="1" name="ccode_enabled" id="ccode_enabled" checked="checked" />
113
                        [% ELSE %]
122
                        [% ELSE %]
Lines 124-134 Link Here
124
                                [% END %]
133
                                [% END %]
125
                            [% END %]
134
                            [% END %]
126
                        </select>
135
                        </select>
127
                    </li>
136
                    </div>
137
                </div>
128
138
129
                    <li>
139
                <div class="fg-row">
140
                    <div class="fg-label">
130
                        <label class="required" for="location">Shelving location:</label>
141
                        <label class="required" for="location">Shelving location:</label>
142
                    </div>
131
143
144
                    <div class="fg-input">
132
                        [% IF course_item.location_enabled %]
145
                        [% IF course_item.location_enabled %]
133
                            <input type="checkbox" class="field-toggle" data-pulldown="location" value="1" name="location_enabled" id="location_enabled" checked="checked" />
146
                            <input type="checkbox" class="field-toggle" data-pulldown="location" value="1" name="location_enabled" id="location_enabled" checked="checked" />
134
                        [% ELSE %]
147
                        [% ELSE %]
Lines 145-155 Link Here
145
                                [% END %]
158
                                [% END %]
146
                            [% END %]
159
                            [% END %]
147
                        </select>
160
                        </select>
148
                    </li>
161
                    </div>
162
                </div>
149
163
150
                    <li>
164
                <div class="fg-row">
165
                    <div class="fg-label">
151
                        <label class="required" for="homebranch">Home library:</label>
166
                        <label class="required" for="homebranch">Home library:</label>
167
                    </div>
152
168
169
                    <div class="fg-input">
153
                        [% IF course_item.homebranch_enabled %]
170
                        [% IF course_item.homebranch_enabled %]
154
                            <input type="checkbox" value="1" class="field-toggle" data-pulldown="homebranch" name="homebranch_enabled" id="homebranch_enabled" checked />
171
                            <input type="checkbox" value="1" class="field-toggle" data-pulldown="homebranch" name="homebranch_enabled" id="homebranch_enabled" checked />
155
                        [% ELSE %]
172
                        [% ELSE %]
Lines 166-176 Link Here
166
                                [% END %]
183
                                [% END %]
167
                            [% END %]
184
                            [% END %]
168
                        </select>
185
                        </select>
169
                    </li>
186
                    </div>
187
                </div>
170
188
171
                    <li>
189
                <div class="fg-row">
190
                    <div class="fg-label">
172
                        <label class="required" for="holdingbranch">Holding library:</label>
191
                        <label class="required" for="holdingbranch">Holding library:</label>
192
                    </div>
173
193
194
                    <div class="fg-input">
174
                        [% IF course_item.holdingbranch_enabled %]
195
                        [% IF course_item.holdingbranch_enabled %]
175
                            <input type="checkbox" value="1" class="field-toggle" data-pulldown="holdingbranch" name="holdingbranch_enabled" id="holdingbranch_enabled" checked="checked" />
196
                            <input type="checkbox" value="1" class="field-toggle" data-pulldown="holdingbranch" name="holdingbranch_enabled" id="holdingbranch_enabled" checked="checked" />
176
                        [% ELSE %]
197
                        [% ELSE %]
Lines 187-204 Link Here
187
                                [% END %]
208
                                [% END %]
188
                            [% END %]
209
                            [% END %]
189
                        </select>
210
                        </select>
190
                    </li>
211
                    </div>
212
                </div>
191
213
192
                    <li>
214
                <div class="fg-row">
215
                    <div class="fg-label">
193
                        <label for="staff_note">Staff note:</label>
216
                        <label for="staff_note">Staff note:</label>
217
                    </div>
218
                    <div class="fg-input">
194
                        <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note | html %]</textarea>
219
                        <textarea name="staff_note" id="staff_note">[% course_reserve.staff_note | html %]</textarea>
195
                    </li>
220
                    </div>
221
                </div>
196
222
197
                    <li>
223
                <div class="fg-row">
224
                    <div class="fg-label">
198
                        <label for="public_note">Public note:</label>
225
                        <label for="public_note">Public note:</label>
226
                    </div>
227
                    <div class="fg-input">
199
                        <textarea name="public_note" id="public_note">[% course_reserve.public_note | html %]</textarea>
228
                        <textarea name="public_note" id="public_note">[% course_reserve.public_note | html %]</textarea>
200
                    </li>
229
                    </div>
201
                </ol>
230
                </div>
202
            </fieldset>
231
            </fieldset>
203
            <p>
232
            <p>
204
                Checking the box next to the field label will enable changes to that field. Leave boxes unchecked to make no change.<br />
233
                Checking the box next to the field label will enable changes to that field. Leave boxes unchecked to make no change.<br />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_add_items.tt (-31 / +72 lines)
Lines 51-66 Link Here
51
            <input type="hidden" name="course_id" value="[% course.course_id | html %]" />
51
            <input type="hidden" name="course_id" value="[% course.course_id | html %]" />
52
            <input type="hidden" name="op" value="cud-add" />
52
            <input type="hidden" name="op" value="cud-add" />
53
53
54
            <fieldset class="rows">
54
            <fieldset class="fg">
55
                <legend>Add items: scan barcodes</legend>
55
                <legend>Add items: scan barcodes</legend>
56
                <ol>
56
57
                    <li>
57
                <div class="fg-row">
58
                    <div class="fg-label">
58
                        <label class="required" for="barcodes">Item barcodes:</label>
59
                        <label class="required" for="barcodes">Item barcodes:</label>
60
                    </div>
61
                    <div class="fg-input">
59
                        <textarea rows="20" cols="50" id="barcodes" name="barcodes" class="focus"></textarea>
62
                        <textarea rows="20" cols="50" id="barcodes" name="barcodes" class="focus"></textarea>
60
                    </li>
63
                    </div>
61
                    [% IF item_level_itypes %]
64
                </div>
62
                        <li>
65
                [% IF item_level_itypes %]
66
                    <div class="fg-row">
67
                        <div class="fg-label">
63
                            <label class="required" for="itype">Item type:</label>
68
                            <label class="required" for="itype">Item type:</label>
69
                        </div>
70
                        <div class="fg-input">
64
                            <input type="checkbox" class="field-toggle" data-pulldown="itype" value="1" name="itype_enabled" id="itype_enabled" />
71
                            <input type="checkbox" class="field-toggle" data-pulldown="itype" value="1" name="itype_enabled" id="itype_enabled" />
65
                            <select id="itype" name="itype" disabled="disabled">
72
                            <select id="itype" name="itype" disabled="disabled">
66
                                <option value=""></option>
73
                                <option value=""></option>
Lines 68-79 Link Here
68
                                [% FOREACH it IN ItemTypes.Get() %]
75
                                [% FOREACH it IN ItemTypes.Get() %]
69
                                    <option value="[% it.itemtype | html %]">[% it.description | html %]</option>
76
                                    <option value="[% it.itemtype | html %]">[% it.description | html %]</option>
70
                                [% END %]
77
                                [% END %]
71
                            </select>
78
                            </select></div
72
                        </li>
79
                        >
73
                    [% END %]
80
                    </div>
81
                [% END %]
74
82
75
                    <li>
83
                <div class="fg-row">
84
                    <div class="fg-label">
76
                        <label class="required" for="ccode">Collection:</label>
85
                        <label class="required" for="ccode">Collection:</label>
86
                    </div>
87
                    <div class="fg-input">
77
                        <input type="checkbox" class="field-toggle" data-pulldown="ccode" value="1" name="ccode_enabled" id="ccode_enabled" />
88
                        <input type="checkbox" class="field-toggle" data-pulldown="ccode" value="1" name="ccode_enabled" id="ccode_enabled" />
78
                        <select id="ccode" name="ccode" disabled="disabled">
89
                        <select id="ccode" name="ccode" disabled="disabled">
79
                            <option value=""></option>
90
                            <option value=""></option>
Lines 81-90 Link Here
81
                                <option value="[% c.authorised_value | html %]">[% c.lib | html %]</option>
92
                                <option value="[% c.authorised_value | html %]">[% c.lib | html %]</option>
82
                            [% END %]
93
                            [% END %]
83
                        </select>
94
                        </select>
84
                    </li>
95
                    </div>
96
                </div>
85
97
86
                    <li>
98
                <div class="fg-row">
99
                    <div class="fg-label">
87
                        <label class="required" for="location">Shelving location:</label>
100
                        <label class="required" for="location">Shelving location:</label>
101
                    </div>
102
                    <div class="fg-input">
88
                        <input type="checkbox" class="field-toggle" data-pulldown="location" value="1" name="location_enabled" id="location_enabled" />
103
                        <input type="checkbox" class="field-toggle" data-pulldown="location" value="1" name="location_enabled" id="location_enabled" />
89
                        <select id="location" name="location" disabled="disabled">
104
                        <select id="location" name="location" disabled="disabled">
90
                            <option value=""></option>
105
                            <option value=""></option>
Lines 92-101 Link Here
92
                                <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option>
107
                                <option value="[% s.authorised_value | html %]">[% s.lib | html %]</option>
93
                            [% END %]
108
                            [% END %]
94
                        </select>
109
                        </select>
95
                    </li>
110
                    </div>
111
                </div>
96
112
97
                    <li>
113
                <div class="fg-row">
114
                    <div class="fg-label">
98
                        <label class="required" for="homebranch">Home library:</label>
115
                        <label class="required" for="homebranch">Home library:</label>
116
                    </div>
117
                    <div class="fg-input">
99
                        <input type="checkbox" value="1" class="field-toggle" data-pulldown="homebranch" name="homebranch_enabled" id="homebranch_enabled" />
118
                        <input type="checkbox" value="1" class="field-toggle" data-pulldown="homebranch" name="homebranch_enabled" id="homebranch_enabled" />
100
                        <select id="homebranch" name="homebranch" disabled="disabled">
119
                        <select id="homebranch" name="homebranch" disabled="disabled">
101
                            <option value=""></option>
120
                            <option value=""></option>
Lines 103-112 Link Here
103
                                <option value="[% b.branchcode | html %]">[% b.branchname | html %]</option>
122
                                <option value="[% b.branchcode | html %]">[% b.branchname | html %]</option>
104
                            [% END %]
123
                            [% END %]
105
                        </select>
124
                        </select>
106
                    </li>
125
                    </div>
126
                </div>
107
127
108
                    <li>
128
                <div class="fg-row">
129
                    <div class="fg-label">
109
                        <label class="required" for="holdingbranch">Holding library:</label>
130
                        <label class="required" for="holdingbranch">Holding library:</label>
131
                    </div>
132
                    <div class="fg-input">
110
                        <input type="checkbox" value="1" class="field-toggle" data-pulldown="holdingbranch" name="holdingbranch_enabled" id="holdingbranch_enabled" />
133
                        <input type="checkbox" value="1" class="field-toggle" data-pulldown="holdingbranch" name="holdingbranch_enabled" id="holdingbranch_enabled" />
111
                        <select id="holdingbranch" name="holdingbranch" disabled="disabled">
134
                        <select id="holdingbranch" name="holdingbranch" disabled="disabled">
112
                            <option value=""></option>
135
                            <option value=""></option>
Lines 114-131 Link Here
114
                                <option value="[% b.branchcode | html %]">[% b.branchname | html %]</option>
137
                                <option value="[% b.branchcode | html %]">[% b.branchname | html %]</option>
115
                            [% END %]
138
                            [% END %]
116
                        </select>
139
                        </select>
117
                    </li>
140
                    </div>
141
                </div>
118
142
119
                    <li>
143
                <div class="fg-row">
144
                    <div class="fg-label">
120
                        <label for="item_staff_note">Staff note:</label>
145
                        <label for="item_staff_note">Staff note:</label>
146
                    </div>
147
                    <div class="fg-input">
121
                        <textarea name="item_staff_note" id="item_staff_note">[% course_reserve.staff_note | html %]</textarea>
148
                        <textarea name="item_staff_note" id="item_staff_note">[% course_reserve.staff_note | html %]</textarea>
122
                    </li>
149
                    </div>
150
                </div>
123
151
124
                    <li>
152
                <div class="fg-row">
153
                    <div class="fg-label">
125
                        <label for="item_public_note">Public note:</label>
154
                        <label for="item_public_note">Public note:</label>
155
                    </div>
156
                    <div class="fg-input">
126
                        <textarea name="item_public_note" id="item_public_note">[% course_reserve.public_note | html %]</textarea>
157
                        <textarea name="item_public_note" id="item_public_note">[% course_reserve.public_note | html %]</textarea>
127
                    </li>
158
                    </div>
128
                </ol>
159
                </div>
129
            </fieldset>
160
            </fieldset>
130
161
131
            <p>
162
            <p>
Lines 133-156 Link Here
133
                Any items with existing course reserves will have their <em>on reserve</em> values updated.
164
                Any items with existing course reserves will have their <em>on reserve</em> values updated.
134
            </p>
165
            </p>
135
166
136
            <fieldset class="rows">
167
            <fieldset class="fg">
137
                <legend>Or use biblionumbers of bibliographic records</legend>
168
                <legend>Or use biblionumbers of bibliographic records</legend>
138
                <ol>
169
                <div class="fg-row">
139
                    <li>
170
                    <div class="fg-label">
140
                        <label class="required" for="biblionumbers">Biblionumbers:</label>
171
                        <label class="required" for="biblionumbers">Biblionumbers:</label>
172
                    </div>
173
                    <div class="fg-input">
141
                        <textarea rows="20" cols="50" id="biblionumbers" name="biblionumbers"></textarea>
174
                        <textarea rows="20" cols="50" id="biblionumbers" name="biblionumbers"></textarea>
142
                    </li>
175
                    </div>
176
                </div>
143
177
144
                    <li>
178
                <div class="fg-row">
179
                    <div class="fg-label">
145
                        <label for="biblio_staff_note">Staff note:</label>
180
                        <label for="biblio_staff_note">Staff note:</label>
181
                    </div>
182
                    <div class="fg-input">
146
                        <textarea name="biblio_staff_note" id="biblio_staff_note">[% course_reserve.staff_note | html %]</textarea>
183
                        <textarea name="biblio_staff_note" id="biblio_staff_note">[% course_reserve.staff_note | html %]</textarea>
147
                    </li>
184
                    </div>
185
                </div>
148
186
149
                    <li>
187
                <div class="fg-row">
188
                    <div class="fg-label">
150
                        <label for="biblio_public_note">Public note:</label>
189
                        <label for="biblio_public_note">Public note:</label>
190
                    </div>
191
                    <div class="fg-input">
151
                        <textarea name="biblio_public_note" id="biblio_public_note">[% course_reserve.public_note | html %]</textarea>
192
                        <textarea name="biblio_public_note" id="biblio_public_note">[% course_reserve.public_note | html %]</textarea>
152
                    </li>
193
                    </div>
153
                </ol>
194
                </div>
154
            </fieldset>
195
            </fieldset>
155
196
156
            <fieldset class="action">
197
            <fieldset class="action">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/batch_rm_items.tt (-5 / +8 lines)
Lines 35-48 Link Here
35
        <form method="post" action="/cgi-bin/koha/course_reserves/batch_rm_items.pl">
35
        <form method="post" action="/cgi-bin/koha/course_reserves/batch_rm_items.pl">
36
            [% INCLUDE 'csrf-token.inc' %]
36
            [% INCLUDE 'csrf-token.inc' %]
37
            <input type="hidden" name="op" value="cud-batch_rm" />
37
            <input type="hidden" name="op" value="cud-batch_rm" />
38
            <fieldset class="rows">
38
            <fieldset class="fg">
39
                <legend>Remove items by barcode</legend>
39
                <legend>Remove items by barcode</legend>
40
                <ol>
40
41
                    <li>
41
                <div class="fg-row">
42
                    <div class="fg-label">
42
                        <label class="required" for="barcodes">Item barcodes:</label>
43
                        <label class="required" for="barcodes">Item barcodes:</label>
44
                    </div>
45
                    <div class="fg-input">
43
                        <textarea rows="20" cols="50" id="barcodes" name="barcodes" class="focus"></textarea>
46
                        <textarea rows="20" cols="50" id="barcodes" name="barcodes" class="focus"></textarea>
44
                    </li>
47
                    </div>
45
                </ol>
48
                </div>
46
            </fieldset>
49
            </fieldset>
47
            <fieldset class="action">
50
            <fieldset class="action">
48
                <p>All course reserve items will be deleted from all courses to which they are attached.</p>
51
                <p>All course reserve items will be deleted from all courses to which they are attached.</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt (-33 / +74 lines)
Lines 67-73 Link Here
67
            [% ELSE %]
67
            [% ELSE %]
68
                <input type="hidden" name="op" value="cud-add" />
68
                <input type="hidden" name="op" value="cud-add" />
69
            [% END %]
69
            [% END %]
70
            <fieldset class="rows">
70
            <fieldset class="fg">
71
                <legend class="visually-hidden">
71
                <legend class="visually-hidden">
72
                    [% IF course_name %]
72
                    [% IF course_name %]
73
                        [% tx("Edit {course_name}", { course_name = course_em }) | $raw %]
73
                        [% tx("Edit {course_name}", { course_name = course_em }) | $raw %]
Lines 75-83 Link Here
75
                        <span>New course</span>
75
                        <span>New course</span>
76
                    [% END %]
76
                    [% END %]
77
                </legend>
77
                </legend>
78
                <ol>
78
                <div class="fg-row">
79
                    <li>
79
                    <div class="fg-label">
80
                        <label class="required" for="department">Department:</label>
80
                        <label class="required" for="department">Department:</label>
81
                    </div>
82
                    <div class="fg-input">
81
                        <select id="department" name="department" required="required" class="required">
83
                        <select id="department" name="department" required="required" class="required">
82
                            <option value="">Select a department</option>
84
                            <option value="">Select a department</option>
83
85
Lines 89-117 Link Here
89
                                [% END %]
91
                                [% END %]
90
                            [% END %]
92
                            [% END %]
91
                        </select>
93
                        </select>
92
                        <span class="required">Required</span>
94
                    </div>
93
                    </li>
95
                    <div class="required">Required</div>
96
                </div>
94
97
95
                    <li>
98
                <div class="fg-row">
99
                    <div class="fg-label">
96
                        <label class="required" for="course_number">Course number:</label>
100
                        <label class="required" for="course_number">Course number:</label>
101
                    </div>
102
                    <div class="fg-input">
97
                        <input id="course_number" name="course_number" type="text" value="[% course_number | html %]" required="required" class="required" />
103
                        <input id="course_number" name="course_number" type="text" value="[% course_number | html %]" required="required" class="required" />
98
                        <span class="required">Required</span>
104
                    </div>
99
                    </li>
105
                    <div class="required">Required</div>
106
                </div>
100
107
101
                    <li>
108
                <div class="fg-row">
109
                    <div class="fg-label">
102
                        <label for="section">Section:</label>
110
                        <label for="section">Section:</label>
111
                    </div>
112
                    <div class="fg-input">
103
                        <input id="section" name="section" type="text" value="[% section | html %]" />
113
                        <input id="section" name="section" type="text" value="[% section | html %]" />
104
                    </li>
114
                    </div>
115
                </div>
105
116
106
                    <li>
117
                <div class="fg-row">
118
                    <div class="fg-label">
107
                        <label class="required" for="course_name">Course name:</label>
119
                        <label class="required" for="course_name">Course name:</label>
120
                    </div>
121
                    <div class="fg-input">
108
                        <input id="course_name" name="course_name" type="text" value="[% course_name | html %]" required="required" class="required" />
122
                        <input id="course_name" name="course_name" type="text" value="[% course_name | html %]" required="required" class="required" />
109
                        <span class="required">Required</span>
123
                    </div>
110
                    </li>
124
                    <div class="required">Required</div>
125
                </div>
111
126
112
                    <li>
127
                <div class="fg-row">
113
                        [% IF terms %]
128
                    [% IF terms %]
129
                        <div class="fg-label">
114
                            <label for="term">[% tp('Semester', 'Term:') | html %]</label>
130
                            <label for="term">[% tp('Semester', 'Term:') | html %]</label>
131
                        </div>
132
                        <div class="fg-input">
115
                            <select id="term" name="term">
133
                            <select id="term" name="term">
116
                                <option value=""></option>
134
                                <option value=""></option>
117
135
Lines 123-137 Link Here
123
                                    [% END %]
141
                                    [% END %]
124
                                [% END %]
142
                                [% END %]
125
                            </select>
143
                            </select>
126
                        [% ELSE %]
144
                        </div>
145
                    [% ELSE %]
146
                        <div class="fg-label">
127
                            <span class="label">[% tp('Semester', 'Term:') | html %] </span>
147
                            <span class="label">[% tp('Semester', 'Term:') | html %] </span>
148
                        </div>
149
                        <div class="fg-input">
128
                            <span id="term">No TERM authorised values found! Please create one or more authorised values with the category TERM.</span>
150
                            <span id="term">No TERM authorised values found! Please create one or more authorised values with the category TERM.</span>
129
                        [% END %]
151
                        </div>
130
                    </li>
152
                    [% END %]
153
                </div>
131
154
132
                    <li>
155
                <div class="fg-row">
156
                    <div class="fg-label">
133
                        <span class="label">Instructors:</span>
157
                        <span class="label">Instructors:</span>
134
158
                    </div>
159
                    <div class="fg-input">
135
                        <div id="course_instructors">
160
                        <div id="course_instructors">
136
                            <div id="instructors">
161
                            <div id="instructors">
137
                                [% FOREACH i IN instructors %]
162
                                [% FOREACH i IN instructors %]
Lines 146-176 Link Here
146
                                <input autocomplete="off" id="find_instructor" type="text" style="width:150px" class="noEnterSubmit" />
171
                                <input autocomplete="off" id="find_instructor" type="text" style="width:150px" class="noEnterSubmit" />
147
                            </div>
172
                            </div>
148
                            <div id="find_instructor_container"></div>
173
                            <div id="find_instructor_container"></div>
149
                        </div> </li
174
                        </div>
150
                    ><li>
175
                    </div>
176
                </div>
177
                <div class="fg-row">
178
                    <div class="fg-label">
151
                        <label for="staff_note">Staff note:</label>
179
                        <label for="staff_note">Staff note:</label>
180
                    </div>
181
                    <div class="fg-input">
152
                        <textarea name="staff_note" id="staff_note">[% staff_note | html %]</textarea>
182
                        <textarea name="staff_note" id="staff_note">[% staff_note | html %]</textarea>
153
                    </li>
183
                    </div>
184
                </div>
154
185
155
                    <li>
186
                <div class="fg-row">
187
                    <div class="fg-label">
156
                        <label for="public_note">Public note:</label>
188
                        <label for="public_note">Public note:</label>
189
                    </div>
190
                    <div class="fg-input">
157
                        <textarea name="public_note" id="public_note">[% public_note | html %]</textarea>
191
                        <textarea name="public_note" id="public_note">[% public_note | html %]</textarea>
158
                    </li>
192
                    </div>
193
                </div>
159
194
160
                    <li>
195
                <div class="fg-row input-sm">
196
                    <div class="fg-label">
161
                        <label for="students_count">Number of students:</label>
197
                        <label for="students_count">Number of students:</label>
162
                        <input id="students_count" name="students_count" type="text" value="[% students_count | html %]" />
198
                    </div>
163
                    </li>
199
                    <div class="fg-input">
200
                        <input id="students_count" name="students_count" type="text" value="[% students_count | html %]" maxlength="20" />
201
                    </div>
202
                </div>
164
203
165
                    <li>
204
                <div class="fg-row input-checkbox">
166
                        <label for="enabled">Enabled?</label>
205
                    <div class="fg-label">
206
                        <label for="enabled">Enabled</label>
207
                    </div>
208
                    <div class="fg-input">
167
                        [% IF enabled == 'no' %]
209
                        [% IF enabled == 'no' %]
168
                            <input type="checkbox" name="enabled" id="enabled" />
210
                            <input type="checkbox" name="enabled" id="enabled" />
169
                        [% ELSE %]
211
                        [% ELSE %]
170
                            <input type="checkbox" name="enabled" id="enabled" checked="checked" />
212
                            <input type="checkbox" name="enabled" id="enabled" checked="checked" />
171
                        [% END %]
213
                        [% END %]
172
                    </li>
214
                    </div>
173
                </ol>
215
                </div>
174
            </fieldset>
216
            </fieldset>
175
217
176
            <fieldset class="action">
218
            <fieldset class="action">
177
- 

Return to bug 42099