{# -*- coding: utf-8 -*-
    Copyright (C) 2020 CERN.
    Copyright (C) 2020 Northwestern University.

    Invenio App RDM is free software; you can redistribute it and/or modify it
    under the terms of the MIT License; see LICENSE file for more details.
#}

{%- extends config.THEME_HEADER_TEMPLATE %}

{#- Remove search field from top bar on frontpage #}
{%- block navbar_search %}{% endblock %}

{%- block navbar %}
{{ super() }}

{%- block frontpage_search %}
<div id="frontpage-search-bar" class="ui container fluid cover-page">
  <div class="ui container two column centered middle aligned grid">
    <div class="row middle aligned">
      <div class="sixteen wide column frontpage-search">
        {%- block frontpage_title %}
        <h1 class="ui center aligned header">
          {{ _(config.THEME_FRONTPAGE_TITLE) }}
        </h1>
        {%- endblock frontpage_title %}
        {%- block frontpage_form %}
        <div class="ui center aligned grid">
          <div class="search-bar">
            <form action="{{ url_for('invenio_search_ui.search') }}" class="ui form">
              <div class="ui fluid big action input">
                <input type="text" name="q" class="form-control" placeholder="{{ _("Search") }}">
                <button type="submit" class="ui icon search button"><i class="search icon"></i></button>
              </div>
            </form>
          </div>
        </div>
        <div class="ui divider hidden"></div>
        {%- endblock frontpage_form %}
      </div>
    </div>
  </div>
</div>
{%- endblock frontpage_search %}

{% endblock %}
