users.html.twig 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. {% extends 'partials/base.html.twig' %}
  2. {% if admin.route %}
  3. {% set user = admin.data('users/' ~ admin.route) %}
  4. {% endif %}
  5. {% block titlebar %}
  6. {% if not admin.route %}
  7. <div class="button-bar">
  8. <a class="button" href="#modal" data-remodal-target="modal"><i class="fa fa-plus"></i> {{ "PLUGIN_ADMIN.ADD_ACCOUNT"|tu }}</a>
  9. </div>
  10. <h1><i class="fa fa-fw fa-child"></i> Users</h1>
  11. {% else %}
  12. <div class="button-bar">
  13. <a class="button" href="{{ base_url }}"><i class="fa fa-reply"></i> {{ "PLUGIN_ADMIN.BACK"|tu }}</a>
  14. <button class="button" type="submit" name="task" value="save" form="blueprints"><i class="fa fa-check"></i> {{ "PLUGIN_ADMIN.SAVE"|tu }}</button>
  15. </div>
  16. <h1><i class="fa fa-fw fa-user"></i> {{ "PLUGIN_ADMIN.USER"|tu }}: {{ user.username|e }}</h1>
  17. {% endif %}
  18. {% endblock %}
  19. {% block content %}
  20. <div>
  21. {% include 'partials/messages.html.twig' %}
  22. {% if not admin.route %}
  23. {% include 'partials/users-list.html.twig' %}
  24. <div class="remodal" data-remodal-id="modal" data-remodal-options="hashTracking: false">
  25. {% include 'partials/blueprints-new.html.twig' with { blueprints: admin.blueprints('user/account_new') } %}
  26. </div>
  27. {% else %}
  28. {% include 'partials/users-details.html.twig' %}
  29. {% endif %}
  30. </div>
  31. {% endblock %}