source: djangobb/djangobb_forum/templates/forum/search_form.html @ 326:b95215b73b3b

Last change on this file since 326:b95215b73b3b was 326:b95215b73b3b, checked in by slav0nic <slav0nic0@…>, 2 years ago

imported patch html_w3c.patch

File size: 2.5 KB
Line 
1{% extends 'forum/base.html' %}
2{% load forum_extras %}
3{% load i18n %}
4
5{% block content %}
6<div id="searchform" class="blockform">
7        <h2><span>{% trans "Search" %}</span></h2>
8        <div class="box">
9                <form id="search" method="get" action="">
10                        <div class="inform">
11                <input type="hidden" name="action" value="search" />
12                                <fieldset>
13                                        <legend>{% trans "Enter your search criteria" %}</legend>
14                                        <div class="infldset">
15                                                <label class="conl">{{ form.keywords.label }}<br />{{ form.keywords }}<br /></label>
16                                                <label class="conl">{{ form.author.label }}<br />{{ form.author }}<br /></label>
17
18                                                <p class="clearb">{% trans "To search by keyword, enter a term or terms to search for. Separate terms with spaces. To search by author enter the username of the author whose posts you wish to search for." %}</p>
19                                        </div>
20                                </fieldset>
21                        </div>
22                        <div class="inform">
23                                <fieldset>
24                                        <legend>{% trans "Select where to search" %}</legend>
25                                        <div class="infldset">
26
27                                                <label class="conl">{{ form.forum.label }}
28                                                <br />
29                                                <select id="forum" name="forum">
30                                                        <option value="0">{% trans "All forums" %}</option>
31                                                        {% for category in categories %}
32                                                        <optgroup label="{{ category }}">
33                                                                {% for forum in category.forums.all %}
34                                                                <option value="{{ forum.id }}">{{ forum }}</option>
35                                                                {% endfor %}
36                                                        </optgroup>
37                                                        {% endfor %}
38                                                </select>
39                                                <br /></label>
40                                                <label class="conl">{{ form.search_in.label }}
41                                                <br />
42                                                {{ form.search_in }}
43                                                <br /></label>
44                                                <p class="clearb">{% trans "Choose in which forum you would like to search and if you want to search in topic subjects, message text or both." %}</p>
45                                        </div>
46                                </fieldset>
47                        </div>
48                        <div class="inform">
49                                <fieldset>
50
51                                        <legend>{% trans "Select how to view search results" %}</legend>
52                                        <div class="infldset">
53                                                <label class="conl">{{ form.sort_by.label }}
54                                                <br />
55                                                {{ form.sort_by }}
56                                                <br /></label>
57                                                <label class="conl">{{ form.sort_dir.label }}
58                                                <br />
59                                                {{ form.sort_dir }}
60
61                                                <br /></label>
62                                                <label class="conl">{{ form.show_as.label }}
63                                                <br />
64                                                {{ form.show_as }}
65                                                <br /></label>
66                                                <p class="clearb">{% trans "You can choose how you wish to sort and show your results." %}</p>
67
68                                        </div>
69                                </fieldset>
70                        </div>
71                        <p><input type="submit" name="search" value="{% trans "Submit" %}" accesskey="s" /></p>
72                </form>
73        </div>
74</div>
75{% endblock %}
76
77{% block controls %}
78{% endblock %}
Note: See TracBrowser for help on using the repository browser.