diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Config')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig index 19faddc0..f69d158f 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | |||
@@ -71,6 +71,18 @@ | |||
71 | </div> | 71 | </div> |
72 | </div> | 72 | </div> |
73 | 73 | ||
74 | <div class="row"> | ||
75 | <div class="input-field col s12"> | ||
76 | <h5>{{ 'config.form_settings.android_configuration'|trans }}</h5> | ||
77 | <a href="wallabag://{{ app.user.username }}@{{ wallabag_url }}" class="waves-effect waves-light btn hide-on-large-only">Touch here to prefill your Android application</a> | ||
78 | <img id="androidQrcode" class="hide-on-med-and-down" /> | ||
79 | </div> | ||
80 | <script> | ||
81 | const imgBase64 = jrQrcode.getQrBase64('wallabag://{{ app.user.username }}@{{ wallabag_url }}'); | ||
82 | document.getElementById('androidQrcode').src = imgBase64; | ||
83 | </script> | ||
84 | </div> | ||
85 | |||
74 | {{ form_widget(form.config.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | 86 | {{ form_widget(form.config.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} |
75 | {{ form_rest(form.config) }} | 87 | {{ form_rest(form.config) }} |
76 | </form> | 88 | </form> |
@@ -167,6 +179,34 @@ | |||
167 | {{ form_widget(form.user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | 179 | {{ form_widget(form.user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} |
168 | {{ form_widget(form.user._token) }} | 180 | {{ form_widget(form.user._token) }} |
169 | </form> | 181 | </form> |
182 | |||
183 | <br /><hr /><br /> | ||
184 | |||
185 | <div class="row"> | ||
186 | <h5>{{ 'config.reset.title'|trans }}</h5> | ||
187 | <p>{{ 'config.reset.description'|trans }}</p> | ||
188 | <a href="{{ path('config_reset', { type: 'annotations'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red"> | ||
189 | {{ 'config.reset.annotations'|trans }} | ||
190 | </a> | ||
191 | <a href="{{ path('config_reset', { type: 'tags'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red"> | ||
192 | {{ 'config.reset.tags'|trans }} | ||
193 | </a> | ||
194 | <a href="{{ path('config_reset', { type: 'entries'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red"> | ||
195 | {{ 'config.reset.entries'|trans }} | ||
196 | </a> | ||
197 | </div> | ||
198 | |||
199 | {% if enabled_users > 1 %} | ||
200 | <br /><hr /><br /> | ||
201 | |||
202 | <div class="row"> | ||
203 | <h5>{{ 'config.form_user.delete.title'|trans }}</h5> | ||
204 | <p>{{ 'config.form_user.delete.description'|trans }}</p> | ||
205 | <a href="{{ path('delete_account') }}" onclick="return confirm('{{ 'config.form_user.delete.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red delete-account"> | ||
206 | {{ 'config.form_user.delete.button'|trans }} | ||
207 | </a> | ||
208 | </div> | ||
209 | {% endif %} | ||
170 | </div> | 210 | </div> |
171 | 211 | ||
172 | <div id="set4" class="col s12"> | 212 | <div id="set4" class="col s12"> |