]> git.parisson.com Git - mezzo.git/commitdiff
update project detail template
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 22 Sep 2016 13:39:56 +0000 (15:39 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 22 Sep 2016 13:39:56 +0000 (15:39 +0200)
app/templates/projects/project_detail.html

index 7b850e82c74b37c2b1f3fa12a7091f0948d7aab6..da5eb160be7d4aa7395c9363db24454bd297bf4c 100644 (file)
   <div>
     {% trans "Project details" %}
 
-    <ul>
-      <li>{% trans "Program" %}></li>
-    </ul>
+    {% if project.program %}
+      {% trans "Program" %} {{ project.program }}<br>
+    {% endif %}
+    {% if project.program_type %}
+      {% trans "Program type" %} {{ project.program_type }}<br>
+    {% endif %}
+    {% trans "Beginning" % } {{ project.date_from }}<br>
+    {% trans "End" % } {{ project.date_to }}<br>
+    {% trans "Status" % } {{ project.project_status }}<br>
+    {% if project.website %}
+      {% trans "Website" %} {{ project.website }}<br>
+    {% endif %}
+  </div>
+  <div>
+    {% trans "Participants" %}
+    {% if project.lead_team %}
+      {% trans "Project lead team"%} {{ project.lead_team }}<br>
+    {% endif %}
+    {% trans "Partners" %}
+    {% if project.teams.all %}
+      {% trans "Partners" %}<br>
+      {% for team in project.teams.all %}
+        {{ team }}<br>
+      {% endfor %}
+      {% for organization in project.organizations.all %}
+        {{ organization }}<br>
+      {% endfor %}
+    {% endif %}
   </div>
 </div>
+{% endblock project_details %}
 
-{% if project.lead_team %}
-  Project lead team : {{ project.lead_team }}<br>
-{% endif %}
-{% if project.persons.all %}
-  Persons :<br>
-  {% for person in project.persons.all %}
-    {{ person }}<br>
-  {% endfor %}
-{% endif %}
-{% if project.teams.all %}
-  Teams :<br>
-  {% for team in project.teams.all %}
-    {{ team }}<br>
-  {% endfor %}
-{% endif %}
-{% if project.organizations.all %}
-  organizations :<br>
-  {% for organization in project.organizations.all %}
-    {{ organization }}<br>
-  {% endfor %}
-{% endif %}
-{% if project.website %}
-  website : {{ project.website }}<br>
-{% endif %}
+{% block logo %}
+{% for organization in project.organizations.all %}
+  {% with project.images.all|get_type:'logo' as images %}
+    {% include 'core/inc/logo.html' %}
+  {% endwith %}
+{% endfor %}
+{% endblock %}