diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig index ff7ef73a..ec3b23c8 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | |||
@@ -54,6 +54,16 @@ | |||
54 | <a href="https://getpocket.com/developer/docs/authentication">https://getpocket.com/developer/docs/authentication</a> | 54 | <a href="https://getpocket.com/developer/docs/authentication">https://getpocket.com/developer/docs/authentication</a> |
55 | </p> | 55 | </p> |
56 | </div> | 56 | </div> |
57 | |||
58 | <div class="row"> | ||
59 | <h3>{{ 'config.form_settings.android_configuration'|trans }}</h3> | ||
60 | <a href="wallabag://{{ app.user.username }}@{{ wallabag_url }}" >Touch here to prefill your Android application</a> | ||
61 | <img id="androidQrcode" /> | ||
62 | <script> | ||
63 | const imgBase64 = jrQrcode.getQrBase64('wallabag://{{ app.user.username }}@{{ wallabag_url }}'); | ||
64 | document.getElementById('androidQrcode').src = imgBase64; | ||
65 | </script> | ||
66 | </div> | ||
57 | </fieldset> | 67 | </fieldset> |
58 | 68 | ||
59 | {{ form_rest(form.config) }} | 69 | {{ form_rest(form.config) }} |
@@ -146,10 +156,41 @@ | |||
146 | </fieldset> | 156 | </fieldset> |
147 | {% endif %} | 157 | {% endif %} |
148 | 158 | ||
159 | <h2>{{ 'config.reset.title'|trans }}</h2> | ||
160 | <fieldset class="w500p inline"> | ||
161 | <p>{{ 'config.reset.description'|trans }}</p> | ||
162 | <ul> | ||
163 | <li> | ||
164 | <a href="{{ path('config_reset', { type: 'annotations'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red"> | ||
165 | {{ 'config.reset.annotations'|trans }} | ||
166 | </a> | ||
167 | </li> | ||
168 | <li> | ||
169 | <a href="{{ path('config_reset', { type: 'tags'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red"> | ||
170 | {{ 'config.reset.tags'|trans }} | ||
171 | </a> | ||
172 | </li> | ||
173 | <li> | ||
174 | <a href="{{ path('config_reset', { type: 'entries'}) }}" onclick="return confirm('{{ 'config.reset.confirm'|trans|escape('js') }}')" class="waves-effect waves-light btn red"> | ||
175 | {{ 'config.reset.entries'|trans }} | ||
176 | </a> | ||
177 | </li> | ||
178 | </ul> | ||
179 | </fieldset> | ||
180 | |||
149 | {{ form_widget(form.user._token) }} | 181 | {{ form_widget(form.user._token) }} |
150 | {{ form_widget(form.user.save) }} | 182 | {{ form_widget(form.user.save) }} |
151 | </form> | 183 | </form> |
152 | 184 | ||
185 | {% if enabled_users > 1 %} | ||
186 | <h2>{{ 'config.form_user.delete.title'|trans }}</h2> | ||
187 | |||
188 | <p>{{ 'config.form_user.delete.description'|trans }}</p> | ||
189 | <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"> | ||
190 | {{ 'config.form_user.delete.button'|trans }} | ||
191 | </a> | ||
192 | {% endif %} | ||
193 | |||
153 | <h2>{{ 'config.tab_menu.password'|trans }}</h2> | 194 | <h2>{{ 'config.tab_menu.password'|trans }}</h2> |
154 | 195 | ||
155 | {{ form_start(form.pwd) }} | 196 | {{ form_start(form.pwd) }} |