Lines 1-113
Link Here
|
1 |
[% USE raw %] |
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
2 |
[% USE Asset %] |
3 |
[% USE KohaSpan %] |
3 |
[% USE KohaSpan %] |
|
|
4 |
[% SET footerjs = 1 %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
<title>Koha › Administration › Library groups</title> |
6 |
<title>Koha › Administration › Library groups</title> |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") | $raw %] |
8 |
[% Asset.css("lib/jquery/plugins/treetable/stylesheets/jquery.treetable.css") | $raw %] |
8 |
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] |
|
|
9 |
<script type="text/javascript"> |
10 |
//<![CDATA[ |
11 |
$(document).ready(function() { |
12 |
$('.library-groups').treetable( |
13 |
{ |
14 |
expandable: true, |
15 |
initialState: 'expanded', |
16 |
clickableNodeNames: true, |
17 |
} |
18 |
); |
19 |
|
20 |
$('.add-group').on('click', function() { |
21 |
var id = $(this).data('groupId'); |
22 |
add_group( id ); |
23 |
}); |
24 |
|
25 |
$('.edit-group').on('click', function() { |
26 |
var id = $(this).data('groupId'); |
27 |
var parent_id = $(this).data('groupParentId'); |
28 |
var title = $(this).data('groupTitle'); |
29 |
var description = $(this).data('groupDescription'); |
30 |
var ft_hide_patron_info = $(this).data('groupFt_hide_patron_info'); |
31 |
var ft_search_groups_opac = $(this).data('groupFt_search_groups_opac'); |
32 |
var ft_search_groups_staff = $(this).data('groupFt_search_groups_staff'); |
33 |
edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff ); |
34 |
}); |
35 |
|
36 |
$('.delete-group').on('click', function() { |
37 |
var id = $(this).data('groupId'); |
38 |
var title = $(this).data('groupTitle'); |
39 |
delete_group( id, title ); |
40 |
}); |
41 |
|
42 |
$('.remove-library').on('click', function() { |
43 |
var id = $(this).data('groupId'); |
44 |
var library = $(this).data('groupLibrary'); |
45 |
var parent_title = $(this).data('groupParentTitle'); |
46 |
remove_library( id, library, parent_title ); |
47 |
}); |
48 |
}); |
49 |
|
50 |
function add_group( parent_id ) { |
51 |
$('#add-group-modal-parent-id').val( parent_id ); |
52 |
|
53 |
$('#add-group-modal-description').val(""); |
54 |
$('#add-group-modal-title').val(""); |
55 |
|
56 |
$('#add-group-modal').on('shown', function() { |
57 |
$('#add-group-modal-title').focus(); |
58 |
}); |
59 |
|
60 |
$('#add-group-modal-ft_hide_patron_info').prop('checked', false); |
61 |
$('#add-group-modal-ft_search_groups_opac').prop('checked', false); |
62 |
$('#add-group-modal-ft_search_groups_staff').prop('checked', false); |
63 |
if ( parent_id ) { |
64 |
$('#root-group-features-add').hide(); |
65 |
} else { |
66 |
$('#root-group-features-add').show(); |
67 |
} |
68 |
$('#add-group-modal').modal('show'); |
69 |
} |
70 |
|
71 |
function edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff ) { |
72 |
$('#edit-group-modal-id').val( id ); |
73 |
$('#edit-group-modal-title').val( title ); |
74 |
$('#edit-group-modal-description').val( description ); |
75 |
|
76 |
if ( parent_id ) { |
77 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', false); |
78 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', false); |
79 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', false); |
80 |
$('#root-group-features-edit').hide(); |
81 |
} else { |
82 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', ft_hide_patron_info ? true : false ); |
83 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', ft_search_groups_opac ? true : false ); |
84 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', ft_search_groups_staff ? true : false ); |
85 |
$('#root-group-features-edit').show(); |
86 |
} |
87 |
|
88 |
$('#edit-group-modal').on('shown', function() { |
89 |
$('#edit-group-modal-title').focus(); |
90 |
}); |
91 |
|
92 |
$('#edit-group-modal').modal('show'); |
93 |
} |
94 |
|
95 |
function delete_group( id, title ) { |
96 |
$('#delete-group-modal-title').html(title); |
97 |
$('#delete-group-modal-id').val( id ); |
98 |
$('#delete-group-modal').modal('show'); |
99 |
} |
100 |
|
101 |
function remove_library( id, library, parent_title ) { |
102 |
$('#remove-library-modal-library').html( library ); |
103 |
$('#remove-library-modal-group').html(parent_title); |
104 |
$('#remove-library-modal-id').val( id ); |
105 |
$('#remove-library-modal').modal('show'); |
106 |
} |
107 |
|
108 |
//]]> |
109 |
</script> |
110 |
</head> |
9 |
</head> |
|
|
10 |
|
111 |
<body id="admin_library_groups" class="admin"> |
11 |
<body id="admin_library_groups" class="admin"> |
112 |
[% INCLUDE 'header.inc' %] |
12 |
[% INCLUDE 'header.inc' %] |
113 |
[% INCLUDE 'cat-search.inc' %] |
13 |
[% INCLUDE 'cat-search.inc' %] |
Lines 140-150
Link Here
|
140 |
</div> |
40 |
</div> |
141 |
[% END %] |
41 |
[% END %] |
142 |
|
42 |
|
143 |
<div id="doc3" class="yui-t2"> |
43 |
<div class="main container-fluid"> |
144 |
<div id="bd"> |
44 |
<div class="row"> |
145 |
<div id="yui-main"> |
45 |
<div class="col-sm-10 col-sm-push-2"> |
146 |
<div class="yui-b"> |
46 |
<main> |
147 |
<div class="yui-g"> |
47 |
|
148 |
<div id="toolbar" class="btn-toolbar"> |
48 |
<div id="toolbar" class="btn-toolbar"> |
149 |
<div class="btn-group"> |
49 |
<div class="btn-group"> |
150 |
<a id="add-group-root" class="btn btn-default btn-sm add-group" href="#"> |
50 |
<a id="add-group-root" class="btn btn-default btn-sm add-group" href="#"> |
Lines 152-158
Link Here
|
152 |
</a> |
52 |
</a> |
153 |
</div> |
53 |
</div> |
154 |
</div> |
54 |
</div> |
155 |
</div> |
55 |
|
|
|
56 |
<h2>Library groups</h2> |
156 |
|
57 |
|
157 |
[% FOREACH root_group IN root_groups %] |
58 |
[% FOREACH root_group IN root_groups %] |
158 |
<table class="library-groups"> |
59 |
<table class="library-groups"> |
Lines 165-178
Link Here
|
165 |
[% PROCESS tree group=root_group %] |
66 |
[% PROCESS tree group=root_group %] |
166 |
</table> |
67 |
</table> |
167 |
[% END %] |
68 |
[% END %] |
168 |
</div> |
|
|
169 |
</div> |
170 |
|
69 |
|
171 |
<div class="yui-b"> |
70 |
</main> |
172 |
[% INCLUDE 'admin-menu.inc' %] |
71 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
173 |
</div> |
72 |
|
|
|
73 |
<div class="col-sm-2 col-sm-pull-10"> |
74 |
<aside> |
75 |
[% INCLUDE 'admin-menu.inc' %] |
76 |
</aside> |
77 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
78 |
</div> <!-- /.row --> |
174 |
|
79 |
|
175 |
<div id="add-group-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="add-group-modal-label" aria-hidden="true"> |
80 |
<div id="add-group-modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="add-group-modal-label" aria-hidden="true"> |
176 |
<form id="add-group-form" action="/cgi-bin/koha/admin/library_groups.pl" class="form-horizontal"> |
81 |
<form id="add-group-form" action="/cgi-bin/koha/admin/library_groups.pl" class="form-horizontal"> |
177 |
<div class="modal-dialog"> |
82 |
<div class="modal-dialog"> |
178 |
<div class="modal-content"> |
83 |
<div class="modal-content"> |
Lines 186-192
Link Here
|
186 |
<p> |
91 |
<p> |
187 |
<label for="add-group-modal-title">Title: </label> |
92 |
<label for="add-group-modal-title">Title: </label> |
188 |
<input type="text" name="title" id="add-group-modal-title" required="required" /> |
93 |
<input type="text" name="title" id="add-group-modal-title" required="required" /> |
189 |
<i>required</i> |
94 |
<span class="required">Required</span> |
190 |
</p> |
95 |
</p> |
191 |
|
96 |
|
192 |
<p> |
97 |
<p> |
Lines 196-228
Link Here
|
196 |
<div id="root-group-features-add"> |
101 |
<div id="root-group-features-add"> |
197 |
<h3>Features</h3> |
102 |
<h3>Features</h3> |
198 |
<div class="checkbox"> |
103 |
<div class="checkbox"> |
199 |
<label> |
|
|
200 |
<input type="checkbox" name="ft_hide_patron_info" id="add-group-modal-ft_hide_patron_info" value="1" /> |
201 |
Limit patron data access by group |
202 |
</label> |
203 |
<p> |
104 |
<p> |
204 |
<label> |
105 |
<label> |
205 |
<input type="checkbox" name="ft_search_groups_opac" id="add-group-modal-ft_search_groups_opac" value="1" /> |
106 |
<input type="checkbox" name="ft_hide_patron_info" id="add-group-modal-ft_hide_patron_info" value="1" /> |
206 |
Use for OPAC search groups |
107 |
Limit patron data access by group |
207 |
</label> |
108 |
</label> |
|
|
109 |
</p> |
208 |
<p> |
110 |
<p> |
209 |
<label> |
111 |
<label> |
210 |
<input type="checkbox" name="ft_search_groups_staff" id="add-group-modal-ft_search_groups_staff" value="1" /> |
112 |
<input type="checkbox" name="ft_search_groups_opac" id="add-group-modal-ft_search_groups_opac" value="1" /> |
211 |
Use for staff search groups |
113 |
Use for OPAC search groups |
212 |
</label> |
114 |
</label> |
|
|
115 |
</p> |
116 |
<p> |
117 |
<label> |
118 |
<input type="checkbox" name="ft_search_groups_staff" id="add-group-modal-ft_search_groups_staff" value="1" /> |
119 |
Use for staff search groups |
120 |
</label> |
121 |
</p> |
213 |
</div> |
122 |
</div> |
214 |
</div> |
123 |
</div> |
215 |
</div> |
124 |
</div> |
216 |
<div class="modal-footer"> |
125 |
<div class="modal-footer"> |
217 |
<button type="submit" class="btn btn-primary">Save</button> |
126 |
<button type="submit" class="btn btn-default">Save</button> |
218 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button> |
127 |
<a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> |
219 |
</div> |
128 |
</div> |
220 |
</div> |
129 |
</div> |
221 |
</div> |
130 |
</div> |
222 |
</form> |
131 |
</form> |
223 |
</div> |
132 |
</div> |
224 |
|
133 |
|
225 |
<div id="edit-group-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="edit-library-modal-label" aria-hidden="true"> |
134 |
<div id="edit-group-modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="edit-group-modal-label" aria-hidden="true"> |
226 |
<form id="edit-group-form" action="/cgi-bin/koha/admin/library_groups.pl" class="form-horizontal"> |
135 |
<form id="edit-group-form" action="/cgi-bin/koha/admin/library_groups.pl" class="form-horizontal"> |
227 |
<div class="modal-dialog"> |
136 |
<div class="modal-dialog"> |
228 |
<div class="modal-content"> |
137 |
<div class="modal-content"> |
Lines 236-242
Link Here
|
236 |
<p> |
145 |
<p> |
237 |
<label for="edit-group-modal-title">Title: </label> |
146 |
<label for="edit-group-modal-title">Title: </label> |
238 |
<input type="text" id="edit-group-modal-title" name="title" value="" required="required" /> |
147 |
<input type="text" id="edit-group-modal-title" name="title" value="" required="required" /> |
239 |
<i>required</i> |
148 |
<span class="required">Required</span> |
240 |
</p> |
149 |
</p> |
241 |
|
150 |
|
242 |
<p> |
151 |
<p> |
Lines 246-279
Link Here
|
246 |
<div id="root-group-features-edit"> |
155 |
<div id="root-group-features-edit"> |
247 |
<h3>Features</h3> |
156 |
<h3>Features</h3> |
248 |
<div class="checkbox"> |
157 |
<div class="checkbox"> |
249 |
<label> |
|
|
250 |
<input type="checkbox" id="edit-group-modal-ft_hide_patron_info" name="ft_hide_patron_info" value="1" /> |
251 |
Limit patron data access by group |
252 |
</label> |
253 |
<p> |
158 |
<p> |
254 |
<label> |
159 |
<label> |
255 |
<input type="checkbox" id="edit-group-modal-ft_search_groups_opac" name="ft_search_groups_opac" value="1" /> |
160 |
<input type="checkbox" id="edit-group-modal-ft_hide_patron_info" name="ft_hide_patron_info" value="1" /> |
256 |
Use for OPAC search groups |
161 |
Limit patron data access by group |
257 |
</label> |
162 |
</label> |
|
|
163 |
</p> |
258 |
<p> |
164 |
<p> |
259 |
<label> |
165 |
<label> |
260 |
<input type="checkbox" id="edit-group-modal-ft_search_groups_staff" name="ft_search_groups_staff" value="1" /> |
166 |
<input type="checkbox" id="edit-group-modal-ft_search_groups_opac" name="ft_search_groups_opac" value="1" /> |
261 |
Use for staff search groups |
167 |
Use for OPAC search groups |
262 |
</label> |
168 |
</label> |
|
|
169 |
</p> |
170 |
<p> |
171 |
<label> |
172 |
<input type="checkbox" id="edit-group-modal-ft_search_groups_staff" name="ft_search_groups_staff" value="1" /> |
173 |
Use for staff search groups |
174 |
</label> |
175 |
</p> |
263 |
</div> |
176 |
</div> |
264 |
</div> |
177 |
</div> |
265 |
</div> |
178 |
</div> |
266 |
<div class="modal-footer"> |
179 |
<div class="modal-footer"> |
267 |
<button type="submit" class="btn btn-primary">Update</button> |
180 |
<button type="submit" class="btn btn-default">Update</button> |
268 |
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button> |
181 |
<a href="#" class="cancel" data-dismiss="modal" aria-hidden="true">Cancel</a> |
269 |
</div> |
182 |
</div> |
270 |
</div> |
183 |
</div> |
271 |
</div> |
184 |
</div> |
272 |
</form> |
185 |
</form> |
273 |
</div> |
186 |
</div> |
274 |
|
187 |
|
275 |
<div id="delete-group-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="delete-group-modal-label" aria-hidden="true"> |
188 |
<div id="delete-group-modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="delete-group-modal-label" aria-hidden="true"> |
276 |
<form action="/cgi-bin/koha/admin/library_groups.pl" /> |
189 |
<form action="/cgi-bin/koha/admin/library_groups.pl"> |
277 |
<div class="modal-dialog"> |
190 |
<div class="modal-dialog"> |
278 |
<div class="modal-content"> |
191 |
<div class="modal-content"> |
279 |
<input id="delete-group-modal-action" type="hidden" name="action" value="delete" /> |
192 |
<input id="delete-group-modal-action" type="hidden" name="action" value="delete" /> |
Lines 293-300
Link Here
|
293 |
</form> |
206 |
</form> |
294 |
</div> |
207 |
</div> |
295 |
|
208 |
|
296 |
<div id="remove-library-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="remove-library-modal-label" aria-hidden="true"> |
209 |
<div id="remove-library-modal" class="modal" tabindex="-1" role="dialog" aria-labelledby="remove-library-modal-label" aria-hidden="true"> |
297 |
<form action="/cgi-bin/koha/admin/library_groups.pl" /> |
210 |
<form action="/cgi-bin/koha/admin/library_groups.pl"> |
298 |
<div class="modal-dialog"> |
211 |
<div class="modal-dialog"> |
299 |
<div class="modal-content"> |
212 |
<div class="modal-content"> |
300 |
<input id="remove-library-modal-action" type="hidden" name="action" value="delete" /> |
213 |
<input id="remove-library-modal-action" type="hidden" name="action" value="delete" /> |
Lines 303-309
Link Here
|
303 |
<h3 id="remove-library-modal-label">Remove library from group</h3> |
216 |
<h3 id="remove-library-modal-label">Remove library from group</h3> |
304 |
</div> |
217 |
</div> |
305 |
<div class="modal-body"> |
218 |
<div class="modal-body"> |
306 |
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>? |
219 |
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>? |
307 |
</div> |
220 |
</div> |
308 |
<div class="modal-footer"> |
221 |
<div class="modal-footer"> |
309 |
<button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> Remove</button> |
222 |
<button type="submit" class="btn btn-danger"><i class="fa fa-trash"></i> Remove</button> |
Lines 314-320
Link Here
|
314 |
</form> |
227 |
</form> |
315 |
</div> |
228 |
</div> |
316 |
|
229 |
|
317 |
</div> |
230 |
[% MACRO jsinclude BLOCK %] |
|
|
231 |
[% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] |
232 |
<script> |
233 |
$(document).ready(function() { |
234 |
$('.library-groups').treetable({ |
235 |
expandable: true, |
236 |
initialState: 'expanded', |
237 |
clickableNodeNames: true, |
238 |
}); |
239 |
|
240 |
$('.add-group').on('click', function() { |
241 |
var id = $(this).data('groupId'); |
242 |
add_group( id ); |
243 |
}); |
244 |
|
245 |
$('.edit-group').on('click', function() { |
246 |
var id = $(this).data('groupId'); |
247 |
var parent_id = $(this).data('groupParentId'); |
248 |
var title = $(this).data('groupTitle'); |
249 |
var description = $(this).data('groupDescription'); |
250 |
var ft_hide_patron_info = $(this).data('groupFt_hide_patron_info'); |
251 |
var ft_search_groups_opac = $(this).data('groupFt_search_groups_opac'); |
252 |
var ft_search_groups_staff = $(this).data('groupFt_search_groups_staff'); |
253 |
edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff ); |
254 |
}); |
255 |
|
256 |
$('.delete-group').on('click', function() { |
257 |
var id = $(this).data('groupId'); |
258 |
var title = $(this).data('groupTitle'); |
259 |
delete_group( id, title ); |
260 |
}); |
261 |
|
262 |
$('.remove-library').on('click', function() { |
263 |
var id = $(this).data('groupId'); |
264 |
var library = $(this).data('groupLibrary'); |
265 |
var parent_title = $(this).data('groupParentTitle'); |
266 |
remove_library( id, library, parent_title ); |
267 |
}); |
268 |
}); |
269 |
|
270 |
function add_group( parent_id ) { |
271 |
$('#add-group-modal-parent-id').val( parent_id ); |
272 |
|
273 |
$('#add-group-modal-description').val(""); |
274 |
$('#add-group-modal-title').val(""); |
275 |
|
276 |
$('#add-group-modal').on('shown', function() { |
277 |
$('#add-group-modal-title').focus(); |
278 |
}); |
279 |
|
280 |
$('#add-group-modal-ft_hide_patron_info').prop('checked', false); |
281 |
$('#add-group-modal-ft_search_groups_opac').prop('checked', false); |
282 |
$('#add-group-modal-ft_search_groups_staff').prop('checked', false); |
283 |
if ( parent_id ) { |
284 |
$('#root-group-features-add').hide(); |
285 |
} else { |
286 |
$('#root-group-features-add').show(); |
287 |
} |
288 |
$('#add-group-modal').modal('show'); |
289 |
} |
290 |
|
291 |
function edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff ) { |
292 |
$('#edit-group-modal-id').val( id ); |
293 |
$('#edit-group-modal-title').val( title ); |
294 |
$('#edit-group-modal-description').val( description ); |
295 |
|
296 |
if ( parent_id ) { |
297 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', false); |
298 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', false); |
299 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', false); |
300 |
$('#root-group-features-edit').hide(); |
301 |
} else { |
302 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', ft_hide_patron_info ? true : false ); |
303 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', ft_search_groups_opac ? true : false ); |
304 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', ft_search_groups_staff ? true : false ); |
305 |
$('#root-group-features-edit').show(); |
306 |
} |
307 |
|
308 |
$('#edit-group-modal').on('shown', function() { |
309 |
$('#edit-group-modal-title').focus(); |
310 |
}); |
311 |
|
312 |
$('#edit-group-modal').modal('show'); |
313 |
} |
314 |
|
315 |
function delete_group( id, title ) { |
316 |
$('#delete-group-modal-title').html(title); |
317 |
$('#delete-group-modal-id').val( id ); |
318 |
$('#delete-group-modal').modal('show'); |
319 |
} |
320 |
|
321 |
function remove_library( id, library, parent_title ) { |
322 |
$('#remove-library-modal-library').html( library ); |
323 |
$('#remove-library-modal-group').html(parent_title); |
324 |
$('#remove-library-modal-id').val( id ); |
325 |
$('#remove-library-modal').modal('show'); |
326 |
} |
327 |
|
328 |
</script> |
329 |
[% END %] |
330 |
|
318 |
[% INCLUDE 'intranet-bottom.inc' %] |
331 |
[% INCLUDE 'intranet-bottom.inc' %] |
319 |
|
332 |
|
320 |
[% BLOCK tree %] |
333 |
[% BLOCK tree %] |
Lines 350-359
Link Here
|
350 |
</td> |
363 |
</td> |
351 |
<td> |
364 |
<td> |
352 |
[% IF group.branchcode %] |
365 |
[% IF group.branchcode %] |
353 |
<button class="btn btn-default btn-sm remove-library" data-group-id="[% group.id | html %]" data-group-library="[% group.library.branchname | html %]" data-group-parent-title="[% group.parent.title | html %]" ><i class="fa fa-trash"></i> Remove from group</button> |
366 |
<button class="btn btn-default btn-xs remove-library" data-group-id="[% group.id | html %]" data-group-library="[% group.library.branchname | html %]" data-group-parent-title="[% group.parent.title | html %]" ><i class="fa fa-trash"></i> Remove from group</button> |
354 |
[% ELSE %] |
367 |
[% ELSE %] |
355 |
<div class="btn-group"> |
368 |
<div class="btn-group"> |
356 |
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i> Actions <span class="caret"></span></button> |
369 |
<button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i> Actions <span class="caret"></span></button> |
357 |
<ul class="dropdown-menu"> |
370 |
<ul class="dropdown-menu"> |
358 |
<li> |
371 |
<li> |
359 |
<a id="add-group-[% group.id | html %]" href="#" class="add-group" data-group-id="[% group.id | html %]"> |
372 |
<a id="add-group-[% group.id | html %]" href="#" class="add-group" data-group-id="[% group.id | html %]"> |
Lines 362-374
Link Here
|
362 |
</li> |
375 |
</li> |
363 |
|
376 |
|
364 |
<li> |
377 |
<li> |
365 |
<a class="edit-group" id="edit-group-[% group.id | html %]" href="#" class="edit-group" data-group-id="[% group.id | html %]" data-group-parent-id="[% group.parent_id | html %]" data-group-title="[% group.title | html %]" data-group-description="[% group.description | html %]" data-group-ft_hide_patron_info="[% group.ft_hide_patron_info | html %]" data-group-ft_search_groups_opac="[% group.ft_search_groups_opac | html %]" data-group-ft_search_groups_staff="[% group.ft_search_groups_staff | html %]" > |
378 |
<a class="edit-group" id="edit-group-[% group.id | html %]" href="#" data-group-id="[% group.id | html %]" data-group-parent-id="[% group.parent_id | html %]" data-group-title="[% group.title | html %]" data-group-description="[% group.description | html %]" data-group-ft_hide_patron_info="[% group.ft_hide_patron_info | html %]" data-group-ft_search_groups_opac="[% group.ft_search_groups_opac | html %]" data-group-ft_search_groups_staff="[% group.ft_search_groups_staff | html %]" > |
366 |
<i class="fa fa-pencil"></i> Edit |
379 |
<i class="fa fa-pencil"></i> Edit |
367 |
</a> |
380 |
</a> |
368 |
</li> |
381 |
</li> |
369 |
|
382 |
|
370 |
<li> |
383 |
<li> |
371 |
<a class="delete-group" id="delete-group-[% group.id | html %]" href="#" class="delete-group" data-group-id="[% group.id | html %]" data-group-title="[% group.title | html %]"> |
384 |
<a class="delete-group" id="delete-group-[% group.id | html %]" href="#" data-group-id="[% group.id | html %]" data-group-title="[% group.title | html %]"> |
372 |
<i class="fa fa-trash"></i> Delete |
385 |
<i class="fa fa-trash"></i> Delete |
373 |
</a> |
386 |
</a> |
374 |
</li> |
387 |
</li> |
Lines 376-386
Link Here
|
376 |
</div> |
389 |
</div> |
377 |
|
390 |
|
378 |
<div class="btn-group"> |
391 |
<div class="btn-group"> |
379 |
<button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> Add library <span class="caret"></span></button> |
392 |
<button class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> Add library <span class="caret"></span></button> |
380 |
<ul class="dropdown-menu"> |
393 |
<ul class="dropdown-menu"> |
381 |
[% FOREACH library IN group.libraries_not_direct_children %] |
394 |
[% FOREACH library IN group.libraries_not_direct_children %] |
382 |
<li> |
395 |
<li> |
383 |
<a class="add-library" id="add-library-[% group.id | html %]" href="/cgi-bin/koha/admin/library_groups.pl?action=add&parent_id=[% group.id | html %]&branchcode=[% library.id | html %]"> |
396 |
<a class="add-library" id="add-library[% library.id | html %]-[% group.id | html %]" href="/cgi-bin/koha/admin/library_groups.pl?action=add&parent_id=[% group.id | html %]&branchcode=[% library.id | html %]"> |
384 |
[% library.branchname | html %] |
397 |
[% library.branchname | html %] |
385 |
</a> |
398 |
</a> |
386 |
</li> |
399 |
</li> |
387 |
- |
|
|