summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-07 19:15:59 +0200
committerDusty Phillips <buchuki@gmail.com>2008-10-07 19:15:59 +0200
commit0b96068803b81ea79baaea11b1b29450596c019c (patch)
tree67b5f709bd91d3f31efff277d16840a59f8fe3c3 /templates
parent22f22ef66927a09b8eda4d731d5af15e0c42a345 (diff)
downloadarchweb-0b96068803b81ea79baaea11b1b29450596c019c.tar.gz
archweb-0b96068803b81ea79baaea11b1b29450596c019c.tar.xz
replace package search with a nonfunctional newform
Diffstat (limited to 'templates')
-rw-r--r--templates/forms/td_input.html5
-rw-r--r--templates/packages/search.html89
-rw-r--r--templates/packages/signoffs.html2
3 files changed, 30 insertions, 66 deletions
diff --git a/templates/forms/td_input.html b/templates/forms/td_input.html
new file mode 100644
index 0000000..38ff5a1
--- /dev/null
+++ b/templates/forms/td_input.html
@@ -0,0 +1,5 @@
+<td>
+ {{form_element.errors}}
+ {{form_element}}
+ {{form_element.help_text}}
+</td>
diff --git a/templates/packages/search.html b/templates/packages/search.html
index f671c3a..a181801 100644
--- a/templates/packages/search.html
+++ b/templates/packages/search.html
@@ -1,76 +1,35 @@
-{% load package_extras %}
{% extends "base.html" %}
+{% load package_extras %}
{% block title %}Arch Linux - Package Search{% endblock %}
{% block head %}
-<script type="text/JavaScript" src="/media/calendar.js"></script>
-<link href="/media/calendar.css" rel="stylesheet" type="text/css" />
+<script type="text/javascript" src="/admin/jsi18n/"></script>
+<script type="text/javascript" src="/media/admin_media/js/core.js"></script>
+{{search_form.media}}
{% endblock %}
{% block content %}
<div class="greybox">
<h4 style="text-align: right">Search Criteria</h4>
- {% if errors %}
- {% print_errors errors %}
- {% endif %}
- <hr />
- <form method="get" action="/packages/search/">
- <table width="100%">
- <tr>
- <td><span class="smalltext">Arch</span></td>
- <td><span class="smalltext">Repository</span></td>
- <td><span class="smalltext">Keywords</span></td>
- <td><span class="smalltext">Maintainer</span></td>
- <td><span class="smalltext">Last Update</span></td>
- <td><span class="smalltext">Per Page</span></td>
- </tr><tr>
- <td>
- <select name="arch">
- <option value="all">All</option>
- {% for a in arches %}
- <option value="{{ a.name }}"{% ifequal arch a.name %} selected{% endifequal %}>{{ a.name }}</option>
- {% endfor %}
- </select>
- </td><td>
- <select name="repo">
- <option value="all">All</option>
- {% for r in repos %}
- <option value="{{ r.name }}"{% ifequal repo r.name %} selected{% endifequal %}>{{ r.name|capfirst }}</option>
- {% endfor %}
- </select>
- </td><td>
- <input type="text" name="q" value="{{ query|escape }}" size="30" maxlength="200" />
- </td><td>
- <select name="maint">
- <option value="all">All</option>
- {% for u in users %}
- <option value="{{u.id}}" {% ifequal maint u.id
- %}selected=selected {%
- %endifequal%}>{{u.username}}</option>
- {% endfor %}
- </td><td>
- <input type="text" name="lastupdate" value="{{ lastupdate|escape }}" size="10" maxlength="10" id="f_lastupdate" /> <button type="reset" id="f_trigger">...</button>
- <script type="text/javascript">
- Calendar.setup({
- inputField : "f_lastupdate", // id of the input field
- ifFormat : "%Y-%m-%d", // format of the input field
- showsTime : false, // will display a time selector
- button : "f_trigger", // trigger for the calendar (button ID)
- singleClick : true, // double-click mode
- step : 1 // show all years in drop-down boxes (instead of every other year as default)
- });
- </script>
- </td><td>
- <select name="limit">
- <option value="50"{% ifequal limit 50 %} selected{% endifequal %}>50</option>
- <option value="100"{% ifequal limit 100 %} selected{% endifequal %}>100</option>
- <option value="250"{% ifequal limit 250 %} selected{% endifequal %}>250</option>
- <option value="0"{% ifequal limit 0 %} selected{% endifequal %}>All</option>
- </select>
- </td><td>
- <input type="submit" value=" Search " />
- </td>
- </tr>
- </table>
+ <form method="get">
+ <table width="100%">
+ <tr>
+ <td><span class="smalltext">Arch</span></td>
+ <td><span class="smalltext">Repository</span></td>
+ <td><span class="smalltext">Keywords</span></td>
+ <td><span class="smalltext">Maintainer</span></td>
+ <td><span class="smalltext">Last Update</span></td>
+ <td><span class="smalltext">Per Page</span></td>
+ </tr>
+ <tr>
+ {% td_input search_form.arch %}
+ {% td_input search_form.repo %}
+ {% td_input search_form.keywords %}
+ {% td_input search_form.maintainer%}
+ {% td_input search_form.last_update %}
+ {% td_input search_form.limit %}
+ <td><input type="submit" value="Search" />
+ </tr>
+ </table>
</form>
</div>
<br /><br />
diff --git a/templates/packages/signoffs.html b/templates/packages/signoffs.html
index 55d534d..7db2927 100644
--- a/templates/packages/signoffs.html
+++ b/templates/packages/signoffs.html
@@ -1,5 +1,5 @@
-{% load package_extras %}
{% extends "base.html" %}
+{% load package_extras %}
{% block title %}Arch Linux - Package Signoffs{% endblock %}
{% block head %}
<script type="text/JavaScript" src="/media/calendar.js"></script>