Lines 153-158
Link Here
|
153 |
Is local hold group |
153 |
Is local hold group |
154 |
</label> |
154 |
</label> |
155 |
</p> |
155 |
</p> |
|
|
156 |
<p> |
157 |
<label> |
158 |
<input type="checkbox" name="ft_local_float_group" id="add-group-modal-ft_local_float_group" value="1" /> |
159 |
Is local float group |
160 |
</label> |
161 |
</p> |
156 |
</div> |
162 |
</div> |
157 |
</div> |
163 |
</div> |
158 |
</div> |
164 |
</div> |
Lines 223-228
Link Here
|
223 |
Is local hold group |
229 |
Is local hold group |
224 |
</label> |
230 |
</label> |
225 |
</p> |
231 |
</p> |
|
|
232 |
<p> |
233 |
<label> |
234 |
<input type="checkbox" id="edit-group-modal-ft_local_float_group" name="ft_local_float_group" value="1" /> |
235 |
Is local float group |
236 |
</label> |
237 |
</p> |
226 |
</div> |
238 |
</div> |
227 |
</div> |
239 |
</div> |
228 |
</div> |
240 |
</div> |
Lines 304-310
Link Here
|
304 |
var ft_search_groups_opac = $(this).data('groupFt_search_groups_opac'); |
316 |
var ft_search_groups_opac = $(this).data('groupFt_search_groups_opac'); |
305 |
var ft_search_groups_staff = $(this).data('groupFt_search_groups_staff'); |
317 |
var ft_search_groups_staff = $(this).data('groupFt_search_groups_staff'); |
306 |
var ft_local_hold_group = $(this).data('groupFt_local_hold_group'); |
318 |
var ft_local_hold_group = $(this).data('groupFt_local_hold_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_limit_item_editing ); |
319 |
var ft_local_float_group = $(this).data('groupFt_local_float_group'); |
|
|
320 |
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 ); |
308 |
}); |
321 |
}); |
309 |
|
322 |
|
310 |
$('.delete-group').on('click', function(e) { |
323 |
$('.delete-group').on('click', function(e) { |
Lines 341-346
Link Here
|
341 |
$('#add-group-modal-ft_search_groups_opac').prop('checked', false); |
354 |
$('#add-group-modal-ft_search_groups_opac').prop('checked', false); |
342 |
$('#add-group-modal-ft_search_groups_staff').prop('checked', false); |
355 |
$('#add-group-modal-ft_search_groups_staff').prop('checked', false); |
343 |
$('#add-group-modal-ft_local_hold_group').prop('checked', false); |
356 |
$('#add-group-modal-ft_local_hold_group').prop('checked', false); |
|
|
357 |
$('#add-group-modal-ft_local_float_group').prop('checked', false); |
344 |
if ( parent_id ) { |
358 |
if ( parent_id ) { |
345 |
$('#root-group-features-add').hide(); |
359 |
$('#root-group-features-add').hide(); |
346 |
} else { |
360 |
} else { |
Lines 350-366
Link Here
|
350 |
|
364 |
|
351 |
} |
365 |
} |
352 |
|
366 |
|
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_limit_item_editing ) { |
367 |
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 ) { |
354 |
$('#edit-group-modal-id').val( id ); |
368 |
$('#edit-group-modal-id').val( id ); |
355 |
$('#edit-group-modal-title').val( title ); |
369 |
$('#edit-group-modal-title').val( title ); |
356 |
$('#edit-group-modal-description').val( description ); |
370 |
$('#edit-group-modal-description').val( description ); |
357 |
|
371 |
console.log(ft_local_float_group); |
358 |
if ( parent_id ) { |
372 |
if ( parent_id ) { |
359 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', false); |
373 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', false); |
360 |
$('#edit-group-modal-ft_limit_item_editing').prop('checked', false); |
374 |
$('#edit-group-modal-ft_limit_item_editing').prop('checked', false); |
361 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', false); |
375 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', false); |
362 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', false); |
376 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', false); |
363 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', false); |
377 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', false); |
|
|
378 |
$('#edit-group-modal-ft_local_float_group').prop('checked', false); |
364 |
$('#root-group-features-edit').hide(); |
379 |
$('#root-group-features-edit').hide(); |
365 |
} else { |
380 |
} else { |
366 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', ft_hide_patron_info ? true : false ); |
381 |
$('#edit-group-modal-ft_hide_patron_info').prop('checked', ft_hide_patron_info ? true : false ); |
Lines 368-373
Link Here
|
368 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', ft_search_groups_opac ? true : false ); |
383 |
$('#edit-group-modal-ft_search_groups_opac').prop('checked', ft_search_groups_opac ? true : false ); |
369 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', ft_search_groups_staff ? true : false ); |
384 |
$('#edit-group-modal-ft_search_groups_staff').prop('checked', ft_search_groups_staff ? true : false ); |
370 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', ft_local_hold_group ? true : false ); |
385 |
$('#edit-group-modal-ft_local_hold_group').prop('checked', ft_local_hold_group ? true : false ); |
|
|
386 |
$('#edit-group-modal-ft_local_float_group').prop('checked', ft_local_float_group ? true : false ); |
371 |
$('#root-group-features-edit').show(); |
387 |
$('#root-group-features-edit').show(); |
372 |
} |
388 |
} |
373 |
|
389 |
|
Lines 426-431
Link Here
|
426 |
[% IF group.ft_local_hold_group %] |
442 |
[% IF group.ft_local_hold_group %] |
427 |
<li>Is local hold group</li> |
443 |
<li>Is local hold group</li> |
428 |
[% END %] |
444 |
[% END %] |
|
|
445 |
[% IF group.ft_local_float_group %] |
446 |
<li>Is local float group</li> |
447 |
[% END %] |
429 |
</ul> |
448 |
</ul> |
430 |
[% END %] |
449 |
[% END %] |
431 |
</td> |
450 |
</td> |
Lines 443-449
Link Here
|
443 |
</li> |
462 |
</li> |
444 |
|
463 |
|
445 |
<li> |
464 |
<li> |
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_limit_item_editing="[% group.ft_limit_item_editing | html %]" > |
465 |
<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 %]" > |
447 |
<i class="fa fa-pencil"></i> Edit |
466 |
<i class="fa fa-pencil"></i> Edit |
448 |
</a> |
467 |
</a> |
449 |
</li> |
468 |
</li> |