]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig
Add isPublic filter on entries
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / material / Entry / entries.html.twig
1 {% extends "WallabagCoreBundle::layout.html.twig" %}
2
3 {% block title %}
4 {% set filter = '' %}
5 {% if tag is defined %}
6 {% set filter = tag %}
7 {% endif %}
8 {% if searchTerm is defined and searchTerm is not empty %}
9 {% set filter = searchTerm %}
10 {% endif %}
11 {% include "@WallabagCore/themes/common/Entry/_title.html.twig" with {'filter': filter} %}
12 {% endblock %}
13
14 {% block content %}
15 {% set listMode = app.user.config.listMode %}
16 <div class="results clearfix">
17 <div class="nb-results left">
18 {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
19 <a href="{{ path('switch_view_mode') }}"><i class="material-icons">{% if listMode == 0 %}view_list{% else %}view_module{% endif %}</i></a>
20 </div>
21 {% if entries.getNbPages > 1 %}
22 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
23 {% endif %}
24 </div>
25
26 <br />
27 <ul class="{% if listMode == 1 %}collection{% else %}row data{% endif %}">
28 {% for entry in entries %}
29 <li id="entry-{{ entry.id|e }}" class="col {% if listMode == 0 %}l3 m6{% else %}collection-item{% endif %} s12">
30 {% if listMode == 1 %}
31 {% include "@WallabagCore/themes/material/Entry/_card_list.html.twig" with {'entry': entry} only %}
32 {% elseif entry.previewPicture is null %}
33 {% include "@WallabagCore/themes/material/Entry/_card_no_preview.html.twig" with {'entry': entry} only %}
34 {% elseif not entry.previewPicture is null and entry.mimetype starts with 'image/' %}
35 {% include "@WallabagCore/themes/material/Entry/_card_full_image.html.twig" with {'entry': entry} only %}
36 {% elseif not entry.previewPicture is null %}
37 {% include "@WallabagCore/themes/material/Entry/_card_preview.html.twig" with {'entry': entry} only %}
38 {% endif %}
39 </li>
40 {% endfor %}
41 </ul>
42
43 {% if entries.getNbPages > 1 %}
44 {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
45 {% endif %}
46
47 <!-- Export -->
48 <div id="export" class="side-nav right-aligned">
49 {% set currentRoute = app.request.attributes.get('_route') %}
50 {% set currentTag = '' %}
51 {% if tag is defined %}
52 {% set currentTag = tag %}
53 {% endif %}
54 {% if currentRoute == 'homepage' %}
55 {% set currentRoute = 'unread' %}
56 {% endif %}
57 <h4 class="center">{{ 'entry.list.export_title'|trans }}</h4>
58 <ul>
59 {% if craue_setting('export_epub') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'epub', 'tag' : currentTag }) }}">EPUB</a></li>{% endif %}
60 {% if craue_setting('export_mobi') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'mobi', 'tag' : currentTag }) }}">MOBI</a></li>{% endif %}
61 {% if craue_setting('export_pdf') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'pdf', 'tag' : currentTag }) }}">PDF</a></li>{% endif %}
62 {% if craue_setting('export_csv') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'json', 'tag' : currentTag }) }}">JSON</a></li>{% endif %}
63 {% if craue_setting('export_json') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'csv', 'tag' : currentTag }) }}">CSV</a></li>{% endif %}
64 {% if craue_setting('export_txt') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'txt', 'tag' : currentTag }) }}">TXT</a></li>{% endif %}
65 {% if craue_setting('export_xml') %}<li class="bold"><a class="waves-effect" href="{{ path('export_entries', { 'category': currentRoute, 'format': 'xml', 'tag' : currentTag }) }}">XML</a></li>{% endif %}
66 </ul>
67 </div>
68
69 <!-- Filters -->
70 {% if form is not null %}
71 <div id="filters" class="side-nav right-aligned">
72 <form action="{{ path('all') }}">
73
74 <h4 class="center">{{ 'entry.filters.title'|trans }}</h4>
75
76 <div class="row">
77 <div class="col s12">
78 <label>{{ 'entry.filters.status_label'|trans }}</label>
79 </div>
80
81 <div class="input-field col s6 with-checkbox">
82 {{ form_widget(form.isArchived) }}
83 {{ form_label(form.isArchived) }}
84 </div>
85
86 <div class="input-field col s6 with-checkbox">
87 {{ form_widget(form.isStarred) }}
88 {{ form_label(form.isStarred) }}
89 </div>
90
91 <div class="input-field col s6 with-checkbox">
92 {{ form_widget(form.isUnread) }}
93 {{ form_label(form.isUnread) }}
94 </div>
95
96 <div class="col s12">
97 <label>{{ 'entry.filters.preview_picture_help'|trans }}</label>
98 </div>
99
100 <div class="input-field col s12 with-checkbox">
101 {{ form_widget(form.previewPicture) }}
102 {{ form_label(form.previewPicture) }}
103 </div>
104
105 <div class="col s12">
106 <label>{{ 'entry.filters.is_public_help'|trans }}</label>
107 </div>
108
109 <div class="input-field col s12 with-checkbox">
110 {{ form_widget(form.isPublic) }}
111 {{ form_label(form.isPublic) }}
112 </div>
113
114 <div class="col s12">
115 {{ form_label(form.language) }}
116 </div>
117
118 <div class="input-field col s12">
119 {{ form_widget(form.language) }}
120 </div>
121
122 <div class="col s12">
123 {{ form_label(form.httpStatus) }}
124 </div>
125
126 <div class="input-field col s12">
127 {{ form_widget(form.httpStatus) }}
128 </div>
129
130 <div class="col s12">
131 {{ form_label(form.readingTime) }}
132 </div>
133
134 <div class="input-field col s6">
135 {{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
136 <label for="entry_filter_readingTime_left_number">{{ 'entry.filters.reading_time.from'|trans }}</label>
137 </div>
138
139 <div class="input-field col s6">
140 {{ form_widget(form.readingTime.right_number, {'type': 'number'}) }}
141 <label for="entry_filter_readingTime_right_number">{{ 'entry.filters.reading_time.to'|trans }}</label>
142 </div>
143
144 <div class="input-field col s12">
145 {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }}
146 {{ form_label(form.domainName) }}
147 </div>
148
149 <div class="col s12">
150 {{ form_label(form.createdAt) }}
151 </div>
152
153 <div class="input-field col s6">
154 {{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.left_date.vars.value} }) }}
155 <label for="entry_filter_createdAt_left_date" class="active">{{ 'entry.filters.created_at.from'|trans }}</label>
156 </div>
157 <div class="input-field col s6">
158 {{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'class': 'datepicker', 'data-value': form.createdAt.right_date.vars.value} }) }}
159 <label for="entry_filter_createdAt_right_date" class="active">{{ 'entry.filters.created_at.to'|trans }}</label>
160 </div>
161
162 <div class="col s6">
163 <a href="#!" class="center waves-effect waves-green btn-flat" id="clear_form_filters">{{ 'entry.filters.action.clear'|trans }}</a>
164 </div>
165
166 <div class="col s6">
167 <button class="btn waves-effect waves-light" type="submit" id="submit-filter" value="filter">{{ 'entry.filters.action.filter'|trans }}</button>
168 </div>
169 </div>
170
171 </form>
172 </div>
173 {% endif %}
174
175 {% endblock %}