diff --git a/app/views/guidances/_guidance_form.html.erb b/app/views/guidances/_guidance_form.html.erb deleted file mode 100644 index cf5f333..0000000 --- a/app/views/guidances/_guidance_form.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -
- <%= f.label :text, class: 'control-label' %> - <%= text_area_tag("guidance-text", guidance.text, class: "tinymce form-control", 'aria-required': true, rows: 10) %> -
-<% render partial: 'org_admin/shared/theme_selector', locals: { f: f, all_themes: themes } %> -
- <%= f.label _('Guidance group'), for: :guidance_group_id, class: 'control-label' %> - <%= f.collection_select(:guidance_group_id, guidance_groups, - :id, :name, {prompt: false}, {multiple: false, 'data-toggle': 'tooltip', title: _('Select which group this guidance relates to.'), class: 'form-control', 'aria-required': true})%> -
- -
- <%= 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" %> -<%= link_to _('Cancel'), admin_index_guidance_path, class: "btn btn-primary", role: 'button' %> \ No newline at end of file diff --git a/app/views/guidances/admin_edit.html.erb b/app/views/guidances/admin_edit.html.erb deleted file mode 100644 index d7c7407..0000000 --- a/app/views/guidances/admin_edit.html.erb +++ /dev/null @@ -1,13 +0,0 @@ -
-
-

<%= _('Guidance') %>

- <%= link_to _('View all guidance'), admin_index_guidance_path(current_user.org_id), class: 'btn btn-default pull-right' %> -
-
-
-
- <%= form_for(@guidance, url: admin_update_guidance_path(@guidance), html: { method: :put , id: 'edit_guidance_form', class: 'roadmap-form bordered'}) do |f| %> - <%= render partial: 'guidance_form', locals: { f: f, themes: @themes, guidance_groups: @guidance_groups, guidance: @guidance } %> - <%end%> -
-
diff --git a/app/views/guidances/admin_new.html.erb b/app/views/guidances/admin_new.html.erb deleted file mode 100644 index 40987b3..0000000 --- a/app/views/guidances/admin_new.html.erb +++ /dev/null @@ -1,14 +0,0 @@ -
-
-

<%= _('New guidance') %>

- <%= link_to _('View all guidance'), admin_index_guidance_path(current_user.org_id), class: 'btn btn-default pull-right' %> -
-
- -
-
- <%= form_for :guidance, url: {action: 'admin_create'}, html: {id: 'new_guidance_form'} do |f| %> - <%= render partial: 'guidance_form', locals: { f: f, themes: @themes, guidance_groups: @guidance_groups, guidance: @guidance } %> - <% end %> -
-