mirror of
https://github.com/janeczku/calibre-web
synced 2024-08-23 18:16:48 +00:00
119 lines
5.4 KiB
HTML
119 lines
5.4 KiB
HTML
{% extends "layout.html" %}
|
|
{% block body %}
|
|
<div class="col-sm-8">
|
|
<form role="form" id="search" action="{{ url_for('advanced_search') }}" method="GET">
|
|
<div class="form-group">
|
|
<label for="book_title">{{_('Book Title')}}</label>
|
|
<input type="text" class="form-control" name="book_title" id="book_title" value="">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="bookAuthor">{{_('Author')}}</label>
|
|
<input type="text" class="form-control typeahead" name="author_name" id="bookAuthor" value="" autocomplete="off">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="Publisher">{{_('Publisher')}}</label>
|
|
<input type="text" class="form-control" name="publisher" id="publisher" value="">
|
|
</div>
|
|
<!--div class="form-group"-->
|
|
<div class="row">
|
|
<div class="form-group col-sm-6">
|
|
<label for="Publishstart">{{_('Publishing date from')}}</label>
|
|
<div style="position: relative">
|
|
<input type="date" class="form-control" name="Publishstart" id="Publishstart" value="">
|
|
<input type="text" class="form-control fake-input hidden" id="fake_Publishstart" value="">
|
|
</div>
|
|
</div>
|
|
<div class="form-group col-sm-6">
|
|
<label for="Publishend">{{_('Publishing date to')}}</label>
|
|
<div style="position: relative">
|
|
<input type="date" class="form-control" name="Publishend" id="Publishend" value="">
|
|
<input type="text" class="form-control fake-input hidden" id="fake_Publishend" value="">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<label for="include_tag">{{_('Tags')}}</label>
|
|
<div class="form-group" id="test">
|
|
<div class="btn-toolbar btn-toolbar-lg" data-toggle="buttons">
|
|
{% for tag in tags %}
|
|
<label id="tag_{{tag.id}}" class="btn btn-primary tags_click">
|
|
<input type="checkbox" autocomplete="off" name="include_tag" id="include_tag" value="{{tag.id}}">{{tag.name}}</input>
|
|
</label>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<label for="exclude_tag">{{_('Exclude Tags')}}</label>
|
|
<div class="form-group">
|
|
<div class="btn-toolbar btn-toolbar-lg" data-toggle="buttons">
|
|
{% for tag in tags %}
|
|
<label id="exclude_tag_{{tag.id}}" class="btn btn-danger tags_click">
|
|
<input type="checkbox" autocomplete="off" name="exclude_tag" id="exclude_tag" value="{{tag.id}}">{{tag.name}}</input>
|
|
</label>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<label for="include_serie">{{_('Series')}}</label>
|
|
<div class="form-group">
|
|
<div class="btn-toolbar btn-toolbar-lg" data-toggle="buttons">
|
|
{% for serie in series %}
|
|
<label id="serie_{{serie.id}}" class="btn btn-primary serie_click">
|
|
<input type="checkbox" autocomplete="off" name="include_serie" id="include_serie" value="{{serie.id}}">{{serie.name}}</input>
|
|
</label>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<label for="exclude_serie">{{_('Exclude Series')}}</label>
|
|
<div class="form-group">
|
|
<div class="btn-toolbar btn-toolbar-lg" data-toggle="buttons">
|
|
{% for serie in series %}
|
|
<label id="exclude_serie_{{serie.id}}" class="btn btn-danger serie_click">
|
|
<input type="checkbox" autocomplete="off" name="exclude_serie" id="exclude_serie" value="{{serie.id}}">{{serie.name}}</input>
|
|
</label>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% if languages %}
|
|
<label for="include_language">{{_('Languages')}}</label>
|
|
<div class="form-group">
|
|
<div class="btn-toolbar btn-toolbar-lg" data-toggle="buttons">
|
|
{% for language in languages %}
|
|
<label id="language_{{language.id}}" class="btn btn-primary serie_click">
|
|
<input type="checkbox" autocomplete="off" name="include_language" id="include_language" value="{{language.id}}">{{language.name}}</input>
|
|
</label>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<label for="exclude_language">{{_('Exclude Languages')}}</label>
|
|
<div class="form-group">
|
|
<div class="btn-toolbar btn-toolbar-lg" data-toggle="buttons">
|
|
{% for language in languages %}
|
|
<label id="exclude_language_{{language.id}}" class="btn btn-danger language_click">
|
|
<input type="checkbox" autocomplete="off" name="exclude_language" id="exclude_language" value="{{language.id}}">{{language.name}}</input>
|
|
</label>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif%}
|
|
<button type="submit" class="btn btn-default">{{_('Submit')}}</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
<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 %}
|
|
<script src="{{ url_for('static', filename='js/libs/typeahead.bundle.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/edit_books.js') }}"></script>
|
|
<script>
|
|
</script>
|
|
{% endblock %}
|
|
{% block header %}
|
|
<link href="{{ url_for('static', filename='css/libs/typeahead.css') }}" rel="stylesheet" media="screen">
|
|
<link href="{{ url_for('static', filename='css/libs/bootstrap-datepicker3.min.css') }}" rel="stylesheet" media="screen">
|
|
{% endblock %}
|