user-expert.html.twig 1.1 KB

12345678910111213141516171819202122232425262728
  1. {% extends 'partials/base.html.twig' %}
  2. {% set title = "PLUGIN_ADMIN.USER"|tu ~ ": " ~ admin.route|e %}
  3. {% block titlebar %}
  4. <div class="button-bar">
  5. <a class="button" href="{{ base_url }}/user-manager"><i class="fa fa-reply"></i> {{ "PLUGIN_ADMIN.BACK"|tu }}</a>
  6. <button class="button" type="submit" name="task" value="save" form="blueprints" onclick="document.getElementById('user_expert_form').submit()"><i class="fa fa-check"></i> {{ "PLUGIN_ADMIN.SAVE"|tu }}</button>
  7. </div>
  8. <h1><i class="fa fa-fw fa-user"></i> {{ "PLUGIN_ADMIN.USER"|tu }}: {{ user.username|e }}</h1>
  9. {% endblock %}
  10. {% block content %}
  11. <h1>{{ title }}</h1>
  12. <form method="post" id="user_expert_form">
  13. {% for field in blueprint.fields %}
  14. {% if field.type %}
  15. {% set value = attribute(_context, field.name) %}
  16. <div class="block block-{{field.type}}">
  17. {% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
  18. </div>
  19. {% endif %}
  20. {% endfor %}
  21. {{ nonce_field('form', 'form-nonce')|raw }}
  22. </form>
  23. {% endblock %}