blob: 756a6fe2e59c8bf4ad15b57c8e1ea8672fe41b59 [file] [log] [blame]
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00001<header>
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +02002 <nav class="navbar">
3 <%= link_to 'index', class => 'logo', begin %><h1><span><%= title() // loc('korap_desc') %></span><% if (loc('title_addon')) { %><div class="logoaddon"><%= loc('title_addon') %></div><% } %></h1><% end %>
4
5 <div class="navbar-group">
6 %= include 'partial/auth/login'
7 %= content_block 'headerButtonGroup'
8 </div>
9 </nav>
10
Akronc1457bf2015-06-11 19:24:00 +020011 <form autocomplete="off" action="<%= url_for 'index' %>" id="searchform">
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000012 <div id="searchbar">
Akron36c020f2018-03-19 16:25:26 +010013 %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder'), spellcheck => 'false', autocomplete => 'off', autocorrect => 'off', autocapitalize => 'off'
hebasta5df796f2019-05-21 15:27:12 +020014 <button type="submit" id="qsubmit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000015 </div>
Akronc1457bf2015-06-11 19:24:00 +020016
Akroncd42a142019-07-12 18:55:37 +020017 <!-- Search in the following virtual corpus -->
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000018 <div id="vc-view"></div>
Akronc1457bf2015-06-11 19:24:00 +020019 <%= loc 'in' %>
Akron179c8ac2015-06-30 19:30:50 +020020 %# TODO: Create 'align' parameter
Akroncd42a142019-07-12 18:55:37 +020021 %= text_field 'cq', id => 'cq'
Akron9cc3eaf2015-06-10 22:15:52 +020022
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000023 <%= loc 'with' %>
24 <span class="select">
Akron397552c2023-09-18 12:13:33 +020025 %= select_field 'ql', [[loc('QL_poliqarp') => 'poliqarp'], [loc('QL_cosmas2') => 'cosmas2'], [loc('QL_annis') => 'annis'], [loc('QL_cqp') => 'cqp'], [loc('QL_cql') => 'cql'], [loc('QL_fcsql') => 'fcsql']], id => 'ql-field'
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000026 </span>
27 <div class="button right">
28 % param(cutoff => 1) unless param 'q';
29 %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox'
Akrone9e5e832019-04-02 14:56:23 +020030 <label for="q-cutoff-field" title="<%= loc('glimpse_desc') %>"><span id="glimpse"></span><%= loc('glimpse') %></label>
Akron6a535d42015-08-26 20:16:58 +020031 <%= link_to 'doc_start', title => loc('tutorial'), class => "tutorial", id => "view-tutorial", tabindex => '-1', begin %><span><%= loc 'tutorial' %></span><% end %>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000032 </div>
Akron1120a582017-10-17 12:29:16 +020033 <div class="clear"></div>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000034 </form>
35</header>