diff --git a/app/controllers/guidances_controller.rb b/app/controllers/guidances_controller.rb index 47c5004..2356ef0 100644 --- a/app/controllers/guidances_controller.rb +++ b/app/controllers/guidances_controller.rb @@ -39,7 +39,6 @@ @guidance = Guidance.new(guidance_params) authorize @guidance @guidance.text = params["guidance-text"] - @guidance.question_id = params["question_id"] @guidance.themes = [] if !guidance_params[:theme_ids].nil? @@ -70,7 +69,6 @@ @guidance = Guidance.find(params[:id]) authorize @guidance @guidance.text = params["guidance-text"] - @guidance.question_id = params["question_id"] if @guidance.save(guidance_params) redirect_to admin_show_guidance_path(params[:guidance]), notice: _('Guidance was successfully updated.') diff --git a/app/views/guidances/admin_index.html.erb b/app/views/guidances/admin_index.html.erb index 406b45f..6010b35 100644 --- a/app/views/guidances/admin_index.html.erb +++ b/app/views/guidances/admin_index.html.erb @@ -70,7 +70,7 @@
You can write pieces of guidance to be displayed by theme (e.g. generic guidance on storage and backup that should present across the board) or you can write guidance for specific questions. Writing generic guidance by theme saves you time and effort as your advice will be automatically displayed across all templates rather than having to write guidance to accompany each.
You will usually want your guidance to display on all templates, however there may be cases where you only want it to show for specific funders e.g. if you have specific instructions for applicants to BBSRC for example. This can be set too if needed.
')%> + <%= raw _('You can write pieces of guidance to be displayed by theme (e.g. generic guidance on storage and backup that should present across the board). Writing generic guidance by theme saves you time and effort as your advice will be automatically displayed across all templates rather than having to write guidance to accompany each.
If you do have a need to provide guidance for specific funders that would not be useful to a wider audience (e.g. if you have specific instructions for applicants to BBSRC for example), you can do so by adding guidance to a specific question when you edit your template.
')%>