Author: floguy
Date: Sat Oct 4 16:04:52 2008
New Revision: 41
Modified:
trunk/things/templates/things/ordering.html
trunk/things/templates/things/search.html
Log:
Changed search and ordering templates to take advantage of the new features
in django-things like persisted search.
Modified: trunk/things/templates/things/ordering.html
==============================================================================
--- trunk/things/templates/things/ordering.html (original)
+++ trunk/things/templates/things/ordering.html Sat Oct 4 16:04:52 2008
@@ -1,6 +1,7 @@
+{% load things_tags %}
<ul>
{% for field in fields %}
- <li><a href="{{ field.full_url_asc }}">{{ field.verbose_name_asc
}}</a></li>
- <li><a href="{{ field.full_url_desc }}">{{ field.verbose_name_desc
}}</a></li>
+ <li><a href="{{ field.full_url_asc }}{% persist_getvars
request %}">{{ field.verbose_name_asc }}</a></li>
+ <li><a href="{{ field.full_url_desc }}{% persist_getvars
request %}">{{ field.verbose_name_desc }}</a></li>
{% endfor %}
</ul>
Modified: trunk/things/templates/things/search.html
==============================================================================
--- trunk/things/templates/things/search.html (original)
+++ trunk/things/templates/things/search.html Sat Oct 4 16:04:52 2008
@@ -1,6 +1,10 @@
+{% load things_tags %}
{% if search_enabled %}
<form method="GET" action="">
<input type="text" name="search" value="{{ terms }}" />
<input type="submit" value="Search" />
+ {% if terms %}
+ <a href="{% clear_search_url request %}">Clear Search Terms</a>
+ {% endif %}
</form>
{% endif %}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---