From 0785eb7abc0681cdfab94932641091640b1ec726 Mon Sep 17 00:00:00 2001 From: Eugene Alvin Villar Date: Wed, 20 Jul 2016 15:54:05 +0800 Subject: [PATCH] Improve templates for #372 --- .../organization/organization_dashboard.html | 14 ++++++++++++++ .../templates/organization/project_dashboard.html | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/cadasta/templates/organization/organization_dashboard.html b/cadasta/templates/organization/organization_dashboard.html index 4f85e59ef..39da879bf 100644 --- a/cadasta/templates/organization/organization_dashboard.html +++ b/cadasta/templates/organization/organization_dashboard.html @@ -63,6 +63,20 @@

{% trans "You're ready to go" %}

{% endif %}

{{ organization.description }}

+ {% if organization.urls.0 %} +

{% trans "Website" %}

+ {% endif %} + {% if organization.contacts %} +
+ {% for contact in organization.contacts %} +
{{ contact.name }}
+
+ {% if contact.email %}{% trans "E-mail" %}{% endif %} + {% if contact.tel %}{% trans "Phone" %}{% endif %} +
+ {% endfor %} +
+ {% endif %}

{% trans "Members" %}

diff --git a/cadasta/templates/organization/project_dashboard.html b/cadasta/templates/organization/project_dashboard.html index 1209ecf61..ffa017800 100644 --- a/cadasta/templates/organization/project_dashboard.html +++ b/cadasta/templates/organization/project_dashboard.html @@ -52,6 +52,20 @@

Project Overview

{{ object.description }}

+ {% if object.urls.0 %} +

{% trans "Website" %}

+ {% endif %} + {% if object.contacts %} +
+ {% for contact in object.contacts %} +
{{ contact.name }}
+
+ {% if contact.email %}{% trans "E-mail" %}{% endif %} + {% if contact.tel %}{% trans "Phone" %}{% endif %} +
+ {% endfor %} +
+ {% endif %}
{% if has_content %}

{% trans "Summary" %}