diff --git a/app/views/orgs/_shibboleth_ds_list.html.erb b/app/views/orgs/_shibboleth_ds_list.html.erb deleted file mode 100644 index d937b09..0000000 --- a/app/views/orgs/_shibboleth_ds_list.html.erb +++ /dev/null @@ -1,14 +0,0 @@ -<% letter = '' %> - -
- -
diff --git a/app/views/orgs/shibboleth_ds.html.erb b/app/views/orgs/shibboleth_ds.html.erb index 3c554e8..c3e2f6a 100644 --- a/app/views/orgs/shibboleth_ds.html.erb +++ b/app/views/orgs/shibboleth_ds.html.erb @@ -48,36 +48,30 @@ diff --git a/app/views/sections/_edit_section.html.erb b/app/views/sections/_edit_section.html.erb index 5ed252c..2bae777 100644 --- a/app/views/sections/_edit_section.html.erb +++ b/app/views/sections/_edit_section.html.erb @@ -5,112 +5,69 @@ **Copyright: Digital Curation Centre and California Digital Library --> - -<%= form_for(section, url: admin_update_section_path(section, phase: phase, edit: edit), html: { method: :put}) do |s| %> - <% if @open && @section_id == section.id then%> - <% toggle = 'accordion-body section-collapse in collapse'%> - <% else %> - <% toggle = 'accordion-body collapse section-collapse' %> - <% end %> - - <% if @new_sec %> - <% toggle = 'accordion-body section-collapse in collapse'%> - <% end %> - -
-
-
-
- <%= s.text_field :title, as: :string, class: 'text_field', placeholder: _('New section title') %> - +

<%= _('Section details') %>

+
+ <%= form_for(section, url: admin_update_section_path(section, phase: phase, edit: edit), html: { method: :put, class: 'roadmap-form bordered'}) do |s| %> +
+
+ <%= s.label :title %> + <%= s.text_field :title, as: :string, class: 'input-large', placeholder: _('New section title') %> +
+
+ <%= s.label _('Order of display'), for: :number %> + <%= s.number_field :number, in: 1..15, class: "input-small has-tooltip", 'data-toggle' => "tooltip", 'title' => _('This allows you to order sections.') %> +
+ <%= s.label :description %> + <%= text_area_tag("section-desc-#{section.id}", section.description , class: "tinymce") %> +
+ <%= link_to( image_tag('help_button.png'), '#', class: 'section_desc_popover', rel: "popover", 'data-html' => "true", 'data-content' => _("
Enter a basic description. This could be a summary of what is covered in the section or instructions on how to answer. This text will be displayed in the coloured banner once a section is opened to edit.
"))%>
-
- -
- - -
-
- - - - - - - - - -
<%= _('Order of display') %><%= s.number_field :number, in: 1..15, class: "number_field has-tooltip", 'data-toggle' => "tooltip", 'title' => _('This allows you to order sections.') %>
<%= _('Description') %> -
- <%= text_area_tag("section-desc-#{section.id}", section.description , class: "tinymce") %> -
-
- <%= link_to( image_tag('help_button.png'), '#', class: 'section_desc_popover', rel: "popover", 'data-html' => "true", 'data-content' => _("
Enter a basic description. This could be a summary of what is covered in the section or instructions on how to answer. This text will be displayed in the coloured banner once a section is opened to edit.
"))%> -
-
- -
- <%= s.submit _('Save'), class: 'btn btn-primary' %> - <% if section.modifiable %> - <%= link_to _('Delete'), admin_destroy_section_path(section_id: section.id), - confirm: _("You are about to delete '%{section_title}'. This will affect questions linked to this section. Are you sure?") % { :section_title => section.title }, method: :delete, class: "btn btn-primary"%> - <% end %> - <%= link_to _('Cancel'), :back, class: 'btn cancel' %> -
-<% end %> -
- <% @questions = section.questions.order("number")%> - <% if @questions.length > 0 %> - <% question_left = @questions.length %> - <% @questions.each do |question| %> -
-
"> - - <%= render partial: 'questions/show_question', locals: {question: question} %> -
- - -
- - <% if question_left.to_i > 1 %> -
- <% else %> -
- <% end %> - <% question_left = question_left - 1 %> - - <% end %> - <% end %> - - +
+ +
+
+ + <%= s.submit _('Save'), class: 'btn btn-primary' %> <% if section.modifiable %> - - <% if @questions.length != 0 %> -
- <% end%> - - - - -
-
- <%= hidden_field_tag :section_id, section.id, class: "section_id" %> - <%= link_to _('Add question'), '#', class: "btn btn-primary add_question_button" %> -
-
+ <%= link_to _('Delete'), admin_destroy_section_path(section_id: section.id), + confirm: _("You are about to delete '%{section_title}'. This will affect questions linked to this section. Are you sure?") % { :section_title => section.title }, method: :delete, class: "btn btn-primary"%> <% end %> - -
+ <%= link_to _('Cancel'), :back, class: 'btn cancel' %>
+
+ <% end %> +
+ +

<%= _('Questions') %>

+<% @questions = section.questions.order("number")%> +<% if @questions.length > 0 %> + <% @questions.each do |question| %> +
+
"> + + <%= render partial: 'questions/show_question', locals: {question: question} %> +
+ + +
+ <% end %> +<% end %> + + +<% if section.modifiable %> + + + + +
+
+ <%= hidden_field_tag :section_id, section.id, class: "section_id" %> + <%= link_to _('Add question'), '#', class: "btn btn-primary add_question_button" %>
+<% end %> \ No newline at end of file diff --git a/lib/assets/stylesheets/dmproadmap/forms.scss b/lib/assets/stylesheets/dmproadmap/forms.scss index af58298..f4cdc92 100644 --- a/lib/assets/stylesheets/dmproadmap/forms.scss +++ b/lib/assets/stylesheets/dmproadmap/forms.scss @@ -93,7 +93,8 @@ /* Fieldset with labels to the left of inputs */ /* ------------------------------------------ */ - fieldset.side-by-side { + fieldset.side-by-side, + div.read-only-side-by-side { border: 0; .mce-tinymce { @@ -350,13 +351,14 @@ .omniauth-options { display: block; width: 100%; - + margin-bottom: 10px; + .omniauth-login { - width: 93%; + display: inline-block; + width: 90%; padding: 4px 12px; background-color: $primary-color; color: $white; - margin: 0 auto 10px auto; border-radius: 5px; } } @@ -446,13 +448,13 @@ ul li { margin-top: 5px; margin-bottom: 5px; + padding: 4px 12px; } ul li.separator { background-color: $medium-grey; color: $white; font-weight: bold; - padding: 4px 12px; } } div.three-column {