diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_share_groups.html.twig | 24 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig | 11 |
2 files changed, 35 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_share_groups.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_share_groups.html.twig new file mode 100644 index 00000000..5c81ccc2 --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/_share_groups.html.twig | |||
@@ -0,0 +1,24 @@ | |||
1 | <!-- Groups Modal --> | ||
2 | <div id="groups-modal" class="modal bottom-sheet"> | ||
3 | <div class="modal-content"> | ||
4 | <div class="row"> | ||
5 | <h4>Groups</h4> | ||
6 | <p>Select the groups you want to share this article with</p> | ||
7 | <form name="search" method="POST" action="{{ path('group-shares-entry', {'entry': entry.id})}}"> | ||
8 | {% if form_errors(form) %} | ||
9 | <span class="black-text">{{ form_errors(form) }}</span> | ||
10 | {% endif %} | ||
11 | |||
12 | {% if form_errors(form.groupshares) %} | ||
13 | <span class="black-text">{{ form_errors(form.groupshares) }}</span> | ||
14 | {% endif %} | ||
15 | |||
16 | {{ form_widget(form.groupshares) }} | ||
17 | {{ form_widget(form.save, {'attr': {'class': 'modal-action modal-close waves-effect waves-light btn'}}) }} | ||
18 | |||
19 | {{ form_rest(form) }} | ||
20 | </form> | ||
21 | |||
22 | </div> | ||
23 | </div> | ||
24 | </div> | ||
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig index 4cff7bf2..05f51aa8 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig | |||
@@ -170,6 +170,15 @@ | |||
170 | </div> | 170 | </div> |
171 | </li> | 171 | </li> |
172 | 172 | ||
173 | {#{% if craue_setting('groups') %}#} | ||
174 | <li class="bold border-bottom hide-on-med-and-down"> | ||
175 | <a class="waves-effect groups-button" onclick="$('#groups-modal').openModal();" title="{{ 'entry.view.left_menu.group'|trans }}"> | ||
176 | <i class="material-icons small">group</i> | ||
177 | <span>{{ 'entry.view.left_menu.groups'|trans }}</span> | ||
178 | </a> | ||
179 | </li> | ||
180 | {#{% endif %}#} | ||
181 | |||
173 | {% if craue_setting('show_printlink') %} | 182 | {% if craue_setting('show_printlink') %} |
174 | <li class="bold border-bottom hide-on-med-and-down"> | 183 | <li class="bold border-bottom hide-on-med-and-down"> |
175 | <a class="waves-effect collapsible-header" title="{{ 'entry.view.left_menu.print'|trans }}" href="javascript: window.print();"> | 184 | <a class="waves-effect collapsible-header" title="{{ 'entry.view.left_menu.print'|trans }}" href="javascript: window.print();"> |
@@ -287,6 +296,8 @@ | |||
287 | </div> | 296 | </div> |
288 | </div> | 297 | </div> |
289 | 298 | ||
299 | {{ render(controller( "WallabagCoreBundle:Entry:GroupShare", { 'entry': entry.id } )) }} | ||
300 | |||
290 | <script id="annotationroutes" type="application/json"> | 301 | <script id="annotationroutes" type="application/json"> |
291 | { | 302 | { |
292 | "prefix": "", | 303 | "prefix": "", |