diff options
| author | czaks <marcin@6irc.net> | 2013-07-20 17:28:34 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-20 17:28:34 -0400 |
| commit | 9f323ae65fb9370a93d1aaa869ab5edfbaca49cf (patch) | |
| tree | 926a464440df8a37509ae54165edefac4a89d874 /templates/mod/search_form.html | |
| parent | f04566f6d30553560d5a69e25e38de72a60f297c (diff) | |
| parent | e8b693b0447e5a61f740b27c5f3a57f68d544342 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
templates/themes/sitemap/info.php
Diffstat (limited to 'templates/mod/search_form.html')
| -rw-r--r-- | templates/mod/search_form.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/mod/search_form.html b/templates/mod/search_form.html new file mode 100644 index 00000000..d8a2fed4 --- /dev/null +++ b/templates/mod/search_form.html @@ -0,0 +1,18 @@ +<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 %}>{% trans '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 %}>{% trans 'IP address notes' %}</option> + {% endif %} + {% if mod|hasPermission(config.mod.view_banlist) %} + <option value="bans"{% if search_type == 'bans'%} selected{% endif %}>{% trans 'Bans' %}</option> + {% endif %} + {% if mod|hasPermission(config.mod.modlog) %} + <option value="log"{% if search_type == 'log'%} selected{% endif %}>{% trans 'Moderation log' %}</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 |
