Sha256: c2faace71eb62a9926130406f74a08ec3b20e8afdd483ab44b5e5073087be15b

Contents?: true

Size: 982 Bytes

Versions: 1

Compression:

Stored size: 982 Bytes

Contents

<header class='header-main'>
  <div class="header-title">
    <%= form_for :search, url: georgia.search_pages_path, method: :get, html: {role: 'search'} do |f| %>
      <%= facets_inputs([:tg]) %>
      <%= hidden_field_tag :s, params[:s] if params[:s] %>
      <%= hidden_field_tag :t, params[:t] if params[:t] %>
      <div class="input-group">
        <div class="input-group-btn">
          <button class="btn btn-default"><%= icon_tag('search') %></button>
        </div>
        <%= text_field_tag :query, params[:query], class: 'form-control input-search', placeholder: 'Search', autofocus: true %>
      </div>
    <% end -%>
  </div>
  <div class="header-actions">
    <%= link_to "#{icon_tag('plus')} Add new".html_safe, '#', class: 'btn btn-primary', data: {toggle: 'modal', target: '#page_form'} if policy(Georgia::Page).create? %>
  </div>
</header>

<%= content_for :footer do %>
  <%= render 'georgia/shared/modals/page' if policy(Georgia::Page).create? %>
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.8.0 app/views/georgia/pages/_header.html.erb