diff --git a/app/views/plans/_form_v2.html.erb b/app/views/plans/_form_v2.html.erb index a44fd00..f687fe5 100644 --- a/app/views/plans/_form_v2.html.erb +++ b/app/views/plans/_form_v2.html.erb @@ -30,6 +30,7 @@ <%= _('Would you like to use the default template "Default Template"?') %>
+ <% if @default_org %> <%= hidden_field_tag('own_org_name', @default_org.name) %> <%= hidden_field_tag('own_org_id', @default_org.id) %> @@ -41,6 +42,7 @@<%= _('Would you like to choose the template of another organisation?') %>
+ <%= render partial: "shared/accessible_combobox", locals: {name: 'plan[org_name]', id: 'plan_org_name', @@ -57,6 +59,7 @@<%= _('Would you like to choose a template of a funder?') %>
+ <%= render partial: "shared/accessible_combobox", locals: {name: 'plan[funder_name]', id: 'plan_funder_name', @@ -68,6 +71,7 @@ tooltip: _('Please select a valid funding organisation from the list.')} %> + <%= check_box_tag(:plan_no_org, '', false, style: 'display: none;') %> <%= check_box_tag(:plan_no_funder, '', true, style: 'display: none;') %> @@ -76,19 +80,15 @@<%= _('Multiple templates where found, which one would you like to use?') %>
+ <%= hidden_field_tag 'template-option-target', org_admin_template_options_path %> - <%= select_tag(:plan_template_id) %> +- <%= _('You are not linked to an organisation, we can\'t suggest you a template. Please choose an organisation in your profile') %> -
-+ <%= _('You are not linked to an organisation, we can\'t suggest you a template. Please choose an organisation in your profile') %> +
+