blob: f35fdc671efa1ae8607021055297f857913919a3 [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>
Uyen-Nhu Tran74103b52024-04-23 01:17:58 +02009
10 <div class="burger-icon"></div>
11
12 <!-- <a href="javascript:void(0);" class="burger-icon" onclick="toggleNavBar()"></a> -->
13
14 <!-- <input type="checkbox" class="burger-icon" id="burger-menu" />
15 <label for="burger-menu" class="burger-icon"></label> -->
Uyen-Nhu Tran87aabcc2024-04-10 01:17:24 +020016 </nav>
17
Akronc1457bf2015-06-11 19:24:00 +020018 <form autocomplete="off" action="<%= url_for 'index' %>" id="searchform">
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000019 <div id="searchbar">
Akron36c020f2018-03-19 16:25:26 +010020 %= 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 +020021 <button type="submit" id="qsubmit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000022 </div>
Akronc1457bf2015-06-11 19:24:00 +020023
Akroncd42a142019-07-12 18:55:37 +020024 <!-- Search in the following virtual corpus -->
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000025 <div id="vc-view"></div>
Akronc1457bf2015-06-11 19:24:00 +020026 <%= loc 'in' %>
Akron179c8ac2015-06-30 19:30:50 +020027 %# TODO: Create 'align' parameter
Akroncd42a142019-07-12 18:55:37 +020028 %= text_field 'cq', id => 'cq'
Akron9cc3eaf2015-06-10 22:15:52 +020029
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000030 <%= loc 'with' %>
31 <span class="select">
Akron397552c2023-09-18 12:13:33 +020032 %= 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 +000033 </span>
34 <div class="button right">
35 % param(cutoff => 1) unless param 'q';
36 %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox'
Akrone9e5e832019-04-02 14:56:23 +020037 <label for="q-cutoff-field" title="<%= loc('glimpse_desc') %>"><span id="glimpse"></span><%= loc('glimpse') %></label>
Akron6a535d42015-08-26 20:16:58 +020038 <%= 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 +000039 </div>
Akron1120a582017-10-17 12:29:16 +020040 <div class="clear"></div>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000041 </form>
42</header>