aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2018-01-12 23:10:21 +0100
committerGitHub <noreply@github.com>2018-01-12 23:10:21 +0100
commitfd637b9a5af28d432f775297ff19ba3f779d55b2 (patch)
treedc8fc13c8b09019cf0b5ac00f05a0f4a9656e5d0 /src/Wallabag
parent99e8c2785b9fc0cd9cc8674cb297a13a1035238f (diff)
parent5614df19cf3ed2be9d56853e5441412d4d09cff4 (diff)
downloadwallabag-fd637b9a5af28d432f775297ff19ba3f779d55b2.tar.gz
wallabag-fd637b9a5af28d432f775297ff19ba3f779d55b2.tar.zst
wallabag-fd637b9a5af28d432f775297ff19ba3f779d55b2.zip
Merge pull request #3541 from Simounet/feature/nav-label-replaced-by-buttons
Nav actions updated
Diffstat (limited to 'src/Wallabag')
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entry.html.twig2
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/new_form.html.twig4
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/search_form.html.twig4
-rw-r--r--src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig72
4 files changed, 40 insertions, 42 deletions
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 54066e95..8abf90c1 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
@@ -9,7 +9,7 @@
9 <div class="determinate"></div> 9 <div class="determinate"></div>
10 </div> 10 </div>
11 <nav class="hide-on-large-only"> 11 <nav class="hide-on-large-only">
12 <div class="nav-wrapper cyan darken-1"> 12 <div class="nav-panel-item cyan darken-1">
13 <ul> 13 <ul>
14 <li> 14 <li>
15 <a href="#" data-activates="slide-out" class="button-collapse"> 15 <a href="#" data-activates="slide-out" class="button-collapse">
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/new_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/new_form.html.twig
index 0cf4fb74..e0d5e794 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/new_form.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/new_form.html.twig
@@ -1,13 +1,15 @@
1<form name="entry" method="post" action="{{ path('new_entry')}}"> 1<form class="input-field nav-panel-item nav-panel-add" style="display: none" name="entry" method="post" action="{{ path('new_entry')}}">
2 {% if form_errors(form) %} 2 {% if form_errors(form) %}
3 <span class="black-text">{{ form_errors(form) }}</span> 3 <span class="black-text">{{ form_errors(form) }}</span>
4 {% endif %} 4 {% endif %}
5 <button type="submit" class="nav-form-button"><i class="material-icons add">add</i></button>
5 6
6 {% if form_errors(form.url) %} 7 {% if form_errors(form.url) %}
7 <span class="black-text">{{ form_errors(form.url) }}</span> 8 <span class="black-text">{{ form_errors(form.url) }}</span>
8 {% endif %} 9 {% endif %}
9 10
10 {{ form_widget(form.url, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.new.placeholder'} }) }} 11 {{ form_widget(form.url, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.new.placeholder'} }) }}
12 <i class="material-icons close">clear</i>
11 13
12 {{ form_rest(form) }} 14 {{ form_rest(form) }}
13</form> 15</form>
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/search_form.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/search_form.html.twig
index f25de94d..ba1b3aac 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/search_form.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/search_form.html.twig
@@ -1,7 +1,8 @@
1<form name="search" method="GET" action="{{ path('search')}}"> 1<form class="input-field nav-panel-item nav-panel-search" style="display: none" name="search" method="GET" action="{{ path('search')}}">
2 {% if form_errors(form) %} 2 {% if form_errors(form) %}
3 <span class="black-text">{{ form_errors(form) }}</span> 3 <span class="black-text">{{ form_errors(form) }}</span>
4 {% endif %} 4 {% endif %}
5 <button type="submit" class="nav-form-button"><i class="material-icons search">search</i></button>
5 6
6 {% if form_errors(form.term) %} 7 {% if form_errors(form.term) %}
7 <span class="black-text">{{ form_errors(form.term) }}</span> 8 <span class="black-text">{{ form_errors(form.term) }}</span>
@@ -10,6 +11,7 @@
10 <input type="hidden" name="currentRoute" value="{{ currentRoute }}" /> 11 <input type="hidden" name="currentRoute" value="{{ currentRoute }}" />
11 12
12 {{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }} 13 {{ form_widget(form.term, { 'attr': {'autocomplete': 'off', 'placeholder': 'entry.search.placeholder'} }) }}
14 <i class="material-icons close">clear</i>
13 15
14 {{ form_rest(form) }} 16 {{ form_rest(form) }}
15</form> 17</form>
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
index 5c916a8d..6472d182 100644
--- a/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
+++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/layout.html.twig
@@ -93,46 +93,40 @@
93 <a class="waves-effect icon icon-power" href="{{ path('fos_user_security_logout') }}">{{ 'menu.left.logout'|trans }}</a> 93 <a class="waves-effect icon icon-power" href="{{ path('fos_user_security_logout') }}">{{ 'menu.left.logout'|trans }}</a>
94 </li> 94 </li>
95 </ul> 95 </ul>
96 <div class="nav-wrapper nav-panels"> 96 <div class="nav-panels">
97 <div class="nav-panel-top"> 97 <div class="nav-panel-actions nav-panel-item">
98 <button data-activates="slide-out" class="nav-panel-menu button-collapse"><i class="material-icons">menu</i></button> 98 <div class="nav-panel-top">
99 <h1 class="left action"> 99 <button data-activates="slide-out" class="nav-panel-menu button-collapse"><i class="material-icons">menu</i></button>
100 {% block title %} 100 <h1 class="left action">
101 {% endblock %} 101 {% block title %}
102 </h1> 102 {% endblock %}
103 </div> 103 </h1>
104 <ul class="input-field nav-panel-buttom"> 104 </div>
105 <li class="bold"> 105 <ul class="input-field nav-panel-buttom">
106 <a class="waves-effect tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.add_new_entry'|trans }}" href="{{ path('new') }}" id="nav-btn-add"> 106 <li class="bold">
107 <i class="material-icons">add</i> 107 <a class="waves-effect tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.add_new_entry'|trans }}" href="{{ path('new') }}" id="nav-btn-add">
108 </a> 108 <i class="material-icons">add</i>
109 </li> 109 </a>
110 <li> 110 </li>
111 <a class="waves-effect tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.search'|trans }}" href="javascript: void(null);" id="nav-btn-search"> 111 <li>
112 <i class="material-icons">search</i> 112 <a class="waves-effect tooltipped" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.search'|trans }}" href="javascript: void(null);" id="nav-btn-search">
113 </a> 113 <i class="material-icons">search</i>
114 </li> 114 </a>
115 <li id="button_filters"> 115 </li>
116 <a class="nav-panel-menu button-collapse-right tooltipped js-filters-action" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="filters"> 116 <li id="button_filters">
117 <i class="material-icons">filter_list</i> 117 <a class="nav-panel-menu button-collapse-right tooltipped js-filters-action" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="filters">
118 </a> 118 <i class="material-icons">filter_list</i>
119 </li> 119 </a>
120 <li id="button_export"> 120 </li>
121 <a class="nav-panel-menu button-collapse-right tooltipped js-export-action" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.export'|trans }}" href="#" data-activates="export"> 121 <li id="button_export">
122 <i class="material-icons">file_download</i> 122 <a class="nav-panel-menu button-collapse-right tooltipped js-export-action" data-position="bottom" data-delay="50" data-tooltip="{{ 'menu.top.export'|trans }}" href="#" data-activates="export">
123 </a> 123 <i class="material-icons">file_download</i>
124 </li> 124 </a>
125 </ul> 125 </li>
126 <div class="input-field nav-panel-search" style="display: none"> 126 </ul>
127 {{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }}
128 <label for="search"><i class="material-icons search">search</i></label>
129 <i class="material-icons close">clear</i>
130 </div>
131 <div class="input-field nav-panel-add" style="display: none">
132 {{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }}
133 <label for="add"><i class="material-icons add">add</i></label>
134 <i class="material-icons close">clear</i>
135 </div> 127 </div>
128 {{ render(controller("WallabagCoreBundle:Entry:searchForm", {'currentRoute': app.request.attributes.get('_route')})) }}
129 {{ render(controller("WallabagCoreBundle:Entry:addEntryForm")) }}
136 </div> 130 </div>
137 </nav> 131 </nav>
138{% endblock %} 132{% endblock %}