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

Return to bug 42099