Plate-forme pour les organisations de l'Économie Sociale et Solidaire du Pas-de-Calais
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3KB

  1. {% extends "base.html" %}
  2. {% load tapeforms %}
  3. {% block title %}Ressources - {{ category }}{% endblock %}
  4. {% block page_title %}Ressources - {{ category }}{% endblock %}
  5. {% block page_content %}
  6. {% if request.user.is_authenticated or category.description %}
  7. <div class="card mb-3">
  8. <div class="card-header">
  9. Description
  10. {% if request.user.is_authenticated %}
  11. <a class="btn btn-secondary float-right" href={% url "documents:category_update" category.pk %}><i class="fa fa-pencil mr-2" aria-hidden="true"></i>Modifier</a>
  12. {% endif %}
  13. </div>
  14. <div class="card-body">
  15. {{ category.description|safe }}
  16. </div>
  17. </div>
  18. {% endif %}
  19. <div class="card mb-3">
  20. <div class="card-header">
  21. Ressources
  22. {% if request.user.is_authenticated %}
  23. <a class="btn btn-secondary float-right" href={% url "documents:add" %}><i class="fa fa-plus-circle mr-2" aria-hidden="true"></i>Ajouter</a>
  24. {% endif %}
  25. </div>
  26. <div class="card-body">
  27. {% if document_list %}
  28. <div class="d-flex flex-wrap">
  29. {% for document in document_list %}
  30. <div class="btn-holder mb-2 mr-3">
  31. {% include "./inc/document_element.html" %}
  32. </div>
  33. {% endfor %}
  34. </div>
  35. {% else %}
  36. <p class="lead">Il n'y a aucun document pour le moment.</p>
  37. {% endif %}
  38. </div>
  39. </div>
  40. {% endblock %}