Sha256: b3f7647d72dd6b560d91f2f71714845f25df834791b1d4c469a6e156dc6b4bb4

Contents?: true

Size: 1.55 KB

Versions: 7

Compression:

Stored size: 1.55 KB

Contents

<%= page_title(t('.section'), t('.page_title')) %>
<div role="tabpanel">
  <%= bootstrap_form_for @site, url: spotlight.site_path, layout: :horizontal, label_col: 'col-md-2', control_col: 'col-md-10' do |f| %>
    <ul class="nav nav-tabs" role="tablist">
      <li role="presentation" class="nav-item">
        <a href="#basic" class="active nav-link" aria-controls="basic" role="tab" data-toggle="tab"><%= t(:'.basic_settings.heading') %></a>
      </li>
      <li role="presentation" class="nav-item">
        <a href="#site-masthead" class="nav-link" aria-controls="site-masthead" role="tab" data-toggle="tab"><%= t(:'.site_masthead.heading') %></a>
      </li>
    </ul>
    <div class="tab-content">
      <div role="tabpanel" class="tab-pane active" id="basic">
        <%= f.text_field :title %>
        <%= f.text_field :subtitle %>
      </div>

      <div role="tabpanel" class="tab-pane" id="site-masthead">
        <p class="instructions"><%= t(:'.site_masthead.help') %></p>
        <%= f.fields_for(:masthead, @site.masthead || @site.build_masthead) do |m| %>
          <%= render '/spotlight/featured_images/upload_form', f: m, initial_crop_selection: Spotlight::Engine.config.masthead_initial_crop_selection, crop_type: :masthead %>
        <% end %>
      </div>
    </div>

    <div class="form-actions">
      <div class="primary-actions">
        <%= f.submit nil, class: 'btn btn-primary' %>
      </div>
    </div>
  </div>
<% end %>

<% content_for(:sidebar_position) { 'order-last' } %>
<% content_for(:sidebar) do %>
  <%= render 'shared/site_sidebar' %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.7 app/views/spotlight/sites/edit.html.erb
blacklight-spotlight-3.0.0.alpha.6 app/views/spotlight/sites/edit.html.erb
blacklight-spotlight-3.0.0.alpha.5 app/views/spotlight/sites/edit.html.erb
blacklight-spotlight-3.0.0.alpha.4 app/views/spotlight/sites/edit.html.erb
blacklight-spotlight-3.0.0.alpha.3 app/views/spotlight/sites/edit.html.erb
blacklight-spotlight-3.0.0.alpha.2 app/views/spotlight/sites/edit.html.erb
blacklight-spotlight-3.0.0.alpha.1 app/views/spotlight/sites/edit.html.erb