summaryrefslogtreecommitdiff
path: root/chimere
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-05-16 13:01:26 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-05-16 13:01:26 +0200
commit71197f220f3a840ef861bb1ad204cc672e69c20c (patch)
tree570bf9324168a0371077bcd3475e9617af4d41d9 /chimere
parent9c9796a5bd5ced3ebbe4e2b143906d0bce9f0024 (diff)
downloadChimère-71197f220f3a840ef861bb1ad204cc672e69c20c.tar.bz2
Chimère-71197f220f3a840ef861bb1ad204cc672e69c20c.zip
Add missing template from the previous commit
Diffstat (limited to 'chimere')
-rw-r--r--chimere/templates/chimere/feeds/rss.html75
-rw-r--r--chimere/templates/chimere/feeds/rss_descr.html8
-rw-r--r--chimere/templates/chimere/feeds/rss_title.html2
3 files changed, 85 insertions, 0 deletions
diff --git a/chimere/templates/chimere/feeds/rss.html b/chimere/templates/chimere/feeds/rss.html
new file mode 100644
index 0000000..d36e6bf
--- /dev/null
+++ b/chimere/templates/chimere/feeds/rss.html
@@ -0,0 +1,75 @@
+{% extends "chimere/base.html" %}
+{% load i18n chimere_tags %}
+
+{% block extra_head %}
+ {{ block.super }}
+ {% head_jquery %}
+ {% head_chimere %}
+ {{form.media}}
+{% endblock %}
+
+{% block content %}
+<fieldset class='edit'>
+<legend>{% trans "Subscribe to RSS feed" %}</legend>
+
+<p class='warning'>{{ error_message }}</p>
+
+<form method='post' id='rss_form' name='rss_form' action=''>
+{%if not category_rss_feed %}
+<div class="fieldWrapper">
+ <label for="rss_category">{% trans "Type of RSS feed" %}</label>
+ <select name='rss_category' id='rss_category' onchange='document.forms["rss_form"].submit();'>
+ <option value=""> ---- </option>
+ <option value="global">{% trans "All new points of interest" %}</option>
+ <option value="poi">{% trans "New points of interest by category" %}</option>
+ <option value="area">{% trans "New points of interest by area" %}</option>
+ </select>
+</div>
+{% endif %}
+
+{%ifequal category_rss_feed "category" %}
+<h3>{% trans "New points of interest by category" %}</h3>
+<div class="fieldWrapper">
+ <label for="id_subcategory">{% trans "Choose a category" %}</label>
+ <select name='subcategory' id='subcategory' onchange='document.forms["rss_form"].submit();'>
+ {% for cat_subcat in sub_categories %}
+ <option value ="cat_{{cat_subcat.0.id}}"> ---- {{cat_subcat.0.name}} ----
+ {% for sub_category in cat_subcat.1 %}
+ <option value='{{sub_category.id}}'{% ifequal sub_category.id current_category %} selected='selected'{% endifequal %}>
+ {% trans sub_category.name %}
+ </option>{% endfor %}
+ </option>{% endfor %}
+ </select>
+</div>
+{% endifequal %}
+
+{%ifequal category_rss_feed "area" %}
+<h3>{% trans "New points of interest by area" %}</h3>
+{% if area_id %}
+<div class="fieldWrapper">
+ <label for="id_area">{% trans "Choose a pre-defined areas" %}</label>
+ <select name='id_area' id='id_area' onchange='document.forms["rss_form"].submit();'>
+ <option value="" selected="selected"> ---- </option>
+ {% for areaID in area_id %}
+ <option value="{{areaID.id}}">{{areaID.name}}</option>
+ {% endfor %}
+ </select>
+</div>
+
+</form>
+
+<form method='post' action=''>
+{% endif %}
+<div class='fieldWrapper'>
+<label>{% trans "Or select the area by zooming and panning this map" %}</label>
+<div class="map">
+ {{form.area}}
+</div>
+</div>
+<p><input type="submit" value="{% trans "Validate" %}" /></p>
+{% endifequal %}
+
+</form>
+
+</fieldset>
+{% endblock %}
diff --git a/chimere/templates/chimere/feeds/rss_descr.html b/chimere/templates/chimere/feeds/rss_descr.html
new file mode 100644
index 0000000..4f75ac6
--- /dev/null
+++ b/chimere/templates/chimere/feeds/rss_descr.html
@@ -0,0 +1,8 @@
+{% load i18n %}
+{% load sanitize %}
+<div id='detail_content'>
+{% if obj.picture %}<img src='{{obj.picture.url}}' alt="{{obj.name}}"/>{%endif%}
+<div>{% for property in obj.getProperties %}
+<p id='{{property.propertymodel.getNamedId}}'>{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4"|safe }}</p>
+{% endfor %}</div>
+</div>
diff --git a/chimere/templates/chimere/feeds/rss_title.html b/chimere/templates/chimere/feeds/rss_title.html
new file mode 100644
index 0000000..5b379e7
--- /dev/null
+++ b/chimere/templates/chimere/feeds/rss_title.html
@@ -0,0 +1,2 @@
+{% load i18n %}
+{{ obj.name }}