diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig | 41 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | 40 |
2 files changed, 81 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) }} |
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"> |