diff options
-rw-r--r-- | chimere/rss/templates/rss.html | 37 |
1 files changed, 21 insertions, 16 deletions
diff --git a/chimere/rss/templates/rss.html b/chimere/rss/templates/rss.html index 885841d..c28b3db 100644 --- a/chimere/rss/templates/rss.html +++ b/chimere/rss/templates/rss.html @@ -8,27 +8,26 @@ <div id='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/'> +<form method='post' id='rss_form' name='rss_form' action=''> {%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> + <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 the new points of interest" %}</option> + <option value="poi">{% trans "Category of point of interest" %}</option> + <option value="area">{% trans "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'> + <label for="id_subcategory">{% trans "Category of POI" %}</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 %} @@ -41,23 +40,29 @@ {% endifequal %} {%ifequal category_rss_feed "area" %} +{% if area_id %} <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> + <label for="id_area">{% trans "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="map"> -<p>{% trans "Or select a location for this new site :" %}</p> + +<label>{% trans "Or select the area by zooming an panning this map:" %}</label> {{form.area}} </div> +<p><input type="submit" value="{% trans "Submit" %}" /></p> {% endifequal %} - -<p><input type='submit' onclick='saveExtent();' value="{% trans 'Transmit'%}"/></p> </form> </fieldset> |