mirror of
https://github.com/wallabag/wallabag.git
synced 2025-01-22 22:58:08 +00:00
GUI for filter by creation date #1343
This commit is contained in:
parent
6fd3d82c01
commit
790d18a319
2 changed files with 19 additions and 2 deletions
|
@ -74,17 +74,27 @@
|
|||
<div class="col s12">
|
||||
<label>{% trans %}Reading time in minutes{% endtrans %}</label>
|
||||
</div>
|
||||
|
||||
<div class="input-field col s6">
|
||||
{{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
|
||||
<label for="entry_filter_readingTime_left_number">{% trans %}from{% endtrans %}</label>
|
||||
</div>
|
||||
|
||||
<div class="input-field col s6">
|
||||
{{ form_widget(form.readingTime.right_number, {'type': 'number'}) }}
|
||||
<label for="entry_filter_readingTime_right_number">{% trans %}to{% endtrans %}</label>
|
||||
</div>
|
||||
|
||||
<div class="col s12">
|
||||
<label>{% trans %}Create at{% endtrans %}</label>
|
||||
</div>
|
||||
<div class="input-field col s6">
|
||||
{{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }}
|
||||
<label for="entry_filter_createdAt_left_date" class="active">{% trans %}from{% endtrans %}</label>
|
||||
</div>
|
||||
<div class="input-field col s6">
|
||||
{{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }}
|
||||
<label for="entry_filter_createdAt_right_date" class="active">{% trans %}to{% endtrans %}</label>
|
||||
</div>
|
||||
|
||||
<div class="col s6">
|
||||
<a href="#!" class="center waves-effect waves-green btn-flat" id="clean_form_filters">{% trans %}Clean{% endtrans %}</a>
|
||||
</div>
|
||||
|
|
|
@ -17,6 +17,13 @@ $(document).ready(function(){
|
|||
$('.collapsible').collapsible({
|
||||
accordion : false
|
||||
});
|
||||
$('.datepicker').pickadate({
|
||||
selectMonths: true,
|
||||
selectYears: 15,
|
||||
formatSubmit: 'dd/mm/yyyy',
|
||||
hiddenName: true,
|
||||
format: 'dd/mm/yyyy',
|
||||
});
|
||||
init_filters();
|
||||
|
||||
$('#nav-btn-add').on('click', function(){
|
||||
|
|
Loading…
Reference in a new issue