mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-26 01:50:31 +00:00
Upload setting in user template only visible if upload enabled
Delete book setting only visible if edit book setting is ticked
This commit is contained in:
parent
d72210c6ae
commit
ecc5cb167e
@ -95,17 +95,21 @@
|
|||||||
<input type="checkbox" name="viewer_role" id="viewer_role" {% if conf.role_viewer() %}checked{% endif %}>
|
<input type="checkbox" name="viewer_role" id="viewer_role" {% if conf.role_viewer() %}checked{% endif %}>
|
||||||
<label for="viewer_role">{{_('Allow eBook Viewer')}}</label>
|
<label for="viewer_role">{{_('Allow eBook Viewer')}}</label>
|
||||||
</div>
|
</div>
|
||||||
|
{% if config.config_upload %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="checkbox" name="upload_role" id="upload_role" {% if conf.role_upload() %}checked{% endif %}>
|
<input type="checkbox" name="upload_role" id="upload_role" {% if conf.role_upload() %}checked{% endif %}>
|
||||||
<label for="upload_role">{{_('Allow Uploads')}}</label>
|
<label for="upload_role">{{_('Allow Uploads')}}</label>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="checkbox" name="edit_role" id="edit_role" {% if conf.role_edit() %}checked{% endif %}>
|
<input type="checkbox" name="edit_role" data-control="edit_settings" id="edit_role" {% if conf.role_edit() %}checked{% endif %}>
|
||||||
<label for="edit_role">{{_('Allow Edit')}}</label>
|
<label for="edit_role">{{_('Allow Edit')}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div data-related="edit_settings">
|
||||||
<input type="checkbox" name="delete_role" id="delete_role" {% if conf.role_delete_books() %}checked{% endif %}>
|
<div class="form-group">
|
||||||
<label for="delete_role">{{_('Allow Delete Books')}}</label>
|
<input type="checkbox" name="delete_role" id="delete_role" {% if conf.role_delete_books() %}checked{% endif %}>
|
||||||
|
<label for="delete_role">{{_('Allow Delete Books')}}</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="checkbox" name="passwd_role" id="passwd_role" {% if conf.role_passwd() %}checked{% endif %}>
|
<input type="checkbox" name="passwd_role" id="passwd_role" {% if conf.role_passwd() %}checked{% endif %}>
|
||||||
|
@ -108,24 +108,26 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="checkbox" name="edit_role" id="edit_role" {% if content.role_edit() %}checked{% endif %}>
|
<input type="checkbox" name="edit_role" data-control="edit_settings" id="edit_role" {% if content.role_edit() %}checked{% endif %}>
|
||||||
<label for="edit_role">{{_('Allow Edit')}}</label>
|
<label for="edit_role">{{_('Allow Edit')}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div data-related="edit_settings">
|
||||||
<input type="checkbox" name="delete_role" id="delete_role" {% if content.role_delete_books() %}checked{% endif %}>
|
<div class="form-group">
|
||||||
<label for="delete_role">{{_('Allow Delete Books')}}</label>
|
<input type="checkbox" name="delete_role" id="delete_role" {% if content.role_delete_books() %}checked{% endif %}>
|
||||||
|
<label for="delete_role">{{_('Allow Delete Books')}}</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if not content.role_anonymous() %}
|
{% if not content.role_anonymous() %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="checkbox" name="passwd_role" id="passwd_role" {% if content.role_passwd() %}checked{% endif %}>
|
<input type="checkbox" name="passwd_role" id="passwd_role" {% if content.role_passwd() %}checked{% endif %}>
|
||||||
<label for="passwd_role">{{_('Allow Changing Password')}}</label>
|
<label for="passwd_role">{{_('Allow Changing Password')}}</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="checkbox" name="edit_shelf_role" id="edit_shelf_role" {% if content.role_edit_shelfs() %}checked{% endif %}>
|
<input type="checkbox" name="edit_shelf_role" id="edit_shelf_role" {% if content.role_edit_shelfs() %}checked{% endif %}>
|
||||||
<label for="edit_shelf_role">{{_('Allow Editing Public Shelves')}}</label>
|
<label for="edit_shelf_role">{{_('Allow Editing Public Shelves')}}</label>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% if kobo_support and not content.role_anonymous() %}
|
{% if kobo_support and not content.role_anonymous() %}
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="checkbox" name="kobo_only_shelves_sync" id="kobo_only_shelves_sync" {% if content.kobo_only_shelves_sync %}checked{% endif %}>
|
<input type="checkbox" name="kobo_only_shelves_sync" id="kobo_only_shelves_sync" {% if content.kobo_only_shelves_sync %}checked{% endif %}>
|
||||||
|
Loading…
Reference in New Issue
Block a user