index.index.tpl 1.79 KB
Newer Older
1
{extends file="asset:System/layout.ajax-form.tpl"}
2

3
{block CONTENT_BEFORE_AJAX_FORM}
4
    {redirect_message}
5
{/block}
6
{block CONTENT_AJAX_FORM}
7 8
    {include file="asset:System/Partials/form_group.input_text.tpl" name="search_term" value=$form.search_term required=true label={lang t="search|search_term"}}
    <div class="form-group">
9 10 11 12 13 14 15 16 17
        <div class="col-sm-offset-2 col-sm-10">
            <button type="button" id="search-advanced-toggle" class="btn btn-default">
                {lang t="search|advanced_search"}
            </button>
        </div>
    </div>
    <div id="search-advanced-wrapper" class="hidden">
        <div class="form-group">
            <label class="col-sm-2 control-label required">{lang t="search|search_after_modules"}</label>
18

19 20 21 22 23 24 25 26 27
            <div class="col-sm-10">
                <div class="btn-group" data-toggle="buttons">
                    {foreach $search_mods as $row}
                        <label for="mods-{$row.dir}" class="btn btn-default{if !empty($row.checked)} active{/if}">
                            <input type="checkbox" name="mods[]" id="mods-{$row.dir}" value="{$row.dir}"{$row.checked}>
                            {$row.name}
                        </label>
                    {/foreach}
                </div>
28 29
            </div>
        </div>
30 31
        {include file="asset:System/Partials/form_group.button_group.tpl" options=$search_areas required=true label={lang t="search|search_after_areas"}}
        {include file="asset:System/Partials/form_group.button_group.tpl" options=$sort_hits required=true label={lang t="search|sort_hits"}}
32
    </div>
33
    {include file="asset:System/Partials/form_group.submit.tpl" submit_label={lang t="search|submit_search"}}
34 35 36
    {javascripts}
        {include_js module="search" file="frontend/index.index"}
    {/javascripts}
37
{/block}