diff options
| author | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-11-24 00:36:13 +0000 |
|---|---|---|
| committer | etienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864> | 2009-11-24 00:36:13 +0000 |
| commit | 6c847e3c20d75f91525733e959f00098840dbc6d (patch) | |
| tree | 57ff1031c73006b3d6a58f148efd48cded74c2b9 /templates | |
| parent | 128a8cf8e2d7238dea16b1ffac507eb2b7c6c6c5 (diff) | |
| download | Chimère-6c847e3c20d75f91525733e959f00098840dbc6d.tar.bz2 Chimère-6c847e3c20d75f91525733e959f00098840dbc6d.zip | |
Provide a description for categories - #61
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@41 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/category_detail.html | 6 | ||||
| -rw-r--r-- | templates/main_map.html | 4 | ||||
| -rw-r--r-- | templates/welcome.html | 4 |
3 files changed, 12 insertions, 2 deletions
diff --git a/templates/category_detail.html b/templates/category_detail.html new file mode 100644 index 0000000..0211989 --- /dev/null +++ b/templates/category_detail.html @@ -0,0 +1,6 @@ +{% load i18n %} +<h2>{{ category.name }}</h2> +<div id='category_desc_content'> +{{ category.description|safe }} +</div> +<div class='detail_footer'><a href='javascript:hide("category_detail");'>{% trans "Close" %}</a></div> diff --git a/templates/main_map.html b/templates/main_map.html index 882e0f2..164d0ae 100644 --- a/templates/main_map.html +++ b/templates/main_map.html @@ -17,6 +17,7 @@ lst_{{category.id}}.push("{{sub_category.id}}");{% endfor %} <img alt='{{sub_category.name}}' src='{{media_path}}{{sub_category.icon.image}}'/> {% trans sub_category.name %}</label> <img class='zoom_image' alt='{% trans "Zoom to" %} {{sub_category.name}}' src='{{media_path}}icons/zoom.png' onclick='zoomToCategory({{sub_category.id}})'/></li>{% endfor %} + {%if category.description%}<li><a href='#' onclick='displayCategoryDetail({{category.id}});'>{%trans "Tell me more..."%}</a></li>{%endif%} </ul> </li>{% endfor %} <li id='display_submited'><input type='checkbox' onclick='loadGeoObjects()' name='display_submited' id='display_submited_check'/> {% trans "Display markers and routes waiting for validation"%}</li> @@ -32,6 +33,9 @@ lst_{{category.id}}.push("{{sub_category.id}}");{% endfor %} <div id='detail'> </div> +<div id='category_detail'> +</div> + {{welcome}}{% endblock %} {% block content %}<div id='map'></div> <script type='text/javascript'><!-- diff --git a/templates/welcome.html b/templates/welcome.html index 8d15f8e..463f880 100644 --- a/templates/welcome.html +++ b/templates/welcome.html @@ -12,5 +12,5 @@ {%endfor%} </div>{%endif%} </div> -<div id='detail_footer'><a href='javascript:hide("welcome");'>{% trans "Close" %}</a></div> -</div>
\ No newline at end of file +<div class='detail_footer'><a href='javascript:hide("welcome");'>{% trans "Close" %}</a></div> +</div> |
