You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
3.5 KiB
HTML
71 lines
3.5 KiB
HTML
5 years ago
|
{% 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">
|
||
5 years ago
|
<h4 class="modal-title hidden" id="h1">{{_('Select Allowed/Denied Tags')}}</h4>
|
||
5 years ago
|
<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>
|
||
5 years ago
|
</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>
|
||
5 years ago
|
<th data-field="Element" id="Element" data-editable-type="text" data-editable="true" data-editable-title="{{_('Enter Tag')}}"></th>
|
||
5 years ago
|
<th data-field="type" id="type" data-visible="true"></th>
|
||
5 years ago
|
<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">
|
||
5 years ago
|
<label for="add_element">{{_('Add View Restriction')}}</label>
|
||
5 years ago
|
<input type="text" class="form-control" name="add_element" id="add_element" >
|
||
|
</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">
|
||
5 years ago
|
<button type="button" id="restrict_close" class="btn btn-default" data-dismiss="modal">{{_('Close')}}</button>
|
||
5 years ago
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endmacro %}
|
||
5 years ago
|
{% macro delete_book(bookid) %}
|
||
|
{% 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>
|
||
|
<span>{{_('This book will be permanently erased from database')}}</span>
|
||
|
<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">
|
||
|
<!--a href="{{ url_for('editbook.delete_book', book_id=bookid) }}" id="delete_confirm" class="btn btn-danger">{{_('Delete')}}</a-->
|
||
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{_('Cancel')}}</button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% endmacro %}
|