summaryrefslogtreecommitdiff
path: root/chimere/rss/templates/rss.html
blob: bb656e345530d24da2b978bb5da57e16fc070c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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 %}