diff --git a/app/views/annotations/_DELETE_add_annotation.html.erb b/app/views/annotations/_DELETE_add_annotation.html.erb index d84fef9..d9c3ebe 100644 --- a/app/views/annotations/_DELETE_add_annotation.html.erb +++ b/app/views/annotations/_DELETE_add_annotation.html.erb @@ -27,6 +27,6 @@
<%= submit_tag _('Save'), class: "btn btn-primary", role: 'button' %> <%= hidden_field_tag :question_id, question.id, class: "question_id" %> - <%= link_to _('Cancel'), "#", class: "btn cancel cancel_add_annotations", role: 'button' %> + <%= link_to _('Cancel'), '#' , class: "btn btn-primary cancel_edit_annotations", role: 'button' %>
<%end%> diff --git a/app/views/annotations/_DELETE_edit_annotation.html.erb b/app/views/annotations/_DELETE_edit_annotation.html.erb index cae438b..cb7ac81 100644 --- a/app/views/annotations/_DELETE_edit_annotation.html.erb +++ b/app/views/annotations/_DELETE_edit_annotation.html.erb @@ -38,6 +38,6 @@ <% end %> <%= hidden_field_tag :question_id, question.id, class: "question_id" %> - <%= link_to _('Cancel'), '#', class: 'btn cancel cancel_edit_annotations', role: 'button' %> + <%= link_to _('Cancel'),'#' , class: "btn btn-primary cancel_edit_annotations", role: 'button' %> <% end %> diff --git a/app/views/guidance_groups/admin_edit.html.erb b/app/views/guidance_groups/admin_edit.html.erb index 64991f2..c843ae1 100644 --- a/app/views/guidance_groups/admin_edit.html.erb +++ b/app/views/guidance_groups/admin_edit.html.erb @@ -28,6 +28,7 @@ <% if @guidance_group.published == false then %> <%= f.submit _('Publish'), name: "save_publish", class: "btn btn-primary" %> <% end %> + <%= link_to _('Cancel'), admin_index_guidance_path, class: "btn btn-primary", role: 'button' %> <% end %> diff --git a/app/views/guidance_groups/admin_new.html.erb b/app/views/guidance_groups/admin_new.html.erb index 2686266..15c4f55 100644 --- a/app/views/guidance_groups/admin_new.html.erb +++ b/app/views/guidance_groups/admin_new.html.erb @@ -8,18 +8,19 @@
<%= form_for :guidance_group, url: {action: "admin_create"}, id: 'admin_create_guidance_group_form' do |f| %>
- <%= f.label _('Name'), for: :name, class: 'control-label' %> + <%= f.label _('Name'), for: :name, class: "control-label" %> <%= f.text_field :name, as: :string, class: "form-control", 'data-toggle': 'tooltip', title: _('Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. "[guidance group name]: guidance on data sharing" so we suggest you just use the institution or department name.') %>
<%= f.check_box :optional_subset, 'data-toggle': 'tooltip', title: _("If the guidance is only meant for a subset of users e.g. those in a specific college or institute, check this box. Users will be able to select to display this subset guidance when answering questions in the 'create plan' wizard.") %> - <%= f.label _('Optional Subset'), for: :optional_subset, class: 'control-label' %><%= _(' (e.g. School/ Department) ') %> + <%= f.label _('Optional Subset'), for: :optional_subset, class: "control-label" %><%= _(' (e.g. School/ Department) ') %>
<%= f.submit _('Save'), name: "draft", class: "btn btn-primary" %> + <%= link_to _('Cancel'), admin_index_guidance_path, class: "btn btn-primary", role: 'button' %>
<% end %>
diff --git a/app/views/guidances/_guidance_form.html.erb b/app/views/guidances/_guidance_form.html.erb index e484508..4fc1f67 100644 --- a/app/views/guidances/_guidance_form.html.erb +++ b/app/views/guidances/_guidance_form.html.erb @@ -16,4 +16,5 @@ <%= f.label :published, raw("#{f.check_box :published, as: :check_boxes, 'data-toggle': 'tooltip', title: _("Check this box when you are ready for this guidance to appear on user's plans.")} #{_('Published?')}") %> -<%= f.submit _('Save'), name: "edit_guidance_submit", class: 'btn btn-primary' %> \ No newline at end of file +<%= f.submit _('Save'), name: "edit_guidance_submit", class: "btn btn-primary" %> +<%= link_to _('Cancel'), admin_index_guidance_path, class: "btn btn-primary", role: 'button' %> \ No newline at end of file