Sha256: c6e4ea306c5fb0363ca792a5fe732078babf2c8021ec25941ac664e8eaa8740a
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 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"> <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 'form_progress', f: f %> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
test_hyrax-0.0.1.alpha | app/views/hyrax/base/_guts4form.html.erb |