Lines 147-152
Link Here
|
147 |
Is local hold group |
147 |
Is local hold group |
148 |
</label> |
148 |
</label> |
149 |
</p> |
149 |
</p> |
|
|
150 |
<p> |
151 |
<label> |
152 |
<input type="checkbox" name="ft_local_float_group" id="add-group-modal-ft_local_float_group" value="1" /> |
153 |
Is local float group |
154 |
</label> |
155 |
</p> |
150 |
</div> |
156 |
</div> |
151 |
</div> |
157 |
</div> |
152 |
</div> |
158 |
</div> |
Lines 211-216
Link Here
|
211 |
Is local hold group |
217 |
Is local hold group |
212 |
</label> |
218 |
</label> |
213 |
</p> |
219 |
</p> |
|
|
220 |
<p> |
221 |
<label> |
222 |
<input type="checkbox" id="edit-group-modal-ft_local_float_group" name="ft_local_float_group" value="1" /> |
223 |
Is local float group |
224 |
</label> |
225 |
</p> |
214 |
</div> |
226 |
</div> |
215 |
</div> |
227 |
</div> |
216 |
</div> |
228 |
</div> |
Lines 291-297
Link Here
|
291 |
var ft_search_groups_opac = $(this).data('groupFt_search_groups_opac'); |
303 |
var ft_search_groups_opac = $(this).data('groupFt_search_groups_opac'); |
292 |
var ft_search_groups_staff = $(this).data('groupFt_search_groups_staff'); |
304 |
var ft_search_groups_staff = $(this).data('groupFt_search_groups_staff'); |
293 |
var ft_local_hold_group = $(this).data('groupFt_local_hold_group'); |
305 |
var ft_local_hold_group = $(this).data('groupFt_local_hold_group'); |
294 |
edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group ); |
306 |
var ft_local_float_group = $(this).data('groupFt_local_float_group'); |
|
|
307 |
edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group, ft_local_float_group ); |
295 |
}); |
308 |
}); |
296 |
|
309 |
|
297 |
$('.delete-group').on('click', function(e) { |
310 |
$('.delete-group').on('click', function(e) { |
Lines 327-332
Link Here
|
327 |
$('#add-group-modal-ft_search_groups_opac').prop('checked', false); |
340 |
$('#add-group-modal-ft_search_groups_opac').prop('checked', false); |
328 |
$('#add-group-modal-ft_search_groups_staff').prop('checked', false); |
341 |
$('#add-group-modal-ft_search_groups_staff').prop('checked', false); |
329 |
$('#add-group-modal-ft_local_hold_group').prop('checked', false); |
342 |
$('#add-group-modal-ft_local_hold_group').prop('checked', false); |
|
|
343 |
$('#add-group-modal-ft_local_float_group').prop('checked', false); |
330 |
if ( parent_id ) { |
344 |
if ( parent_id ) { |
331 |
$('#root-group-features-add').hide(); |
345 |
$('#root-group-features-add').hide(); |
332 |
} else { |
346 |
} else { |
Lines 336-357
Link Here
|
336 |
|
350 |
|
337 |
} |
351 |
} |
338 |
|
352 |
|
339 |
function edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group ) { |
353 |
function edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group, ft_local_float_group ) { |
340 |
$('#edit-group-modal-id').val( id ); |
354 |
$('#edit-group-modal-id').val( id ); |
341 |
$('#edit-group-modal-title').val( title ); |
355 |
$('#edit-group-modal-title').val( title ); |
342 |
$('#edit-group-modal-description').val( description ); |
356 |
$('#edit-group-modal-description').val( description ); |
343 |
|
357 |
console.log(ft_local_float_group); |
344 |
if ( parent_id ) { |
358 |
if ( parent_id ) { |
345 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', false); |
359 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', false); |
346 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', false); |
360 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', false); |
347 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', false); |
361 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', false); |
348 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', false); |
362 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', false); |
|
|
363 |
$('#edit-group-modal-ft_local_float_group').prop('checked', false); |
349 |
$('#root-group-features-edit').hide(); |
364 |
$('#root-group-features-edit').hide(); |
350 |
} else { |
365 |
} else { |
351 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', ft_hide_patron_info ? true : false ); |
366 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', ft_hide_patron_info ? true : false ); |
352 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', ft_search_groups_opac ? true : false ); |
367 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', ft_search_groups_opac ? true : false ); |
353 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', ft_search_groups_staff ? true : false ); |
368 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', ft_search_groups_staff ? true : false ); |
354 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', ft_local_hold_group ? true : false ); |
369 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', ft_local_hold_group ? true : false ); |
|
|
370 |
$('#edit-group-modal-ft_local_float_group').prop('checked', ft_local_float_group ? true : false ); |
355 |
$('#root-group-features-edit').show(); |
371 |
$('#root-group-features-edit').show(); |
356 |
} |
372 |
} |
357 |
|
373 |
|
Lines 407-412
Link Here
|
407 |
[% IF group.ft_local_hold_group %] |
423 |
[% IF group.ft_local_hold_group %] |
408 |
<li>Is local hold group</li> |
424 |
<li>Is local hold group</li> |
409 |
[% END %] |
425 |
[% END %] |
|
|
426 |
[% IF group.ft_local_float_group %] |
427 |
<li>Is local float group</li> |
428 |
[% END %] |
410 |
</ul> |
429 |
</ul> |
411 |
[% END %] |
430 |
[% END %] |
412 |
</td> |
431 |
</td> |
Lines 424-430
Link Here
|
424 |
</li> |
443 |
</li> |
425 |
|
444 |
|
426 |
<li> |
445 |
<li> |
427 |
<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 %]" data-group-ft_local_hold_group="[% group.ft_local_hold_group | html %]" > |
446 |
<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 %]" data-group-ft_local_hold_group="[% group.ft_local_hold_group | html %]" data-group-ft_local_float_group="[% group.ft_local_float_group | html %]" > |
428 |
<i class="fa fa-pencil"></i> Edit |
447 |
<i class="fa fa-pencil"></i> Edit |
429 |
</a> |
448 |
</a> |
430 |
</li> |
449 |
</li> |