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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/library_groups.tt (-73 / +88 lines)
Lines 117-123 Link Here
117
                <div class="yui-g">
117
                <div class="yui-g">
118
                    <div id="toolbar" class="btn-toolbar">
118
                    <div id="toolbar" class="btn-toolbar">
119
                        <div class="btn-group">
119
                        <div class="btn-group">
120
                            <a id="add-group-root" class="btn btn-small add-group" href="#">
120
                            <a id="add-group-root" class="btn btn-default btn-sm add-group" href="#">
121
                                <i class="fa fa-plus"></i> Add group
121
                                <i class="fa fa-plus"></i> Add group
122
                            </a>
122
                            </a>
123
                        </div>
123
                        </div>
Lines 141-230 Link Here
141
        [% INCLUDE 'admin-menu.inc' %]
141
        [% INCLUDE 'admin-menu.inc' %]
142
    </div>
142
    </div>
143
143
144
    <div id="add-group-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="add-group-modal-label" aria-hidden="true">
144
    <div id="add-group-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="add-group-modal-label" aria-hidden="true">
145
        <form id="add-group-form" action="/cgi-bin/koha/admin/library_groups.pl" class="form-horizontal">
145
        <form id="add-group-form" action="/cgi-bin/koha/admin/library_groups.pl" class="form-horizontal">
146
            <div class="modal-header">
146
            <div class="modal-dialog">
147
                <h3 id="add-group-modal-label">Add group</h3>
147
                <div class="modal-content">
148
            </div>
148
                    <div class="modal-header">
149
            <div class="modal-body">
149
                        <h3 id="add-group-modal-label">Add group</h3>
150
                <input type="hidden" id="add-group-modal-parent-id" name="parent_id" value="" />
150
                    </div>
151
                <input type="hidden" id="add-group-modal-action" name="action" value="add">
151
                    <div class="modal-body">
152
152
                        <input type="hidden" id="add-group-modal-parent-id" name="parent_id" value="" />
153
                <p>
153
                        <input type="hidden" id="add-group-modal-action" name="action" value="add">
154
                    <label for="title">Title: </label>
154
155
                    <input type="text" name="title" id="add-group-modal-title" required="required" />
155
                        <p>
156
                    <i>required</i>
156
                            <label for="title">Title: </label>
157
                </p>
157
                            <input type="text" name="title" id="add-group-modal-title" required="required" />
158
158
                            <i>required</i>
159
                <p>
159
                        </p>
160
                    <label for="description">Description: </label>
160
161
                    <input type="text" name="description" id="add-group-modal-description" />
161
                        <p>
162
                </p>
162
                            <label for="description">Description: </label>
163
            </div>
163
                            <input type="text" name="description" id="add-group-modal-description" />
164
            <div class="modal-footer">
164
                        </p>
165
                <button type="submit" class="btn btn-primary">Save</button>
165
                    </div>
166
                <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
166
                    <div class="modal-footer">
167
                        <button type="submit" class="btn btn-primary">Save</button>
168
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
169
                    </div>
170
                </div>
167
            </div>
171
            </div>
168
        </form>
172
        </form>
169
    </div>
173
    </div>
170
174
171
    <div id="edit-group-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="edit-library-modal-label" aria-hidden="true">
175
    <div id="edit-group-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="edit-library-modal-label" aria-hidden="true">
172
        <form id="edit-group-form" action="/cgi-bin/koha/admin/library_groups.pl" class="form-horizontal">
176
        <form id="edit-group-form" action="/cgi-bin/koha/admin/library_groups.pl" class="form-horizontal">
173
            <div class="modal-header">
177
            <div class="modal-dialog">
174
                <h3 id="edit-group-modal-label">Edit group</h3>
178
                <div class="modal-content">
175
            </div>
179
                    <div class="modal-header">
176
            <div class="modal-body">
180
                        <h3 id="edit-group-modal-label">Edit group</h3>
177
                <input type="hidden" id="edit-group-modal-id" name="id" value="" />
181
                    </div>
178
                <input type="hidden" id="edit-group-modal-action" name="action" value="edit" />
182
                    <div class="modal-body">
179
183
                        <input type="hidden" id="edit-group-modal-id" name="id" value="" />
180
                <p>
184
                        <input type="hidden" id="edit-group-modal-action" name="action" value="edit" />
181
                    <label for="title">Title: </label>
185
182
                    <input type="text" id="edit-group-modal-title" name="title" value="" required="required" />
186
                        <p>
183
                    <i>required</i>
187
                            <label for="title">Title: </label>
184
                </p>
188
                            <input type="text" id="edit-group-modal-title" name="title" value="" required="required" />
185
189
                            <i>required</i>
186
                <p>
190
                        </p>
187
                    <label for="description">Description: </label>
191
188
                    <input type="text" id="edit-group-modal-description" name="description" value="" />
192
                        <p>
189
                </p>
193
                            <label for="description">Description: </label>
190
            </div>
194
                            <input type="text" id="edit-group-modal-description" name="description" value="" />
191
            <div class="modal-footer">
195
                        </p>
192
                <button type="submit" class="btn btn-primary">Update</button>
196
                    </div>
193
                <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
197
                    <div class="modal-footer">
198
                        <button type="submit" class="btn btn-primary">Update</button>
199
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
200
                    </div>
201
                </div>
194
            </div>
202
            </div>
195
        </form>
203
        </form>
196
    </div>
204
    </div>
197
205
198
    <div id="delete-group-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="delete-group-modal-label" aria-hidden="true">
206
    <div id="delete-group-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="delete-group-modal-label" aria-hidden="true">
199
        <form action="/cgi-bin/koha/admin/library_groups.pl" />
207
        <form action="/cgi-bin/koha/admin/library_groups.pl" />
200
            <input id="delete-group-modal-action" type="hidden" name="action" value="delete" />
208
            <div class="modal-dialog">
201
            <input id="delete-group-modal-id" type="hidden" name="id" value="" />
209
                <div class="modal-content">
202
            <div class="modal-header">
210
                    <input id="delete-group-modal-action" type="hidden" name="action" value="delete" />
203
                <h3 id="delete-group-modal-label">Delete group</h3>
211
                    <input id="delete-group-modal-id" type="hidden" name="id" value="" />
204
            </div>
212
                    <div class="modal-header">
205
            <div class="modal-body">
213
                        <h3 id="delete-group-modal-label">Delete group</h3>
206
                Are you sure you want to delete <span id="delete-group-modal-title" class="name"></span>?
214
                    </div>
207
            </div>
215
                    <div class="modal-body">
208
            <div class="modal-footer">
216
                        Are you sure you want to delete <span id="delete-group-modal-title" class="name"></span>?
209
                <button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> Delete</button>
217
                    </div>
210
                <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
218
                    <div class="modal-footer">
219
                        <button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> Delete</button>
220
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
221
                    </div>
222
                </div>
211
            </div>
223
            </div>
212
        </form>
224
        </form>
213
    </div>
225
    </div>
214
226
215
    <div id="remove-library-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="remove-library-modal-label" aria-hidden="true">
227
    <div id="remove-library-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="remove-library-modal-label" aria-hidden="true">
216
        <form action="/cgi-bin/koha/admin/library_groups.pl" />
228
        <form action="/cgi-bin/koha/admin/library_groups.pl" />
217
            <input id="remove-library-modal-action" type="hidden" name="action" value="delete" />
229
            <div class="modal-dialog">
218
            <input id="remove-library-modal-id" type="hidden" name="id" value="" />
230
                <div class="modal-content">
219
            <div class="modal-header">
231
                    <input id="remove-library-modal-action" type="hidden" name="action" value="delete" />
220
                <h3 id="remove-library-modal-label">Remove library from group</h3>
232
                    <input id="remove-library-modal-id" type="hidden" name="id" value="" />
221
            </div>
233
                    <div class="modal-header">
222
            <div class="modal-body">
234
                        <h3 id="remove-library-modal-label">Remove library from group</h3>
223
                Are you sure you want to remove <span id="remove-library-modal-library" class="name"></span> from <span id="remove-library-modal-group" class="name"><span>?
235
                    </div>
224
            </div>
236
                    <div class="modal-body">
225
            <div class="modal-footer">
237
                        Are you sure you want to remove <span id="remove-library-modal-library" class="name"></span> from <span id="remove-library-modal-group" class="name"><span>?
226
                <button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> Remove</button>
238
                    </div>
227
                <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
239
                    <div class="modal-footer">
240
                        <button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> Remove</button>
241
                        <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
242
                    </div>
243
                </div>
228
            </div>
244
            </div>
229
        </form>
245
        </form>
230
    </div>
246
    </div>
Lines 250-259 Link Here
250
        </td>
266
        </td>
251
        <td>
267
        <td>
252
            [% IF group.branchcode %]
268
            [% IF group.branchcode %]
253
                <button class="btn btn-small remove-library" data-group-id="[% group.id %]" data-group-library="[% group.library.branchname %]" data-group-parent-title="[% group.parent.title %]" ><i class="fa fa-trash"></i> Remove from group</button>
269
                <button class="btn btn-sm remove-library" data-group-id="[% group.id %]" data-group-library="[% group.library.branchname %]" data-group-parent-title="[% group.parent.title %]" ><i class="fa fa-trash"></i> Remove from group</button>
254
            [% ELSE %]
270
            [% ELSE %]
255
                <div class="btn-group">
271
                <div class="btn-group">
256
                    <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i> Actions <span class="caret"></span></button>
272
                    <button class="btn btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i> Actions <span class="caret"></span></button>
257
                    <ul class="dropdown-menu">
273
                    <ul class="dropdown-menu">
258
                        <li>
274
                        <li>
259
                            <a id="add-group-[% group.id %]" href="#" class="add-group" data-group-id="[% group.id %]">
275
                            <a id="add-group-[% group.id %]" href="#" class="add-group" data-group-id="[% group.id %]">
Lines 276-282 Link Here
276
                </div>
292
                </div>
277
293
278
                <div class="btn-group">
294
                <div class="btn-group">
279
                    <button class="btn btn-small dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> Add library <span class="caret"></span></button>
295
                    <button class="btn btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> Add library <span class="caret"></span></button>
280
                    <ul class="dropdown-menu">
296
                    <ul class="dropdown-menu">
281
                        [% FOREACH library IN group.libraries_not_direct_children %]
297
                        [% FOREACH library IN group.libraries_not_direct_children %]
282
                            <li>
298
                            <li>
283
- 

Return to bug 15707