From fcc2a8a480b9d54912a2ba27f647f74a3e63307f Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Tue, 7 Oct 2008 15:59:40 -0400 Subject: make form submit some but not all values --- templates/packages/search.html | 77 +++++++++++++++++++++++++++--------------- 1 file changed, 49 insertions(+), 28 deletions(-) (limited to 'templates') diff --git a/templates/packages/search.html b/templates/packages/search.html index a181801..54d04ef 100644 --- a/templates/packages/search.html +++ b/templates/packages/search.html @@ -10,7 +10,7 @@ {% block content %}

Search Criteria

-
+ @@ -34,48 +34,69 @@

- {% if results %} + {% if package_list %}
Arch
- - - + + + - - + + - {% for pkg in results %} - - - - - - {% if pkg.needupdate %} - - {% else %} - + {% for pkg in package_list %} + + + + + + {% if pkg.needupdate %} + + {% else %} + + {% endif %} + + + + + {% endfor %} + {% if paginator %} + + + + +
+ {% endif %} - - - - - {% endfor %} - - - - - -
 ArchRepoNameArchRepoName Version DescriptionMaintainerLast UpdatedMaintainerLast Updated
{{ pkg.arch.name }}{{ pkg.repo.name|capfirst }}{{ pkg.pkgname }}{{ pkg.pkgver }}-{{ pkg.pkgrel }}{{ pkg.pkgver }}-{{ pkg.pkgrel }}
{{ pkg.arch.name }}{{ pkg.repo.name|capfirst }}{{ pkg.pkgname }}{{ pkg.pkgver }}-{{ pkg.pkgrel }}{{ pkg.pkgver }}-{{ pkg.pkgrel }}{{ pkg.pkgdesc }}{{ pkg.maintainer|default:"Orphan" }}{{ pkg.last_update|date:"Y-m-d" }}
+ {{paginator.count}} packages found. + Page {{page_obj.number}} of {{paginator.num_pages}}. + + {% if page_obj.has_previous %} + + <<< Previous + + {% else %} + <<< Previous + {% endif %} + + {% if page_obj.has_next %} + + Next >>> + + {% else %} >>> + Next + {% endif %} +
{{ pkg.pkgdesc }}{{ pkg.maintainer|default:"Orphan" }}{{ pkg.last_update|date:"Y-m-d" }}
{% if prevpage %}
<<< Prev{% endif %}
 {% if nextpage %}
Next >>>{% endif %}
   
{% endif %} -- cgit v1.2.3-24-g4f1b