Sha256: 6cdf1a2abb133f264c18690011d94d8cafd82b72c70c24b1ff49a26b024bd8ed

Contents?: true

Size: 1.43 KB

Versions: 4

Compression:

Stored size: 1.43 KB

Contents

<% # we will yield to content_for for each tab, e.g. :files_tab %>
<% tabs ||= %w[metadata files 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">
              <%= t("sufia.works.edit.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 %>
          <%= yield "#{tab}_tab".to_sym if content_for? "#{tab}_tab".to_sym %>
        <%= render "form_#{tab}", f: f %>
        </div>
      <% end %>

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sufia-7.1.0 app/views/curation_concerns/base/_guts4form.html.erb
sufia-7.0.0 app/views/curation_concerns/base/_guts4form.html.erb
sufia-7.0.0.rc2 app/views/curation_concerns/base/_guts4form.html.erb
sufia-7.0.0.rc1 app/views/curation_concerns/base/_guts4form.html.erb