view MoinMoin/templates/search.html @ 2851:5a49eeb1f307

add spaces to jinja2 expressions, add tests for missing spaces to coding_std.py
author RogerHaase <haaserd@gmail.com>
date Wed, 19 Nov 2014 11:51:19 -0700
parents 615599f53b07
children
line wrap: on
line source
{% extends theme("layout.html") %}
{% import "forms.html" as forms %}
{% import "utils.html" as utils %}

{% set search_form = None %} {# layout will not show search form in header #}

{% block pagepath %}
    {{ _("Search") }}
    {{ super() }}
{% endblock %}

{% block content %}
    <h1>{{ _("Search") }}</h1>
    {{ gen.form.open(medium_search_form, id='moin-long-searchform', method='get', action=url_for('frontend.search', item_name=item_name)) }}
        <p>
            {{ forms.render(medium_search_form['q']) }}
            {{ forms.render_submit(medium_search_form) }}
        </p>
        <div class="moin-search-option-bar"><h4 style="display:inline-block">Search Options</h4><span class="fa fa-chevron-down"></span></div>
        <div class="moin-searchoptions hidden">
            <table>
                <tr colspan="4">
                    <th width="20%">Revisions</td>
                    <th width="20%">Sort By Time</td>
                    <th width="60%" colspan="3">Content Types</td>
                </tr>
                <tr>
                    <td>
                        <label id="moin-option"><input type="radio" name="history" value="latest" checked="checked"> Latest</label><br>
                        <label id="moin-option"><input type="radio" name="history" value="all"> All</label><br>
                    </td>
                    <td>
                        <form>
                            <label id="moin-option"><input type="radio" name="modified_time" value="default" checked="checked"> Default</label><br>
                            <label id="moin-option"><input type="radio" name="modified_time" value="old"> Older First</label><br>
                            <label id="moin-option"><input type="radio" name="modified_time" value="new"> Newer First</label><br>
                        </form>
                    </td>
                    <form>
                        <td>
                            <label id="moin-option"><input type="checkbox" name="itemtype" value="markup"> Markup Text</label><br>
                            <label id="moin-option"><input type="checkbox" name="itemtype" value="text"> Other Text</label><br>
                            <label id="moin-option"><input type="checkbox" name="itemtype" value="image"> Image</label><br>
                        </td>
                        <td>
                            <label id="moin-option"><input type="checkbox" name="itemtype" value="audio"> Audio</label><br>
                            <label id="moin-option"><input type="checkbox" name="itemtype" value="video"> Video</label><br>
                            <label id="moin-option"><input type="checkbox" name="itemtype" value="drawing"> Drawing</label><br>
                        </td>
                        <td>
                            <label id="moin-option"><input type="checkbox" name="itemtype" value="other"> Other</label><br>
                            <label id="moin-option"><input type="checkbox" name="itemtype" value="unknown"> Unknown</label><br>
                            <label id="moin-option"><input type="checkbox" name="itemtype" value="all" checked="checked"> All</label><br>
                        </td>
                   </form>
                </tr>
            </table>
        </div>
        <p>
            {{ forms.render_errors(medium_search_form) }}
        </p>
    {{ gen.form.close() }}
    <div id="finalresults">
        {% include "ajaxsearch.html" %}
    </div>
{% endblock %}

{% block body_scripts %}
    <script src="{{ url_for('serve.files', name='jquery', filename='jquery.min.js') }}"></script>
    <script src="{{ url_for('static', filename='js/search.js') }}"></script>
{% endblock %}