2020-01-01 08:26:47 -08:00
|
|
|
{% macro restrict_modal() %}
|
|
|
|
<div class="modal fade" id="restrictModal" tabindex="-1" role="dialog" aria-labelledby="restrictModalLabel">
|
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2020-03-18 19:10:10 -07:00
|
|
|
<h4 class="modal-title hidden" id="h1">{{_('Select Allowed/Denied Tags')}}</h4>
|
2020-04-03 10:46:26 -07:00
|
|
|
<h4 class="modal-title hidden" id="h2">{{_('Select Allowed/Denied Custom Column Values')}}</h4>
|
|
|
|
<h4 class="modal-title hidden" id="h3">{{_('Select Allowed/Denied Tags of User')}}</h4>
|
|
|
|
<h4 class="modal-title hidden" id="h4">{{_('Select Allowed/Denied Custom Column Values of User')}}</h4>
|
2020-01-01 08:26:47 -08:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<table class="table table-no-bordered" id="restrict-elements-table" data-id-field="id" data-show-header="false" data-editable-mode="inline">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2020-01-05 07:43:48 -08:00
|
|
|
<th data-field="Element" id="Element" data-editable-type="text" data-editable="true" data-editable-title="{{_('Enter Tag')}}"></th>
|
2020-01-11 02:42:30 -08:00
|
|
|
<th data-field="type" id="type" data-visible="true"></th>
|
2020-01-01 08:26:47 -08:00
|
|
|
<th data-field="id" id="id" data-visible="false"></th>
|
|
|
|
<th data-align="right" data-formatter="RestrictionActions"></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
<form id="add_restriction" action="" method="POST">
|
|
|
|
<div class="form-group required">
|
2020-02-15 01:21:45 -08:00
|
|
|
<label for="add_element">{{_('Add View Restriction')}}</label>
|
2021-03-16 07:03:38 -07:00
|
|
|
<input type="text" class="form-control" name="add_element" id="add_element">
|
2020-01-01 08:26:47 -08:00
|
|
|
</div>
|
|
|
|
<div class="form-group required">
|
|
|
|
<input type="button" class="btn btn-default" value="{{_('Allow')}}" name="submit_allow" id="submit_allow" data-dismiss="static">
|
|
|
|
<input type="button" class="btn btn-default" value="{{_('Deny')}}" name="submit_deny" id="submit_restrict" data-dismiss="static">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2020-02-10 09:34:10 -08:00
|
|
|
<button type="button" id="restrict_close" class="btn btn-default" data-dismiss="modal">{{_('Close')}}</button>
|
2020-01-01 08:26:47 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
2020-12-20 10:17:29 -08:00
|
|
|
{% macro delete_book() %}
|
2020-06-08 08:34:03 -07:00
|
|
|
{% if g.user.role_delete_books() %}
|
|
|
|
<div class="modal fade" id="deleteModal" role="dialog" aria-labelledby="metaDeleteLabel">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header bg-danger text-center">
|
|
|
|
<span>{{_('Are you really sure?')}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body text-center">
|
|
|
|
<p>
|
2020-06-18 11:39:45 -07:00
|
|
|
<span class="hidden" id="book_format">{{_('This book format will be permanently erased from database')}}</span>
|
|
|
|
<span class="hidden" id="book_complete">{{_('This book will be permanently erased from database')}}</span>
|
2020-06-08 08:34:03 -07:00
|
|
|
<span>{{_('and hard disk')}}</span>
|
|
|
|
</p>
|
|
|
|
{% if config.config_kobo_sync %}
|
|
|
|
<p>
|
|
|
|
<span>{{_('Important Kobo Note: deleted books will remain on any paired Kobo device.')}}</span>
|
|
|
|
<span>{{_('Books must first be archived and the device synced before a book can safely be deleted.')}}</span>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
<input type="button" class="btn btn-danger" value="{{_('Delete')}}" name="delete_confirm" id="delete_confirm" data-dismiss="modal">
|
|
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{_('Cancel')}}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|
2020-12-10 05:41:45 -08:00
|
|
|
{% macro filechooser_modal() %}
|
|
|
|
<div class="modal fade" id="fileModal" role="dialog" aria-labelledby="metafileLabel">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header bg-info text-center">
|
|
|
|
<span>{{_('Choose File Location')}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<table id="file_table" class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{_('type')}}</th>
|
|
|
|
<th>{{_('name')}}</th>
|
|
|
|
<th>{{_('size')}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="tbody">
|
|
|
|
<tr class="tr-clickable hidden" id="parent" data-type="dir" data-path="..">
|
|
|
|
<td><span class="glyphicon glyphicon-folder-close"></span></td>
|
|
|
|
<td title="{{_('Parent Directory')}}"><span class="parentdir">..</span></td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2020-12-10 23:37:37 -08:00
|
|
|
<div class="text-left" id="element_selected"></div>
|
|
|
|
<input type="button" class="btn btn-primary" data-path="" data-link="" data-folderonly="" data-filefilter="" data-newfile="" value="{{_('Select')}}" name="file_confirm" id="file_confirm" data-dismiss="modal">
|
2020-12-31 00:54:40 -08:00
|
|
|
<button type="button" id="file_abort" class="btn btn-default" data-dismiss="modal">{{_('Cancel')}}</button>
|
2020-12-10 05:41:45 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|
2020-12-20 10:17:29 -08:00
|
|
|
|
|
|
|
{% macro delete_confirm_modal() %}
|
|
|
|
<div id="GeneralDeleteModal" class="modal fade" role="Dialog">
|
|
|
|
<div class="modal-dialog modal-sm">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header bg-danger text-center">
|
|
|
|
<span id="header"></span>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body text-center">
|
|
|
|
<span id="text"></span>
|
|
|
|
<p></p>
|
|
|
|
<button id="btnConfirmYes" type="button" class="btn btn btn-danger">{{_('Delete')}}</button>
|
|
|
|
<button id="btnConfirmNo" type="button" class="btn btn-default">{{_('Cancel')}}</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endmacro %}
|