Add Contact page. Fix ##110

This commit is contained in:
Paolo Pasquali committed 2017-11-02 17:13:14 +01:00
1 parent 71355373da
commit e5d1ddc5b7
3 files changed
+121 -1

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
{% extends "site_base.html" %}
{% load i18n %}
{% block extra_head %}
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.2.0/dist/leaflet.css" integrity="sha512-M2wvCLH6DSRazYeZRIm1JnYyh22purTM+FDB5CsyxtQJYeKq83arPe5wgbNmcFXGqiSH2XR8dT/fJISVA1r/zQ==" crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.2.0/dist/leaflet.js" integrity="sha512-lInM/apFSqyy1o6s89K4iQUKg6ppXEgsVxT35HbzUupEVRh2Eu9Wdl4tHj7dZO0s1uvplcYGmt3498TtHq+log==" crossorigin=""></script>
{% endblock %}
{% block title %}{{ block.super }} {% trans "Contact" %}{% endblock %}
{% block page-title %}{% trans "Contact" %}{% endblock %}
{% block body_outer %}
<div class="row">
<div class="col-md-4">
<h3>{% blocktrans %}Address{% endblocktrans %}</h3>
<p>Impasse Baron # 13 bis, Turgeau<br />Port-au-Prince, Haïti (HT 6113)</p>
<h3>{% blocktrans %}Telephones{% endblocktrans %}</h3>
<p><a href="tel:509-2813-0412">(509) 2813-0412</a> - <a href="tel:509-2813-0413">(509) 2813-0413</a></p>
<h3>{% blocktrans %}Email{% endblocktrans %}</h3>
<p><a href="mailto:contact@cnigs.ht">contact@cnigs.ht</a></p>
</div>
<div class="col-md-8">
<div id="map" style="width: 100%; height: 400px;"></div>
</div>
</div>
{% endblock %}
{% block extra_script %}
<script>
var map = L.map('map').setView([18.530215,-72.323377], 15);
L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>, Tiles courtesy of <a href="http://hot.openstreetmap.org/" target="_blank">Humanitarian OpenStreetMap Team</a>',
}).addTo(map);
L.marker([18.530215,-72.323377]).addTo(map)
.bindPopup("<b>CNIGS</b><br />Centre National de<br /> l'Information Géo-Spatiale").openPopup();
</script>
{% endblock extra_script %}
+77 -1
View File
@@ -60,7 +60,7 @@
<li role="separator" class="divider"></li>
<li><a href="{% url "layer_upload" %}">{% trans "Upload Layer" %}</a></li>
<li><a href="/uploads/new">{% trans "Upload ODK exports" %}</a></li>
<li><a href="{% url "document_upload" %}">Upload Document</a></li>
<li><a href="{% url "document_upload" %}">{% trans "Upload Document" %}</a></li>
<li><a href="{% url "register_service" %}">{% trans "Add Remote Service" %}</a></li>
{% endif %}
</ul>
@@ -89,6 +89,7 @@
<li><a href="{% url "profile_browse" %}">{% trans "People" %}</a></li>
<li><a href="{% url "group_list" %}">{% trans "Groups" %}</a></li>
<li><a href="{% url "tutorials" %}">{% trans "Tutorials" %}</a></li>
<li><a href="{% url "contact" %}">{% trans "Contact Us" %}</a></li>
{% if perms.announcements.can_manage %}
<li><a href="{% url "announcements_list" %}">{% trans "Announcements" %}</a></li>
{% endif %}
@@ -169,3 +170,78 @@
{% endblock %}
</div>
{% endblock middle %}
{% block footer %}
<footer>
<div class="container">
<div class="row">
<div class="col-md-2 col-sm-6">
<ul class="list-unstyled">
<li>{% trans "Data" %}</li>
<li><a href="{% url "layer_browse" %}">{% trans "Layers" %}</a></li>
<li><a href="{% url "document_browse" %}">{% trans "Documents" %}</a></li>
<li><a href="{% url "chart_list" %}">{% trans "Graphs" %}</a></li>
{% if user.is_authenticated %}
<li><a href="/uploads">{% trans "Uploads" %}</a></li>
<li><a href="{% url "services" %}">{% trans "Remote Services" %}</a></li>
<li role="separator" class="divider"></li>
<li><a href="{% url "layer_upload" %}">{% trans "Upload Layer" %}</a></li>
<li><a href="/uploads/new">{% trans "Upload ODK exports" %}</a></li>
<li><a href="{% url "document_upload" %}">{% trans "Upload Document" %}</a></li>
<li><a href="{% url "register_service" %}">{% trans "Add Remote Service" %}</a></li>
{% endif %}
</ul>
</div>
<div class="col-md-2 col-sm-6">
<ul class="list-unstyled">
<li>{% trans "Maps" %}</li>
<li><a href="{% url "maps_browse" %}">{% trans "Explore Maps" %}</a></li>
{% if user.is_authenticated %}
<li> <a href="{% url "new_map" %}">{% trans "Create Map" %}</a></li>
{% endif %}
</ul>
<ul class="list-unstyled">
<li>{% trans "Imagery" %}</li>
<li><a href="/clip/ortho_images">{% trans "Orthophotos" %}</a></li>
<li> <a href="/clip/lidar">{% trans "DSM" %}</a></li>
</div>
<div class="col-md-2 col-sm-6">
<ul class="list-unstyled">
<li>{% trans "About" %}</li>
<li><a href="{% url "profile_browse" %}">{% trans "People" %}</a></li>
<li><a href="{% url "group_list" %}">{% trans "Groups" %}</a></li>
{% if perms.announcements.can_manage %}
<li><a href="{% url "announcements_list" %}">{% trans "Announcements" %}</a></li>
{% endif %}
{% if user.is_superuser %}
<li><a href="/admin/people/profile/add/">{% trans "Add User" %}</a></li>
<li><a href="{% url "account_invite_user" %}">{% trans "Invite User" %}</a></li>
<li><a href="{% url "group_create" %}">{% trans "Create Group" %}</a></li>
{% endif %}
</ul>
</div>
<div class="col-md-6 text-right">
<ul class="list-unstyled">
<li>{% trans "Powered by" %} <a href="http://geonode.org">{% trans "GeoNode" %}</a> <em>{% trans "version" %} {{ VERSION }}</em></li>
<li><a href="{% url "developer" %}">{% trans "Developers" %}</a> | <a href="{% url "about" %}">{% trans "About" %}</a><li>
</ul>
<label class="hidden">{% trans "Language" %}</label>
{% if csrf_token != "NOTPROVIDED" %}
{% get_current_language as LANGUAGE %}
<form class="form-inline" action="/i18n/setlang/" method="post">
{% csrf_token %}
<select class="col-md-6 pull-right" name="language" onchange="javascript:form.submit()">
{% for lang in LANGUAGES %}
<option value="{{ lang.0 }}" {% ifequal LANGUAGE_CODE lang.0 %} selected="selected"{% endifequal %}>
{{ lang.1 }}
</option>
{% endfor %}
</select>
</form>
{% endif %}
</div>
</div>
</div>
</footer>
{% endblock footer %}
+1
View File
@@ -15,6 +15,7 @@ urlpatterns = patterns('',
url(r'^chart/', include('charts_app.urls')),
url(r'^table/', include('wfs_harvest.urls')),
url(r'^clip/', include('clip-and-ship.urls')),
url(r'^contact/$', TemplateView.as_view(template_name='contact.html'), name='contact'),
url(r'^tutorials/$', TemplateView.as_view(template_name='tutorials.html'), name='tutorials'),
]