-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn user with pop-up modal of unsaved changes
- Loading branch information
Showing
13 changed files
with
253 additions
and
92 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
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
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
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
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,82 +1,83 @@ | ||
<%= render "shared/nav_safety_modal" %> | ||
<div class="panel panel-default tabs"> | ||
<ul class="nav nav-tabs" role="tablist"> | ||
<li class="active"> | ||
<a href="#about" role="tab" data-toggle="tab"><%= t(:'hyrax.pages.tabs.about_page') %></a> | ||
<a href="#about" role="tab" data-toggle="tab" class="nav-safety-confirm"><%= t(:'hyrax.pages.tabs.about_page') %></a> | ||
</li> | ||
<li> | ||
<a href="#help" role="tab" data-toggle="tab"><%= t(:'hyrax.pages.tabs.help_page') %></a> | ||
<a href="#help" role="tab" data-toggle="tab" class="nav-safety-confirm"><%= t(:'hyrax.pages.tabs.help_page') %></a> | ||
</li> | ||
<li> | ||
<a href="#agreement" role="tab" data-toggle="tab"><%= t(:'hyrax.pages.tabs.agreement_page') %></a> | ||
<a href="#agreement" role="tab" data-toggle="tab" class="nav-safety-confirm"><%= t(:'hyrax.pages.tabs.agreement_page') %></a> | ||
</li> | ||
<li> | ||
<a href="#terms" role="tab" data-toggle="tab"><%= t(:'hyrax.pages.tabs.terms_page') %></a> | ||
<a href="#terms" role="tab" data-toggle="tab" class="nav-safety-confirm"><%= t(:'hyrax.pages.tabs.terms_page') %></a> | ||
</li> | ||
</ul> | ||
<div class="tab-content"> | ||
<div id="about" class="tab-pane active"> | ||
<div class="panel panel-default labels"> | ||
<%= simple_form_for ContentBlock.for(:about), url: hyrax.page_path(ContentBlock.for(:about)) do |f| %> | ||
<div class="panel-body"> | ||
<div class="field form-group"> | ||
<%= f.label :about %><br /> | ||
<%= f.text_area :about, value: f.object.value, class: 'form-control tinymce', rows: 20, cols: 120 %> | ||
</div> | ||
<div id="about" class="tab-pane active"> | ||
<div class="panel panel-default labels"> | ||
<%= simple_form_for ContentBlock.for(:about), url: hyrax.page_path(ContentBlock.for(:about)), html: { class: 'nav-safety' } do |f| %> | ||
<div class="panel-body"> | ||
<div class="field form-group"> | ||
<%= f.label :about %><br /> | ||
<%= f.text_area :about, value: f.object.value, class: 'form-control tinymce', rows: 20, cols: 120 %> | ||
</div> | ||
<div class="panel-footer"> | ||
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-default pull-right' %> | ||
<%= f.button :submit, class: 'btn btn-primary pull-right' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="panel-footer"> | ||
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-default pull-right' %> | ||
<%= f.button :submit, class: 'btn btn-primary pull-right' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<div id="help" class="tab-pane"> | ||
<div class="panel panel-default labels"> | ||
<%= simple_form_for ContentBlock.for(:help), url: hyrax.page_path(ContentBlock.for(:help)) do |f| %> | ||
<div class="panel-body"> | ||
<div class="field form-group"> | ||
<%= f.label :help %><br /> | ||
<%= f.text_area :help, value: f.object.value, class: 'form-control tinymce', rows: 20, cols: 120 %> | ||
</div> | ||
</div> | ||
<div class="panel-footer"> | ||
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-default pull-right' %> | ||
<%= f.button :submit, class: 'btn btn-primary pull-right' %> | ||
</div> | ||
<div id="help" class="tab-pane"> | ||
<div class="panel panel-default labels"> | ||
<%= simple_form_for ContentBlock.for(:help), url: hyrax.page_path(ContentBlock.for(:help)), html: { class: 'nav-safety' } do |f| %> | ||
<div class="panel-body"> | ||
<div class="field form-group"> | ||
<%= f.label :help %><br /> | ||
<%= f.text_area :help, value: f.object.value, class: 'form-control tinymce', rows: 20, cols: 120 %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="panel-footer"> | ||
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-default pull-right' %> | ||
<%= f.button :submit, class: 'btn btn-primary pull-right' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<div id="agreement" class="tab-pane"> | ||
<div class="panel panel-default labels"> | ||
<%= simple_form_for ContentBlock.for(:agreement), url: hyrax.page_path(ContentBlock.for(:agreement)) do |f| %> | ||
<div class="panel-body"> | ||
<div class="field form-group"> | ||
<%= f.label :agreement %><br /> | ||
<%= f.text_area :agreement, value: f.object.value, class: 'form-control tinymce', rows: 20, cols: 120 %> | ||
</div> | ||
</div> | ||
<div class="panel-footer"> | ||
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-default pull-right' %> | ||
<%= f.button :submit, class: 'btn btn-primary pull-right' %> | ||
</div> | ||
<div id="agreement" class="tab-pane"> | ||
<div class="panel panel-default labels"> | ||
<%= simple_form_for ContentBlock.for(:agreement), url: hyrax.page_path(ContentBlock.for(:agreement)), html: { class: 'nav-safety' } do |f| %> | ||
<div class="panel-body"> | ||
<div class="field form-group"> | ||
<%= f.label :agreement %><br /> | ||
<%= f.text_area :agreement, value: f.object.value, class: 'form-control tinymce', rows: 20, cols: 120 %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="panel-footer"> | ||
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-default pull-right' %> | ||
<%= f.button :submit, class: 'btn btn-primary pull-right' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<div id="terms" class="tab-pane"> | ||
<div class="panel panel-default labels"> | ||
<%= simple_form_for ContentBlock.for(:terms), url: hyrax.page_path(ContentBlock.for(:terms)) do |f| %> | ||
<div class="panel-body"> | ||
<div class="field form-group"> | ||
<%= f.label :terms %><br /> | ||
<%= f.text_area :terms, value: f.object.value, class: 'form-control tinymce', rows: 20, cols: 120 %> | ||
</div> | ||
</div> | ||
<div class="panel-footer"> | ||
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-default pull-right' %> | ||
<%= f.button :submit, class: 'btn btn-primary pull-right' %> | ||
</div> | ||
<div id="terms" class="tab-pane"> | ||
<div class="panel panel-default labels"> | ||
<%= simple_form_for ContentBlock.for(:terms), url: hyrax.page_path(ContentBlock.for(:terms)), html: { class: 'nav-safety' } do |f| %> | ||
<div class="panel-body"> | ||
<div class="field form-group"> | ||
<%= f.label :terms %><br /> | ||
<%= f.text_area :terms, value: f.object.value, class: 'form-control tinymce', rows: 20, cols: 120 %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
<div class="panel-footer"> | ||
<%= link_to t(:'hyrax.pages.cancel'), hyrax.admin_admin_sets_path, class: 'btn btn-default pull-right' %> | ||
<%= f.button :submit, class: 'btn btn-primary pull-right' %> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
<%= tinymce :content_block %> |
Oops, something went wrong.