blob: c3e7e6e3a82d4588c98040a472ca31f9beadf866 [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>
Akronc1457bf2015-06-11 19:24:00 +020010 <form autocomplete="off" action="<%= url_for 'index' %>" id="searchform">
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>
Akronc1457bf2015-06-11 19:24:00 +020015
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000016 <!-- Search in the following virtual collection -->
Nils Diewaldab4d3ca2015-04-17 01:48:43 +000017 <div id="vc-view"></div>
Akronc1457bf2015-06-11 19:24:00 +020018 <%= loc 'in' %>
Akron179c8ac2015-06-30 19:30:50 +020019 %# TODO: Create 'align' parameter
Akron7716f012015-07-01 20:38:32 +020020 %= hidden_field 'collection-name' => param('collection-name'), id => 'collection-name'
Akronc1457bf2015-06-11 19:24:00 +020021 %= text_field 'collection', id => 'collection'
Akron9cc3eaf2015-06-10 22:15:52 +020022
Nils Diewaldfccfbcb2015-04-29 20:48:19 +000023 <%= loc 'with' %>
24 <span class="select">
Akron7716f012015-07-01 20:38:32 +020025 %= select_field 'ql', [[loc('QL_poliqarp') => 'poliqarp'], [loc('QL_cosmas2') => 'cosmas2'], [loc('QL_annis') => 'annis'], [loc('QL_cql') => 'cql']], 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'
Akron229bd412015-05-28 19:01:19 +020030 <label for="q-cutoff-field" title="<%= loc('glimpse_desc') %>"><span></span><%= loc('glimpse') %></label>
Nils Diewaldac62a5d2015-05-08 00:09:08 +000031 <%= 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 +000032 </div>
33 </form>
34</header>