read.tpl 1.2 KB

12345678910111213141516171819202122232425262728293031
  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, 'cidReq':course.code, 'id_session' : course_session.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 , 'cidReq':course.code, 'id_session' : course_session.id}) }}">
  15. Remove
  16. </a>
  17. </li>
  18. {% endfor %}
  19. {% endif %}
  20. <hr />
  21. <ul>
  22. {% for subitem in subitems %}
  23. <li>
  24. <a href="{{ url(links.read_link, { id: subitem.id, 'cidReq':course.code, 'id_session' : course_session.id } ) }}">{{ subitem.branchName }}</a>
  25. </li>
  26. {% endfor %}
  27. </ul>
  28. {% endblock %}