blob: 12d47aa58ffa9c0129396b807408557303d2c448 [file] [log] [blame]
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00001<header>
Nils Diewaldeb25f5f2015-05-08 00:44:42 +00002 <%= link_to 'index', class => 'logo', begin %><h1><span><%= title() // loc('korap_desc') %></span></h1><% end %>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00003 <div class="button top">
Nils Diewald19402142015-04-30 15:44:52 +00004<!--
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00005 <a href="#"
6 class="login"
7 title="<%= loc 'login' %>"><span><%= loc 'login' %></span></a>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +00008-->
Nils Diewald19402142015-04-30 15:44:52 +00009 </div>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000010 <form autocomplete="off" action="<%= url_for 'index' %>">
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000011 <div id="searchbar">
Nils Diewald9922edf2015-05-07 20:03:33 +000012 %= search_field 'q', id => 'q-field', autofocus => 'autofocus', placeholder => loc('searchplaceholder'), spellcheck => 'false', autocomplete => 'off', autocorrect => 'off', autocapitalize => 'off'
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000013 <button type="submit" title="<%= loc 'go' %>"><span><%= loc 'go' %></span></button>
14 </div>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000015 <!-- Search in the following virtual collection -->
16 <!--
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000017 <div id="vc-view"></div>
18 <%= loc 'in' %> <input type="hidden" id="vc-name" name="vc-name" value="Wikipedia" />
19 <input type="text" name="vc" id="vc" value="corpusID = Wikipedia" />
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000020 -->
21 <%= loc 'with' %>
22 <span class="select">
23 %= select_field 'ql', [[Poliqarp => 'poliqarp'], ['Cosmas II' => 'cosmas2'], ['Annis' => 'annis'], ['CQL v1.2' => 'cql']], id => 'ql-field'
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000024 </span>
25 <div class="button right">
26 % param(cutoff => 1) unless param 'q';
27 %= check_box cutoff => 1, id => 'q-cutoff-field', class => 'checkbox'
28 <label for="q-cutoff-field"><span></span><%= loc('glimpse') %></label>
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000029<!--
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000030 % unless (current_route 'tutorial') {
31 <a href="/doc/faq"
32 title="<%= loc 'faq' %>"
33 class="question"
34 id="view-faq"><span><%= loc 'faq' %></span></a>
35 % };
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000036-->
Nils Diewaldac62a5d2015-05-08 00:09:08 +000037 <%= link_to 'doc_start', title => loc('tutorial'), class => "tutorial", id => "view-tutorial", begin %><span><%= loc 'tutorial' %></span><% end %>
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000038 </div>
39 </form>
40</header>