read.tpl 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {% extends app.template_style ~ "/layout/layout_1_col.tpl" %}
  2. {% block content %}
  3. <a href="{{ url(links.list_link) }}">
  4. List
  5. </a>
  6. <h3>#{{ item.id }} {{ item.branchName }} </h3>
  7. {% if item.getUsers %}
  8. <hr />
  9. <h4> {{ 'Users' | trans }} </h4>
  10. <a class="btn" href="{{ url('branch.controller:addDirectorAction', { "id" : item.id }) }}"> Add users </a>
  11. {% for branchUsers in item.getUsers %}
  12. <li>
  13. {{ branchUsers.user.getCompleteName }} - {{ branchUsers.role.name }}
  14. <a class="btn btn-danger" href="{{ url('branch.controller:removeDirectorAction', { 'id': item.id, 'userId':branchUsers.user.userId }) }}">
  15. Remove
  16. </a>
  17. </li>
  18. {% endfor %}
  19. {% endif %}
  20. <hr />
  21. <h4>{{ 'SubBranches' | trans }}</h4>
  22. <ul>
  23. {% for subitem in subitems %}
  24. <li>
  25. <a href="{{ url(links.read_link, { id: subitem.id} ) }}">
  26. {{ subitem.branchName }}
  27. </a>
  28. </li>
  29. {% endfor %}
  30. </ul>
  31. {% endblock %}