diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes')
3 files changed, 21 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_mass_checkbox.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_mass_checkbox.html.twig new file mode 100644 index 00000000..d35d8db1 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/Card/_mass_checkbox.html.twig | |||
@@ -0,0 +1,3 @@ | |||
1 | <div class="entry-checkbox"> | ||
2 | <input type="checkbox" data-js="entry-checkbox" name="entry-checkbox[]" value="{{ entry.id }}" /> | ||
3 | </div> | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig index 6a095035..cb2f6f74 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_card_list.html.twig | |||
@@ -1,4 +1,5 @@ | |||
1 | <div class="card-stacked"> | 1 | <div class="card-stacked"> |
2 | {% include "@WallabagCore/themes/material/Entry/Card/_mass_checkbox.html.twig" with {'entry': entry} only %} | ||
2 | <div class="card-preview"> | 3 | <div class="card-preview"> |
3 | <a href="{{ path('view', { 'id': entry.id }) }}"> | 4 | <a href="{{ path('view', { 'id': entry.id }) }}"> |
4 | {% set previewClassModifier = entry.previewPicture ? '' : ' preview--default' %} | 5 | {% set previewClassModifier = entry.previewPicture ? '' : ' preview--default' %} |
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index 0cd00cfd..f7912b1c 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig | |||
@@ -24,6 +24,7 @@ | |||
24 | {% if currentRoute == 'homepage' %} | 24 | {% if currentRoute == 'homepage' %} |
25 | {% set currentRoute = 'unread' %} | 25 | {% set currentRoute = 'unread' %} |
26 | {% endif %} | 26 | {% endif %} |
27 | <form name="form_mass_action" action="{{ path('mass_action') }}" method="post"> | ||
27 | <div class="results"> | 28 | <div class="results"> |
28 | <div class="nb-results"> | 29 | <div class="nb-results"> |
29 | {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} | 30 | {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} |
@@ -38,6 +39,21 @@ | |||
38 | </div> | 39 | </div> |
39 | 40 | ||
40 | <ul class="{% if listMode == 1 %}collection{% else %}row data{% endif %}"> | 41 | <ul class="{% if listMode == 1 %}collection{% else %}row data{% endif %}"> |
42 | |||
43 | <li class="mass-buttons"> | ||
44 | {% if entries.count > 0 and listMode == 1 %} | ||
45 | <span> | ||
46 | <input id="selectAll" type="checkbox" data-toggle="[data-js='entry-checkbox']" data-js="checkboxes-toggle" /> | ||
47 | </span> | ||
48 | |||
49 | <span> | ||
50 | <button class="btn cyan darken-1" type="submit" name="toggle-read" title="{{ 'entry.list.toogle_as_read'|trans }}"><i class="material-icons">done</i></button> | ||
51 | <button class="btn cyan darken-1" type="submit" name="toggle-star" title="{{ 'entry.list.toogle_as_star'|trans }}" ><i class="material-icons">star</i></button> | ||
52 | <button class="btn cyan darken-1" type="submit" name="delete" title="{{ 'entry.list.delete'|trans }}"><i class="material-icons">delete</i></button> | ||
53 | </span> | ||
54 | {% endif %} | ||
55 | </li> | ||
56 | |||
41 | {% for entry in entries %} | 57 | {% for entry in entries %} |
42 | <li id="entry-{{ entry.id|e }}" class="entry col {% if listMode == 0 %}l3 m6{% else %}collection-item{% endif %} s12"> | 58 | <li id="entry-{{ entry.id|e }}" class="entry col {% if listMode == 0 %}l3 m6{% else %}collection-item{% endif %} s12"> |
43 | {% if listMode == 1 %} | 59 | {% if listMode == 1 %} |
@@ -50,6 +66,7 @@ | |||
50 | </li> | 66 | </li> |
51 | {% endfor %} | 67 | {% endfor %} |
52 | </ul> | 68 | </ul> |
69 | </form> | ||
53 | 70 | ||
54 | {% if entries.getNbPages > 1 %} | 71 | {% if entries.getNbPages > 1 %} |
55 | <div class="results"> | 72 | <div class="results"> |