From f7dcc436416afd96ede6b6795baf88eedbee4ceb Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 22 Sep 2016 15:39:56 +0200 Subject: [PATCH] update project detail template --- app/templates/projects/project_detail.html | 63 ++++++++++++---------- 1 file changed, 36 insertions(+), 27 deletions(-) diff --git a/app/templates/projects/project_detail.html b/app/templates/projects/project_detail.html index 7b850e82..da5eb160 100644 --- a/app/templates/projects/project_detail.html +++ b/app/templates/projects/project_detail.html @@ -55,33 +55,42 @@
{% trans "Project details" %} - + {% if project.program %} + {% trans "Program" %} {{ project.program }}
+ {% endif %} + {% if project.program_type %} + {% trans "Program type" %} {{ project.program_type }}
+ {% endif %} + {% trans "Beginning" % } {{ project.date_from }}
+ {% trans "End" % } {{ project.date_to }}
+ {% trans "Status" % } {{ project.project_status }}
+ {% if project.website %} + {% trans "Website" %} {{ project.website }}
+ {% endif %} +
+
+ {% trans "Participants" %} + {% if project.lead_team %} + {% trans "Project lead team"%} {{ project.lead_team }}
+ {% endif %} + {% trans "Partners" %} + {% if project.teams.all %} + {% trans "Partners" %}
+ {% for team in project.teams.all %} + {{ team }}
+ {% endfor %} + {% for organization in project.organizations.all %} + {{ organization }}
+ {% endfor %} + {% endif %}
+{% endblock project_details %} -{% if project.lead_team %} - Project lead team : {{ project.lead_team }}
-{% endif %} -{% if project.persons.all %} - Persons :
- {% for person in project.persons.all %} - {{ person }}
- {% endfor %} -{% endif %} -{% if project.teams.all %} - Teams :
- {% for team in project.teams.all %} - {{ team }}
- {% endfor %} -{% endif %} -{% if project.organizations.all %} - organizations :
- {% for organization in project.organizations.all %} - {{ organization }}
- {% endfor %} -{% endif %} -{% if project.website %} - website : {{ project.website }}
-{% 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 %} -- 2.39.5