Lines 158-163
Link Here
|
158 |
Is local hold group |
158 |
Is local hold group |
159 |
</label> |
159 |
</label> |
160 |
</p> |
160 |
</p> |
|
|
161 |
<p> |
162 |
<label> |
163 |
<input type="checkbox" name="ft_local_float_group" id="add-group-modal-ft_local_float_group" value="1" /> |
164 |
Is local float group |
165 |
</label> |
166 |
</p> |
161 |
</div> |
167 |
</div> |
162 |
</div> |
168 |
</div> |
163 |
</div> |
169 |
</div> |
Lines 228-233
Link Here
|
228 |
Is local hold group |
234 |
Is local hold group |
229 |
</label> |
235 |
</label> |
230 |
</p> |
236 |
</p> |
|
|
237 |
<p> |
238 |
<label> |
239 |
<input type="checkbox" id="edit-group-modal-ft_local_float_group" name="ft_local_float_group" value="1" /> |
240 |
Is local float group |
241 |
</label> |
242 |
</p> |
231 |
</div> |
243 |
</div> |
232 |
</div> |
244 |
</div> |
233 |
</div> |
245 |
</div> |
Lines 309-315
Link Here
|
309 |
var ft_search_groups_opac = $(this).data('groupFt_search_groups_opac'); |
321 |
var ft_search_groups_opac = $(this).data('groupFt_search_groups_opac'); |
310 |
var ft_search_groups_staff = $(this).data('groupFt_search_groups_staff'); |
322 |
var ft_search_groups_staff = $(this).data('groupFt_search_groups_staff'); |
311 |
var ft_local_hold_group = $(this).data('groupFt_local_hold_group'); |
323 |
var ft_local_hold_group = $(this).data('groupFt_local_hold_group'); |
312 |
edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group, ft_limit_item_editing ); |
324 |
var ft_local_float_group = $(this).data('groupFt_local_float_group'); |
|
|
325 |
edit_group( id, parent_id, title, description, ft_hide_patron_info, ft_search_groups_opac, ft_search_groups_staff, ft_local_hold_group, ft_limit_item_editing, ft_local_float_group ); |
313 |
}); |
326 |
}); |
314 |
|
327 |
|
315 |
$('.delete-group').on('click', function(e) { |
328 |
$('.delete-group').on('click', function(e) { |
Lines 346-351
Link Here
|
346 |
$('#add-group-modal-ft_search_groups_opac').prop('checked', false); |
359 |
$('#add-group-modal-ft_search_groups_opac').prop('checked', false); |
347 |
$('#add-group-modal-ft_search_groups_staff').prop('checked', false); |
360 |
$('#add-group-modal-ft_search_groups_staff').prop('checked', false); |
348 |
$('#add-group-modal-ft_local_hold_group').prop('checked', false); |
361 |
$('#add-group-modal-ft_local_hold_group').prop('checked', false); |
|
|
362 |
$('#add-group-modal-ft_local_float_group').prop('checked', false); |
349 |
if ( parent_id ) { |
363 |
if ( parent_id ) { |
350 |
$('#root-group-features-add').hide(); |
364 |
$('#root-group-features-add').hide(); |
351 |
} else { |
365 |
} else { |
Lines 355-371
Link Here
|
355 |
|
369 |
|
356 |
} |
370 |
} |
357 |
|
371 |
|
358 |
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_limit_item_editing ) { |
372 |
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_limit_item_editing, ft_local_float_group ) { |
359 |
$('#edit-group-modal-id').val( id ); |
373 |
$('#edit-group-modal-id').val( id ); |
360 |
$('#edit-group-modal-title').val( title ); |
374 |
$('#edit-group-modal-title').val( title ); |
361 |
$('#edit-group-modal-description').val( description ); |
375 |
$('#edit-group-modal-description').val( description ); |
362 |
|
376 |
console.log(ft_local_float_group); |
363 |
if ( parent_id ) { |
377 |
if ( parent_id ) { |
364 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', false); |
378 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', false); |
365 |
$('#edit-group-modal-ft_limit_item_editing').prop('checked', false); |
379 |
$('#edit-group-modal-ft_limit_item_editing').prop('checked', false); |
366 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', false); |
380 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', false); |
367 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', false); |
381 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', false); |
368 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', false); |
382 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', false); |
|
|
383 |
$('#edit-group-modal-ft_local_float_group').prop('checked', false); |
369 |
$('#root-group-features-edit').hide(); |
384 |
$('#root-group-features-edit').hide(); |
370 |
} else { |
385 |
} else { |
371 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', ft_hide_patron_info ? true : false ); |
386 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', ft_hide_patron_info ? true : false ); |
Lines 373-378
Link Here
|
373 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', ft_search_groups_opac ? true : false ); |
388 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', ft_search_groups_opac ? true : false ); |
374 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', ft_search_groups_staff ? true : false ); |
389 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', ft_search_groups_staff ? true : false ); |
375 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', ft_local_hold_group ? true : false ); |
390 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', ft_local_hold_group ? true : false ); |
|
|
391 |
$('#edit-group-modal-ft_local_float_group').prop('checked', ft_local_float_group ? true : false ); |
376 |
$('#root-group-features-edit').show(); |
392 |
$('#root-group-features-edit').show(); |
377 |
} |
393 |
} |
378 |
|
394 |
|
Lines 431-436
Link Here
|
431 |
[% IF group.ft_local_hold_group %] |
447 |
[% IF group.ft_local_hold_group %] |
432 |
<li>Is local hold group</li> |
448 |
<li>Is local hold group</li> |
433 |
[% END %] |
449 |
[% END %] |
|
|
450 |
[% IF group.ft_local_float_group %] |
451 |
<li>Is local float group</li> |
452 |
[% END %] |
434 |
</ul> |
453 |
</ul> |
435 |
[% END %] |
454 |
[% END %] |
436 |
</td> |
455 |
</td> |
Lines 448-454
Link Here
|
448 |
</li> |
467 |
</li> |
449 |
|
468 |
|
450 |
<li> |
469 |
<li> |
451 |
<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_limit_item_editing="[% group.ft_limit_item_editing | html %]" > |
470 |
<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_limit_item_editing="[% group.ft_limit_item_editing | html %]" data-group-ft_local_float_group="[% group.ft_local_float_group | html %]" > |
452 |
<i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit |
471 |
<i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit |
453 |
</a> |
472 |
</a> |
454 |
</li> |
473 |
</li> |