Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweaking the needed classes in the HTML.
- Loading branch information
mtribone
committed
Apr 18, 2016
1 parent
ac508dc
commit cfca425
Showing
2 changed files
with
35 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,40 @@ | ||
<div class="row wrapper-1"> | ||
<%= simple_form_for [main_app, @form], html: { multipart: true } do |f| %> | ||
<div class="col-xs-12 col-sm-8" role="main"> | ||
<%= simple_form_for [main_app, @form], html: {multipart: true} do |f| %> | ||
<div class="row wrapper-1"> | ||
<div class="col-xs-12 col-sm-8" role="main"> | ||
|
||
<!-- Nav tabs --> | ||
<ul class="nav nav-tabs" role="tablist"> | ||
<li role="presentation" class="active"><a href="#metadata" aria-controls="metadata" role="tab" data-toggle="tab">Metadata</a></li> | ||
<li role="presentation"><a href="#files" aria-controls="files" role="tab" data-toggle="tab">Files</a></li> | ||
<li role="presentation"><a href="#relationships" aria-controls="relationships" role="tab" data-toggle="tab">Relationships</a></li> | ||
<li role="presentation"><a href="#share" aria-controls="share" role="tab" data-toggle="tab">Share</a></li> | ||
</ul> | ||
<!-- Nav tabs --> | ||
<ul class="nav nav-tabs" role="tablist"> | ||
<li role="presentation" class="active"> | ||
<a href="#metadata" aria-controls="metadata" role="tab" data-toggle="tab">Metadata</a></li> | ||
<li role="presentation"><a href="#files" aria-controls="files" role="tab" data-toggle="tab">Files</a></li> | ||
<li role="presentation"> | ||
<a href="#relationships" aria-controls="relationships" role="tab" data-toggle="tab">Relationships</a></li> | ||
<li role="presentation"><a href="#share" aria-controls="share" role="tab" data-toggle="tab">Share</a></li> | ||
</ul> | ||
|
||
<!-- Tab panes --> | ||
<div class="tab-content"> | ||
<div role="tabpanel" class="tab-pane active" id="metadata"> | ||
<% unless f.object.persisted? %> | ||
<p class="switch-upload-type">To create a separate work for each of the files, go to <%= link_to "Batch upload", sufia.new_batch_upload_path %></p> | ||
<% end %> | ||
<%= render 'form_metadata', f: f %> | ||
<!-- Tab panes --> | ||
<div class="tab-content"> | ||
<div role="tabpanel" class="tab-pane active" id="metadata"> | ||
<% unless f.object.persisted? %> | ||
<p class="switch-upload-type">To create a separate work for each of the files, go | ||
to <%= link_to "Batch upload", sufia.new_batch_upload_path %></p> | ||
<% end %> | ||
<%= render 'form_metadata', f: f %> | ||
</div> | ||
<div role="tabpanel" class="tab-pane" id="files"> | ||
<%= render 'form_files', f: f %> | ||
</div> | ||
<div role="tabpanel" class="tab-pane" id="relationships"> | ||
<%= render 'form_relationships', f: f %> | ||
</div> | ||
<div role="tabpanel" class="tab-pane" id="share"> | ||
<%= render 'form_share', f: f %> | ||
</div> | ||
</div> | ||
</div> | ||
<div role="tabpanel" class="tab-pane" id="files"> | ||
<%= render 'form_files', f: f %> | ||
</div> | ||
<div role="tabpanel" class="tab-pane" id="relationships"> | ||
<%= render 'form_relationships', f: f %> | ||
</div> | ||
<div role="tabpanel" class="tab-pane" id="share"> | ||
<%= render 'form_share', f: f %> | ||
|
||
<div class="col-xs-12 col-sm-4" role="complementary"> | ||
<%= render 'form_progress', f: f %> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-xs-12 col-sm-4" role="complementary"> | ||
<%= render 'form_progress', f: f %> | ||
</div> | ||
<% end %> | ||
</div> |