summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chimere/rss/templates/rss.html65
-rw-r--r--chimere/rss/templates/rss_descr.html7
-rw-r--r--chimere/rss/templates/rss_title.html2
3 files changed, 74 insertions, 0 deletions
diff --git a/chimere/rss/templates/rss.html b/chimere/rss/templates/rss.html
new file mode 100644
index 0000000..bb656e3
--- /dev/null
+++ b/chimere/rss/templates/rss.html
@@ -0,0 +1,65 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block sidebar %}
+{% endblock %}
+
+{% block content %}
+
+<fieldset class='edit'>
+<legend>{% trans "Subscribe to RSS feed" %}</legend>
+<p>* {% trans "indicates a mandatory field" %}</p>
+
+<p><font color='red'> {{ error_message }} </font></p>
+
+<form enctype="multipart/form-data" method='post' action='/{{extra_url}}rss/'>
+{%if not category_rss_feed %}
+<div class="fieldWrapper">
+ <label for="rss_category">{% trans "Category of RSS feeds" %} *</label>
+ <select name='rss_category' id='rss_category'>
+ <option value="">---------</option>
+ <option value="global">All the new POIs</option>
+ <option value="poi">Category of POI</option>
+ <option value="area">Area</option>
+ </select>
+</div>
+{% endif %}
+
+{%ifequal category_rss_feed "category" %}
+<div class="fieldWrapper">
+ <label for="id_subcategory">{% trans "Category of POI" %} *</label>
+ <select name='subcategory' id='subcategory'>
+ {% 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" %}
+<div class="fieldWrapper">
+ <label for="id_area">{% trans "Area you are interested in :" %} *</label>
+ <select name='id_area' id='id_area'>
+ <option value="" selected="selected">Choisir</option>
+ {% for areaID in area_id %}
+ <option value ={{areaID.id}}>{{areaID.name}}</option>
+ {% endfor %}
+ </select>
+</div>
+<div class="map">
+<p>{% trans "Or select a location for this new site :" %}</p>
+ {{form.area}}
+</div>
+{% endifequal %}
+
+
+<p><input type='submit' onclick='saveExtent();' value="{% trans 'Transmit'%}"/></p>
+</form>
+
+</fieldset>
+
+{% endblock %}
diff --git a/chimere/rss/templates/rss_descr.html b/chimere/rss/templates/rss_descr.html
new file mode 100644
index 0000000..f94b061
--- /dev/null
+++ b/chimere/rss/templates/rss_descr.html
@@ -0,0 +1,7 @@
+{% load i18n %}
+<div id='detail_content'>
+{% if obj.picture %}<img src='{{media_path}}{{obj.picture}}' alt='{{obj.name}}'/>{%endif%}
+<div>{% for property in obj.getProperties %}
+<p id='{{property.propertymodel.getNamedId}}'>{{ property.value|safe }}</p>
+{% endfor %}</div>
+</div>
diff --git a/chimere/rss/templates/rss_title.html b/chimere/rss/templates/rss_title.html
new file mode 100644
index 0000000..5b379e7
--- /dev/null
+++ b/chimere/rss/templates/rss_title.html
@@ -0,0 +1,2 @@
+{% load i18n %}
+{{ obj.name }}