- <% if @default_org %>
- <%= hidden_field_tag('own_org_name', @default_org.name) %>
- <%= hidden_field_tag('own_org_id', @default_org.id) %>
- <% end %>
-
+
+
+ <% if @default_org %>
+ <%= hidden_field_tag('own_org_name', @default_org.name) %>
+ <%= hidden_field_tag('own_org_id', @default_org.id) %>
+ <% end %>
+
-
-
-
- <%= d_('dmpopidor', 'Would you like to choose the template of another organisation?') %>
-
-
- <%= render partial: "shared/accessible_combobox",
- locals: {name: 'plan[org_name]',
- id: 'plan_org_name',
- default_selection: @default_org,
- models: @orgs,
- attribute: 'name',
- required: true,
- error: _('You must select a research organisation from the list.'),
- tooltip: _('Please select a valid research organisation from the list.')} %>
-
+
+
+
+ <%= d_('dmpopidor', 'Would you like to choose the template of another organisation?') %>
+
+
+ <%= render partial: "shared/accessible_combobox",
+ locals: {name: 'plan[org_name]',
+ id: 'plan_org_name',
+ default_selection: @default_org,
+ models: @orgs,
+ attribute: 'name',
+ required: true,
+ error: _('You must select a research organisation from the list.'),
+ tooltip: _('Please select a valid research organisation from the list.')} %>
+
-
-
-
- <%= d_('dmpopidor', 'Would you like to choose the template of a funder?') %>
-
-
- <%= render partial: "shared/accessible_combobox",
- locals: {name: 'plan[funder_name]',
- id: 'plan_funder_name',
- default_selection: nil,
- models: @funders,
- attribute: 'name',
- required: true,
- error: _('You must select a funding organisation from the list.'),
- tooltip: _('Please select a valid funding organisation from the list.')} %>
-
+
+
+
+ <%= d_('dmpopidor', 'Would you like to choose the template of a funder?') %>
+
+
+ <%= render partial: "shared/accessible_combobox",
+ locals: {name: 'plan[funder_name]',
+ id: 'plan_funder_name',
+ default_selection: nil,
+ models: @funders,
+ attribute: 'name',
+ required: true,
+ error: _('You must select a funding organisation from the list.'),
+ 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;') %>
-
+
+ <%= check_box_tag(:plan_no_org, '', false, style: 'display: none;') %>
+ <%= check_box_tag(:plan_no_funder, '', true, style: 'display: none;') %>
+
-
-
-
- <%= d_('dmpopidor', 'Multiple templates are available, which one would you like to use?') %>
-
-
- <%= hidden_field_tag 'template-option-target', template_options_path %>
-
-
-
-
-
<%= d_('dmpopidor', "The template \"__template_title__\" is available. Would you like to create a plan from this template?") %>
-
-
-
-
-
<%= d_('dmpopidor', "No template available.") %>
-
-
-
- <% unless @default_org %>
-
-
- <%= d_('dmpopidor', 'You are not linked to an organisation, we can\'t suggest you a template. Please choose an organisation in your profile') %>
-
-
- <% end %>
-
-
-
-
- <%= f.hidden_field(:visibility, value: @is_test ? 'is_test' : Rails.application.config.default_plan_visibility) %>
- <%= f.button(_('Create a plan'), class: "btn btn-primary", id: 'create-btn', type: "submit") %>
- <%= link_to _('Next'), '', class: 'btn btn-primary', id: 'next-btn' %>
- <%= direct_link(@default_template, false, d_('dmpopidor', 'Use Default Template'), 'end-default-btn') %>
-
+ <% end %>