dossier_detail.html 1.6 KB
Newer Older
1
2
{% extends "base.html" %}

Nicolas Joyard's avatar
Nicolas Joyard committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% load i18n %}
{% load memopol_tags %}

{% with dossier=object %}

  {% block title %}{{ dossier.title }}{% endblock %}

  {% block content %}
  <div class="row" id="dossier-detail">
    <div class="col-sm-12">
      <h1 class="text-center">{{ dossier.title }}</h1>

      <div class="col-sm-12">
        <dl class="dl-horizontal">
          <dt>{% trans "Themes" %}</dt>
          <dd>
19
            {% include "blocks/_themetags.html" with themes=dossier.themes.all %}
Nicolas Joyard's avatar
Nicolas Joyard committed
20
            {% if not dossier.themes.all|length %}{% trans "None" %}{% endif %}
Nicolas Joyard's avatar
Nicolas Joyard committed
21
22
23
24
          </dd>
        </dl>
      </div>
    </div>
25
26
  </div>

Nicolas Joyard's avatar
Nicolas Joyard committed
27
28
  <div class="row">
    <div class="col-xs-12">
29
      <ul class="nav nav-tabs nav-justified" role="tablist">
30
31
32
33
34
        <li role="presentation" {% if tab == 'recommendations' %}class="active"{% endif %}>
          <a href="{% url 'dossier-recommendations' pk=dossier.pk %}" role="tab">
            <h3>{% trans "Recommendations" %}</h3>
          </a>
        </li>
Nicolas Joyard's avatar
Nicolas Joyard committed
35
36
        <li role="presentation" {% if tab == 'proposals' %}class="active"{% endif %}>
          <a href="{% url 'dossier-proposals' pk=dossier.pk %}" role="tab">
37
            <h3>{% trans "Other proposals" %}</h3>
38
39
          </a>
        </li>
Nicolas Joyard's avatar
Nicolas Joyard committed
40
41
42
        <li role="presentation" {% if tab == 'documents' %}class="active"{% endif %}>
          <a href="{% url 'dossier-documents' pk=dossier.pk %}" role="tab">
            <h3>{% trans "Documents" %}</h3>
43
44
          </a>
        </li>
Nicolas Joyard's avatar
Nicolas Joyard committed
45
      </ul>
46
47

      <div class="tab-content">
Nicolas Joyard's avatar
Nicolas Joyard committed
48
        {% block dossier_content %}{% endblock %}
49
      </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
50
    </div>
51
  </div>
Nicolas Joyard's avatar
Nicolas Joyard committed
52
53
54
  {% endblock %}

{% endwith %}