diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-20 07:50:33 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-07-20 07:50:33 -0400 |
| commit | e62b83e79c8ed3b9ddf6e7e4b8bdeedc0d319ff4 (patch) | |
| tree | 2cefd703a26f7de18782f3b0f7ba90230ff4cc30 /templates/mod/search_form.html | |
| parent | 158a7c0e79a7d0e8000e8797a277c3fdbf463e0d (diff) | |
Bring back search (searching posts not implemented yet)
Diffstat (limited to 'templates/mod/search_form.html')
| -rw-r--r-- | templates/mod/search_form.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/mod/search_form.html b/templates/mod/search_form.html new file mode 100644 index 00000000..c74121fd --- /dev/null +++ b/templates/mod/search_form.html @@ -0,0 +1,15 @@ +<form style="display:inline" action="?/search" method="post"> + <label style="display:inline" for="search">{% trans 'Phrase:' %}</label> + <input id="search" name="query" type="text" size="60" value="{{ search_query|e }}"> + <select name="type"> + <option value="posts"{% if search_type == 'posts'%} selected{% endif %}>Posts</option> + {% if mod|hasPermission(config.mod.view_notes) and mod|hasPermission(config.mod.show_ip) %} + <option value="IP_notes"{% if search_type == 'IP_notes'%} selected{% endif %}>IP address notes</option> + {% endif %} + {% if mod|hasPermission(config.mod.view_banlist) %} + <option value="bans"{% if search_type == 'bans'%} selected{% endif %}>Bans</option> + {% endif %} + </select> + <input type="submit" value="{% trans 'Search' %}"> +</form> +<p class="unimportant">{% trans '(Search is case-insensitive and based on keywords. To match exact phrases, use "quotes". Use an asterisk (*) for wildcard.)' %}</p>
\ No newline at end of file |
