Sha256: 40cdf86a0ccfe91f6e3f781a5193309c04f5d29677c405a844e1973f0990ffa2
Contents?: true
Size: 1.82 KB
Versions: 9
Compression:
Stored size: 1.82 KB
Contents
<% # we will yield to content_for for each tab, e.g. :files_tab %> <% tabs ||= %w[metadata files relationships] # 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 %> <li role="presentation" id="tab-share" class="hidden"> <a href="#share" aria-controls="share" role="tab" data-toggle="tab"> <i class="fa icon-share"></i> <%= t("hyrax.works.form.tab.share") %> </a> </li> </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
9 entries across 9 versions & 1 rubygems