app/views/search/index.html.haml
- content_for :title do
= t('search.title')
.show-for-small-only.search_form
= form_tag search_index_path, :method => 'get' do
.row
.search-field
= hidden_field_tag :region, current_region.main_slug
= text_field_tag :search, params[:search], placeholder: t('modules.common.topbar.search_form.field_placeholder')
.search-button
%input{type: "submit", class: "button", value: t('modules.common.topbar.search_form.button') }
- unless params[:search].nil?
- if @search_result.days.present?
%h1= t('search.title')
= render partial: "modules/calendars/days", locals: {days: @search_result.days, suggestions: true}
- else
%h1= t('search.nothing_found')