diff options
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig | 55 |
1 files changed, 5 insertions, 50 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 5330c353..270c077f 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 | |||
@@ -16,9 +16,6 @@ | |||
16 | <li class="tab col s3"><a href="#set3">{{ 'config.tab_menu.user_info'|trans }}</a></li> | 16 | <li class="tab col s3"><a href="#set3">{{ 'config.tab_menu.user_info'|trans }}</a></li> |
17 | <li class="tab col s3"><a href="#set4">{{ 'config.tab_menu.password'|trans }}</a></li> | 17 | <li class="tab col s3"><a href="#set4">{{ 'config.tab_menu.password'|trans }}</a></li> |
18 | <li class="tab col s3"><a href="#set5">{{ 'config.tab_menu.rules'|trans }}</a></li> | 18 | <li class="tab col s3"><a href="#set5">{{ 'config.tab_menu.rules'|trans }}</a></li> |
19 | {% if is_granted('ROLE_SUPER_ADMIN') %} | ||
20 | <li class="tab col s3"><a href="#set6">{{ 'config.tab_menu.new_user'|trans }}</a></li> | ||
21 | {% endif %} | ||
22 | </ul> | 19 | </ul> |
23 | </div> | 20 | </div> |
24 | 21 | ||
@@ -157,11 +154,9 @@ | |||
157 | <div class="row"> | 154 | <div class="row"> |
158 | <div class="input-field col s12"> | 155 | <div class="input-field col s12"> |
159 | {{ 'config.form_user.two_factor_description'|trans }} | 156 | {{ 'config.form_user.two_factor_description'|trans }} |
160 | </div> | ||
161 | </div> | ||
162 | 157 | ||
163 | <div class="row"> | 158 | <br /> |
164 | <div class="input-field col s12"> | 159 | |
165 | {{ form_widget(form.user.twoFactorAuthentication) }} | 160 | {{ form_widget(form.user.twoFactorAuthentication) }} |
166 | {{ form_label(form.user.twoFactorAuthentication) }} | 161 | {{ form_label(form.user.twoFactorAuthentication) }} |
167 | {{ form_errors(form.user.twoFactorAuthentication) }} | 162 | {{ form_errors(form.user.twoFactorAuthentication) }} |
@@ -218,6 +213,9 @@ | |||
218 | « {{ tagging_rule.rule }} » | 213 | « {{ tagging_rule.rule }} » |
219 | {{ 'config.form_rules.then_tag_as_label'|trans }} | 214 | {{ 'config.form_rules.then_tag_as_label'|trans }} |
220 | « {{ tagging_rule.tags|join(', ') }} » | 215 | « {{ tagging_rule.tags|join(', ') }} » |
216 | <a href="{{ path('edit_tagging_rule', {id: tagging_rule.id}) }}" title="{{ 'config.form_rules.edit_rule_label'|trans }}"> | ||
217 | <i class="tool grey-text mode_edit material-icons">mode_edit</i> | ||
218 | </a> | ||
221 | <a href="{{ path('delete_tagging_rule', {id: tagging_rule.id}) }}" title="{{ 'config.form_rules.delete_rule_label'|trans }}"> | 219 | <a href="{{ path('delete_tagging_rule', {id: tagging_rule.id}) }}" title="{{ 'config.form_rules.delete_rule_label'|trans }}"> |
222 | <i class="tool grey-text delete material-icons">delete</i> | 220 | <i class="tool grey-text delete material-icons">delete</i> |
223 | </a> | 221 | </a> |
@@ -336,49 +334,6 @@ | |||
336 | </div> | 334 | </div> |
337 | </div> | 335 | </div> |
338 | </div> | 336 | </div> |
339 | |||
340 | {% if is_granted('ROLE_SUPER_ADMIN') %} | ||
341 | <div id="set6" class="col s12"> | ||
342 | {{ form_start(form.new_user) }} | ||
343 | {{ form_errors(form.new_user) }} | ||
344 | |||
345 | <div class="row"> | ||
346 | <div class="input-field col s12"> | ||
347 | {{ form_label(form.new_user.username) }} | ||
348 | {{ form_errors(form.new_user.username) }} | ||
349 | {{ form_widget(form.new_user.username) }} | ||
350 | </div> | ||
351 | </div> | ||
352 | |||
353 | <div class="row"> | ||
354 | <div class="input-field col s12"> | ||
355 | {{ form_label(form.new_user.plainPassword.first) }} | ||
356 | {{ form_errors(form.new_user.plainPassword.first) }} | ||
357 | {{ form_widget(form.new_user.plainPassword.first) }} | ||
358 | </div> | ||
359 | </div> | ||
360 | |||
361 | <div class="row"> | ||
362 | <div class="input-field col s12"> | ||
363 | {{ form_label(form.new_user.plainPassword.second) }} | ||
364 | {{ form_errors(form.new_user.plainPassword.second) }} | ||
365 | {{ form_widget(form.new_user.plainPassword.second) }} | ||
366 | </div> | ||
367 | </div> | ||
368 | |||
369 | <div class="row"> | ||
370 | <div class="input-field col s12"> | ||
371 | {{ form_label(form.new_user.email) }} | ||
372 | {{ form_errors(form.new_user.email) }} | ||
373 | {{ form_widget(form.new_user.email) }} | ||
374 | </div> | ||
375 | </div> | ||
376 | |||
377 | {{ form_widget(form.new_user.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }} | ||
378 | {{ form_rest(form.new_user) }} | ||
379 | </form> | ||
380 | </div> | ||
381 | {% endif %} | ||
382 | </div> | 337 | </div> |
383 | 338 | ||
384 | </div> | 339 | </div> |