Skip to content

Commit

Permalink
Improve templates for #372
Browse files Browse the repository at this point in the history
  • Loading branch information
seav committed Jul 22, 2016
1 parent eeb3cd7 commit 0785eb7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cadasta/templates/organization/organization_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ <h3 style="text-transform: none;">{% trans "You're ready to go" %}</h3>
</div>
{% endif %}
<p>{{ organization.description }}<p>
{% if organization.urls.0 %}
<p><a href="{{ url }}">{% trans "Website" %}</a></p>
{% endif %}
{% if organization.contacts %}
<dl>
{% for contact in organization.contacts %}
<dt>{{ contact.name }}</dt>
<dd>
{% if contact.email %}<a href="mailto:{{ contact.email }}">{% trans "E-mail" %}</a>{% endif %}
{% if contact.tel %}<a href="tel:{{ contact.tel }}">{% trans "Phone" %}</a>{% endif %}
</dd>
{% endfor %}
</dl>
{% endif %}
<div class="divider-thick"></div>
<!-- Starter text -->
<h3>{% trans "Members" %}</h3>
Expand Down
14 changes: 14 additions & 0 deletions cadasta/templates/organization/project_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@
<section>
<h2>Project Overview</h2>
<p>{{ object.description }}</p>
{% if object.urls.0 %}
<p><a href="{{ object.urls.0 }}">{% trans "Website" %}</a></p>
{% endif %}
{% if object.contacts %}
<dl>
{% for contact in object.contacts %}
<dt>{{ contact.name }}</dt>
<dd>
{% if contact.email %}<a href="mailto:{{ contact.email }}">{% trans "E-mail" %}</a>{% endif %}
{% if contact.tel %}<a href="tel:{{ contact.tel }}">{% trans "Phone" %}</a>{% endif %}
</dd>
{% endfor %}
</dl>
{% endif %}
<div class="divider-thick"></div>
{% if has_content %}
<h3 style="text-transform: capitalize;">{% trans "Summary" %}</h3>
Expand Down

0 comments on commit 0785eb7

Please sign in to comment.