Sha256: 3406a252faddc964be157ad1ce67a9f47f7c476623d840bbc7f24fa882b6e157

Contents?: true

Size: 922 Bytes

Versions: 3

Compression:

Stored size: 922 Bytes

Contents

<header class='header-main'>
  <div class="header-title">
    <%= form_for :search, url: georgia.search_pages_url, 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' %>
      </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 can?(:create, model) %>
  </div>
</header>

<%= content_for :footer do %>
  <%= render 'georgia/shared/modals/page' %>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
georgia-0.7.2 app/views/georgia/pages/_header.html.erb
georgia-0.7.1 app/views/georgia/pages/_header.html.erb
georgia-0.7.0 app/views/georgia/pages/_header.html.erb