Sha256: d028b1b4bb9722655192a68f6004ef75e5ef2cd11598aa8ac7fa7d47499c729f

Contents?: true

Size: 1.59 KB

Versions: 6

Compression:

Stored size: 1.59 KB

Contents

<% # we will yield to content_for for each tab, e.g. :files_tab %>
<% tabs ||= %w[metadata relationships share] # default tab order %>
<div class="row">
  <div class="col-xs-12 col-sm-8" role="main">

    <!-- Nav tabs -->
    <ul class="nav nav-tabs" role="tablist">
      <% tabs.each_with_index do | tab, i | %>
        <% if i == 0 %>
          <li role="presentation" class="active">
        <% else %>
          <li role="presentation">
        <% end %>
            <a href="#<%= tab %>" aria-controls="<%= tab %>" role="tab" data-toggle="tab">
              <i class="fa icon-<%= tab %>"></i> <%= t("hyrax.works.form.tab.#{tab}") %>
            </a>
          </li>
      <% end %>
    </ul>

    <!-- Tab panes -->
    <div class="tab-content">
      <% (tabs - ['share']).each_with_index do | tab, i | %>
        <% if i == 0 %>
          <div role="tabpanel" class="tab-pane active" id="<%= tab %>">
        <% else %>
          <div role="tabpanel" class="tab-pane" id="<%= tab %>">
        <% end %>
          <div class="form-tab-content">
            <%= yield "#{tab}_tab".to_sym if content_for? "#{tab}_tab".to_sym %>
            <%= render "form_#{tab}", f: f %>
          </div>
        </div>
      <% end %>

      <div role="tabpanel" class="tab-pane" id="share" data-param-key="<%= f.object.model_name.param_key %>">
          <div class="form-tab-content">
            <%= render "form_share", f: f %>
          </div>
      </div>
    </div>
  </div>

  <div id="savewidget" class="col-xs-12 col-sm-4 fixedsticky" role="complementary">
    <%= render 'geo_works/form_progress', f: f %>
  </div>
</div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geo_works-0.2.0 app/views/geo_works/_guts4form.html.erb
geo_works-0.1.4 app/views/geo_works/_guts4form.html.erb
geo_works-0.1.3 app/views/geo_works/_guts4form.html.erb
geo_works-0.1.2 app/views/geo_works/_guts4form.html.erb
geo_works-0.1.1 app/views/geo_works/_guts4form.html.erb
geo_works-0.1.0 app/views/geo_works/_guts4form.html.erb