2016-05-02 23:25:21 +02:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
2020-10-10 12:15:02 +02:00
|
|
|
<h1 class="{{page}}">{{title}}</h1>
|
2020-05-03 10:55:33 +02:00
|
|
|
<div class="col-md-10 col-lg-6">
|
2020-07-11 12:09:34 +02:00
|
|
|
<form role="form" id="search" action="{{ url_for('web.advanced_search_form') }}" method="POST">
|
2016-05-02 23:25:21 +02:00
|
|
|
<div class="form-group">
|
2016-11-09 19:24:33 +01:00
|
|
|
<label for="book_title">{{_('Book Title')}}</label>
|
2016-05-02 23:25:21 +02:00
|
|
|
<input type="text" class="form-control" name="book_title" id="book_title" value="">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2016-11-09 19:24:33 +01:00
|
|
|
<label for="bookAuthor">{{_('Author')}}</label>
|
2016-05-02 23:25:21 +02:00
|
|
|
<input type="text" class="form-control typeahead" name="author_name" id="bookAuthor" value="" autocomplete="off">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2017-02-22 20:59:48 +01:00
|
|
|
<label for="Publisher">{{_('Publisher')}}</label>
|
|
|
|
<input type="text" class="form-control" name="publisher" id="publisher" value="">
|
|
|
|
</div>
|
2018-08-12 18:21:57 +02:00
|
|
|
<div class="row">
|
2021-03-07 03:54:39 +01:00
|
|
|
<div class="form-group col-sm-6">
|
2021-05-15 07:51:32 +02:00
|
|
|
<label for="publishstart">{{_('Published Date From')}}</label>
|
2021-05-14 19:58:06 +02:00
|
|
|
<div class="input-group">
|
2021-05-15 07:51:32 +02:00
|
|
|
<input type="text" style="position: static;" class="datepicker form-control" name="publish_start" id="publishstart" value="">
|
|
|
|
<input type="text" style="position: absolute;" class="form-control fake-input hidden" id="fake_publishstart" value="">
|
2021-05-14 19:58:06 +02:00
|
|
|
<span class="input-group-btn">
|
2021-05-15 07:51:32 +02:00
|
|
|
<button type="button" id="publishstart_delete" class="datepicker_delete btn btn-default"><span class="glyphicon glyphicon-remove-circle"></span></button>
|
2021-05-14 19:58:06 +02:00
|
|
|
</span>
|
2018-08-12 18:21:57 +02:00
|
|
|
</div>
|
2021-03-07 03:54:39 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-6">
|
2021-05-15 07:51:32 +02:00
|
|
|
<label for="publishend">{{_('Published Date To')}}</label>
|
2021-05-14 19:58:06 +02:00
|
|
|
<div class="input-group ">
|
2021-05-15 07:51:32 +02:00
|
|
|
<input type="text" style="position: static;" class="datepicker form-control" name="publishend" id="publishend" value="">
|
|
|
|
<input type="text" style="position: absolute;" class="form-control fake-input hidden" id="fake_publishend" value="">
|
2021-05-14 19:58:06 +02:00
|
|
|
<span class="input-group-btn">
|
2021-05-15 07:51:32 +02:00
|
|
|
<button type="button" id="publishend_delete" class="datepicker_delete btn btn-default"><span class="glyphicon glyphicon-remove-circle"></span></button>
|
2021-05-14 19:58:06 +02:00
|
|
|
</span>
|
2018-08-12 18:21:57 +02:00
|
|
|
</div>
|
2021-03-07 03:54:39 +01:00
|
|
|
</div>
|
2018-04-01 19:31:41 +02:00
|
|
|
</div>
|
2020-12-27 18:59:33 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="read_status">{{_('Read Status')}}</label>
|
|
|
|
<select name="read_status" id="read_status" class="form-control">
|
|
|
|
<option value="" selected></option>
|
|
|
|
<option value="True" >{{_('Yes')}}</option>
|
|
|
|
<option value="False" >{{_('No')}}</option>
|
|
|
|
</select>
|
2016-05-03 14:27:38 +02:00
|
|
|
</div>
|
2020-12-27 19:12:27 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-6" id="tag">
|
|
|
|
<div><label for="include_tag">{{_('Tags')}}</label></div>
|
2021-03-07 03:54:39 +01:00
|
|
|
<select class="selectpicker" name="include_tag" id="include_tag" data-live-search="true" data-style="btn-primary" data-dropup-auto="false" multiple>
|
2020-12-27 19:12:27 +01:00
|
|
|
{% for tag in tags %}
|
2021-03-07 03:54:39 +01:00
|
|
|
<option class="tags_click" value="{{tag.id}}">{{tag.name}}</option>
|
2020-12-27 19:12:27 +01:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2016-05-02 23:25:21 +02:00
|
|
|
</div>
|
2020-12-27 19:12:27 +01:00
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
<div><label for="exclude_tag">{{_('Exclude Tags')}}</label></div>
|
2021-03-07 03:54:39 +01:00
|
|
|
<select class="selectpicker" name="exclude_tag" id="exclude_tag" data-live-search="true" data-style="btn-danger" data-dropup-auto="false" multiple>
|
2020-12-27 19:12:27 +01:00
|
|
|
{% for tag in tags %}
|
2021-03-07 03:54:39 +01:00
|
|
|
<option class="tags_click" value="{{tag.id}}">{{tag.name}}</option>
|
2020-12-27 19:12:27 +01:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2016-12-27 16:07:25 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-27 19:12:27 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
<div><label for="include_serie">{{_('Series')}}</label></div>
|
2021-03-07 04:34:39 +01:00
|
|
|
<select class="selectpicker" name="include_serie" id="include_serie" data-live-search="true" data-style="btn-primary" data-dropup-auto="false" data-actions-box="true" multiple>
|
2020-12-27 19:12:27 +01:00
|
|
|
{% for serie in series %}
|
2021-03-07 03:54:39 +01:00
|
|
|
<option value="{{serie.id}}">{{serie.name}}</option>
|
2020-12-27 19:12:27 +01:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
<div><label for="exclude_serie">{{_('Exclude Series')}}</label></div>
|
2021-03-07 04:34:39 +01:00
|
|
|
<select class="selectpicker" name="exclude_serie" id="exclude_serie" data-live-search="true" data-style="btn-danger" data-dropup-auto="false" data-actions-box="true" multiple>
|
2020-12-27 19:12:27 +01:00
|
|
|
{% for serie in series %}
|
2021-03-07 03:54:39 +01:00
|
|
|
<option value="{{serie.id}}">{{serie.name}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
<div><label for="include_shelf">{{_('Shelves')}}</label></div>
|
2021-03-07 04:34:39 +01:00
|
|
|
<select class="selectpicker" name="include_shelf" id="include_shelf" data-live-search="true" data-style="btn-primary" data-dropup-auto="false" data-actions-box="true" multiple>
|
2021-03-07 03:54:39 +01:00
|
|
|
{% for shelf in shelves %}
|
|
|
|
<option value="{{shelf.id}}">{{shelf.name}}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
<div><label for="exclude_shelf">{{_('Exclude Shelves')}}</label></div>
|
2021-03-07 04:34:39 +01:00
|
|
|
<select class="selectpicker" name="exclude_shelf" id="exclude_shelf" data-live-search="true" data-style="btn-danger" data-dropup-auto="false" data-actions-box="true" multiple>
|
2021-03-07 03:54:39 +01:00
|
|
|
{% for shelf in shelves %}
|
|
|
|
<option value="{{shelf.id}}">{{shelf.name}}</option>
|
2020-12-27 19:12:27 +01:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2016-12-27 16:07:25 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-07 03:54:39 +01:00
|
|
|
|
2018-08-12 18:21:57 +02:00
|
|
|
{% if languages %}
|
2020-12-27 19:12:27 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
<div><label for="include_language">{{_('Languages')}}</label></div>
|
2021-03-07 04:34:39 +01:00
|
|
|
<select class="selectpicker" name="include_language" id="include_language" data-live-search="true" data-style="btn-primary" data-dropup-auto="false" data-actions-box="true" multiple>
|
2016-12-27 16:07:25 +01:00
|
|
|
{% for language in languages %}
|
2021-03-07 03:54:39 +01:00
|
|
|
<option value="{{language.id}}">{{language.name}}</option>
|
2016-12-27 16:07:25 +01:00
|
|
|
{% endfor %}
|
2020-12-27 19:12:27 +01:00
|
|
|
</select>
|
2016-12-27 16:07:25 +01:00
|
|
|
</div>
|
2020-12-27 19:12:27 +01:00
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
<div><label for="exclude_language">{{_('Exclude Languages')}}</label></div>
|
2021-03-07 04:34:39 +01:00
|
|
|
<select class="selectpicker" name="exclude_language" id="exclude_language" data-live-search="true" data-style="btn-danger" data-dropup-auto="false" data-actions-box="true" multiple>
|
2016-12-27 16:07:25 +01:00
|
|
|
{% for language in languages %}
|
2021-03-07 03:54:39 +01:00
|
|
|
<option value="{{language.id}}">{{language.name}}</option>
|
2016-12-27 16:07:25 +01:00
|
|
|
{% endfor %}
|
2020-12-27 19:12:27 +01:00
|
|
|
</select>
|
2016-12-27 16:07:25 +01:00
|
|
|
</div>
|
2020-12-27 19:12:27 +01:00
|
|
|
</div>
|
2018-08-12 18:21:57 +02:00
|
|
|
{% endif%}
|
2020-12-27 19:12:27 +01:00
|
|
|
<div class="row">
|
2021-03-07 03:54:39 +01:00
|
|
|
<div class="form-group col-sm-6">
|
2020-12-27 19:12:27 +01:00
|
|
|
<div><label for="include_extension">{{_('Extensions')}}</label></div>
|
2021-03-07 04:34:39 +01:00
|
|
|
<select class="selectpicker" name="include_extension" id="include_extension" data-live-search="true" data-style="btn-primary" data-dropup-auto="false" data-actions-box="true" multiple>
|
2021-03-07 03:54:39 +01:00
|
|
|
{% for extension in extensions %}
|
|
|
|
<option value="{{extension.format}}">{{extension.format}}</option>
|
2020-12-27 19:12:27 +01:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2021-03-07 03:54:39 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-6">
|
2020-12-27 19:12:27 +01:00
|
|
|
<div><label for="exclude_extension">{{_('Exclude Extensions')}}</label></div>
|
2021-03-07 04:34:39 +01:00
|
|
|
<select class="selectpicker" name="exclude_extension" id="exclude_extension" data-live-search="true" data-style="btn-danger" data-dropup-auto="false" data-actions-box="true" multiple>
|
2021-03-07 03:54:39 +01:00
|
|
|
{% for extension in extensions %}
|
|
|
|
<option value="{{extension.format}}">{{extension.format}}</option>
|
2020-12-27 19:12:27 +01:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
2021-03-07 03:54:39 +01:00
|
|
|
</div>
|
2019-12-15 11:35:07 +01:00
|
|
|
</div>
|
2018-08-12 18:21:57 +02:00
|
|
|
<div class="row">
|
2021-03-07 03:54:39 +01:00
|
|
|
<div class="form-group col-sm-6">
|
|
|
|
<label for="ratinghigh">{{_('Rating Above')}}</label>
|
|
|
|
<input type="number" name="ratinghigh" id="ratinghigh" class="rating input-lg" data-clearable="" >
|
|
|
|
</div>
|
2018-08-12 18:21:57 +02:00
|
|
|
<div class="form-group col-sm-6">
|
2020-02-03 04:22:00 +01:00
|
|
|
<label for="ratinglow">{{_('Rating Below')}}</label>
|
2018-08-12 18:21:57 +02:00
|
|
|
<input type="number" name="ratinglow" id="ratinglow" class="rating input-lg" data-clearable="" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="comment">{{_('Description')}}</label>
|
|
|
|
<input type="text" class="form-control" name="comment" id="comment" value="">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if cc|length > 0 %}
|
2021-03-07 03:54:39 +01:00
|
|
|
{% for c in cc %}
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="{{ 'custom_column_' ~ c.id }}">{{ c.name }}</label>
|
|
|
|
{% if c.datatype == 'bool' %}
|
|
|
|
<select name="{{ 'custom_column_' ~ c.id }}" id="{{ 'custom_column_' ~ c.id }}" class="form-control">
|
|
|
|
<option value="" selected></option>
|
|
|
|
<option value="True" >{{_('Yes')}}</option>
|
|
|
|
<option value="False" >{{_('No')}}</option>
|
|
|
|
</select>
|
|
|
|
{% endif %}
|
2018-08-12 18:21:57 +02:00
|
|
|
|
2021-03-07 03:54:39 +01:00
|
|
|
{% if c.datatype == 'int' %}
|
|
|
|
<input type="number" step="1" class="form-control" name="{{ 'custom_column_' ~ c.id }}" id="{{ 'custom_column_' ~ c.id }}" value="">
|
|
|
|
{% endif %}
|
2018-08-12 18:21:57 +02:00
|
|
|
|
2021-03-07 03:54:39 +01:00
|
|
|
{% if c.datatype == 'float' %}
|
|
|
|
<input type="number" step="0.01" class="form-control" name="{{ 'custom_column_' ~ c.id }}" id="{{ 'custom_column_' ~ c.id }}" value="">
|
|
|
|
{% endif %}
|
2020-05-17 16:10:10 +02:00
|
|
|
|
2021-05-13 13:31:36 +02:00
|
|
|
{% if c.datatype == 'datetime' %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-sm-6">
|
2021-05-14 19:58:06 +02:00
|
|
|
<label for="{{ 'custom_column_' ~ c.id }}">{{_('From:')}}</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<input type="text" style="position: static;" class="datepicker form-control" name="{{ 'custom_column_' ~ c.id }}_start" id="{{ 'custom_column_' ~ c.id }}_start" value="">
|
|
|
|
<input type="text" style="position: absolute;" class="form-control fake-input hidden" id="fake_{{ 'custom_column_' ~ c.id }}_start" value="">
|
|
|
|
<span class="input-group-btn">
|
2021-05-15 07:51:32 +02:00
|
|
|
<button type="button" id="{{ 'custom_column_' ~ c.id }}_start_delete" class="datepicker_delete btn btn-default"><span class="glyphicon glyphicon-remove-circle"></span></button>
|
2021-05-14 19:58:06 +02:00
|
|
|
</span>
|
2021-05-13 13:31:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-sm-6">
|
2021-05-14 19:58:06 +02:00
|
|
|
<label for="{{ 'custom_column_' ~ c.id }}">{{_('To:')}}</label>
|
|
|
|
<div class="input-group ">
|
|
|
|
<input type="text" style="position: static;" class="datepicker form-control" name="{{ 'custom_column_' ~ c.id }}_end" id="{{ 'custom_column_' ~ c.id }}_end" value="">
|
|
|
|
<input type="text" style="position: absolute;" class="form-control fake-input hidden" id="fake_{{ 'custom_column_' ~ c.id }}_end" value="">
|
|
|
|
<span class="input-group-btn">
|
2021-05-15 07:51:32 +02:00
|
|
|
<button type="button" id="{{ 'custom_column_' ~ c.id }}_end_delete" class="datepicker_delete btn btn-default"><span class="glyphicon glyphicon-remove-circle"></span></button>
|
2021-05-14 19:58:06 +02:00
|
|
|
</span>
|
2021-05-13 13:31:36 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-05-13 14:00:01 +02:00
|
|
|
{% if c.datatype in ['text', 'series', 'comments'] and not c.is_multiple %}
|
2021-03-07 03:54:39 +01:00
|
|
|
<input type="text" class="form-control" name="{{ 'custom_column_' ~ c.id }}" id="{{ 'custom_column_' ~ c.id }}" value="">
|
|
|
|
{% endif %}
|
2018-08-12 18:21:57 +02:00
|
|
|
|
2021-03-07 03:54:39 +01:00
|
|
|
{% if c.datatype in ['text', 'series'] and c.is_multiple %}
|
|
|
|
<input type="text" class="form-control" name="{{ 'custom_column_' ~ c.id }}" id="{{ 'custom_column_' ~ c.id }}" value="">
|
|
|
|
{% endif %}
|
2018-08-12 18:21:57 +02:00
|
|
|
|
2021-03-07 03:54:39 +01:00
|
|
|
{% if c.datatype == 'enumeration' %}
|
|
|
|
<select class="form-control" name="{{ 'custom_column_' ~ c.id }}" id="{{ 'custom_column_' ~ c.id }}">
|
|
|
|
<option></option>
|
|
|
|
{% for opt in c.get_display_dict().enum_values %}
|
|
|
|
<option>{{ opt }}</option>
|
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
{% endif %}
|
2018-08-12 18:21:57 +02:00
|
|
|
|
2021-03-07 03:54:39 +01:00
|
|
|
{% if c.datatype == 'rating' %}
|
|
|
|
<input type="number" min="1" max="5" step="0.5" class="form-control" name="{{ 'custom_column_' ~ c.id }}" id="{{ 'custom_column_' ~ c.id }}">
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2018-08-12 18:21:57 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2020-02-23 13:27:36 +01:00
|
|
|
<button type="submit" id="adv_submit" class="btn btn-default">{{_('Search')}}</button>
|
2016-05-02 23:25:21 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block js %}
|
2018-04-01 19:31:41 +02:00
|
|
|
<script>
|
|
|
|
var language = '{{ g.user.locale }}';
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
|
|
|
|
{% if not g.user.locale == 'en' %}
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-datepicker/locales/bootstrap-datepicker.' + g.user.locale + '.min.js') }}" charset="UTF-8"></script>
|
|
|
|
{% endif %}
|
2018-08-12 18:21:57 +02:00
|
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-rating-input.min.js') }}"></script>
|
2017-02-07 19:11:18 +01:00
|
|
|
<script src="{{ url_for('static', filename='js/libs/typeahead.bundle.js') }}"></script>
|
2016-05-02 23:25:21 +02:00
|
|
|
<script src="{{ url_for('static', filename='js/edit_books.js') }}"></script>
|
2020-12-27 19:12:27 +01:00
|
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-select.min.js')}}"></script>
|
|
|
|
{% if not g.user.locale == 'en' %}
|
|
|
|
<script src="{{ url_for('static', filename='js/libs/bootstrap-select/defaults-' + g.user.locale + '.min.js') }}" charset="UTF-8"></script>
|
|
|
|
{% endif %}
|
2016-05-02 23:25:21 +02:00
|
|
|
{% endblock %}
|
|
|
|
{% block header %}
|
2017-02-07 19:11:18 +01:00
|
|
|
<link href="{{ url_for('static', filename='css/libs/typeahead.css') }}" rel="stylesheet" media="screen">
|
2018-04-01 19:31:41 +02:00
|
|
|
<link href="{{ url_for('static', filename='css/libs/bootstrap-datepicker3.min.css') }}" rel="stylesheet" media="screen">
|
2020-12-27 19:12:27 +01:00
|
|
|
<link href="{{ url_for('static', filename='css/libs/bootstrap-select.min.css') }}" rel="stylesheet" >
|
2016-05-02 23:25:21 +02:00
|
|
|
{% endblock %}
|