diff --git a/app/views/branded/phases/_edit_plan_answers_research_outputs.html.erb b/app/views/branded/phases/_edit_plan_answers_research_outputs.html.erb index 5caaff6..bf2ebc6 100644 --- a/app/views/branded/phases/_edit_plan_answers_research_outputs.html.erb +++ b/app/views/branded/phases/_edit_plan_answers_research_outputs.html.erb @@ -58,7 +58,7 @@
<% if research_output.main? && plan.research_outputs.count > 1 %>

- ><%= d_('dmpopidor', 'This section\'s answers are common to all research outputs') %> + > <%= d_('dmpopidor', 'This section\'s answers are common to all research outputs') %>

<% end %>
diff --git a/app/views/branded/plans/_research_output_fields.html.erb b/app/views/branded/plans/_research_output_fields.html.erb index d0c1c82..ba184f6 100644 --- a/app/views/branded/plans/_research_output_fields.html.erb +++ b/app/views/branded/plans/_research_output_fields.html.erb @@ -1,19 +1,19 @@ <%# locals: { plan, research_output, research_output_types } %> <% other_type_displayed = research_output.research_output_type && research_output.research_output_type.is_other ? '' : 'display:none;' %> -<% display_inputs = research_output.is_default ? '' : "display:none;" %> -<% display_values = research_output.is_default ? "display:none;" : '' %> +<% edit_mode = research_output.is_default ? '' : "display:none;" %> +<% display_mode = research_output.is_default ? "display:none;" : '' %>
<%= f.label :name, d_('dmpopidor', 'Abbreviated Name (20 chars max.)'), class: 'control-label' %> - <%= f.text_field :abbreviation, maxlength: 20, class: 'form-control input', "aria-required": true, style: display_inputs %> - <%= research_output.abbreviation ? research_output.abbreviation : _('None') %> + <%= f.text_field :abbreviation, maxlength: 20, class: 'form-control input', "aria-required": true, style: edit_mode %> + <%= research_output.abbreviation ? research_output.abbreviation : _('None') %>
<%= f.label :fullname, d_('dmpopidor', 'Fullname'), class: 'control-label' %> - <%= f.text_field :fullname, class: 'form-control input', "aria-required": true, style: display_inputs %> - <%= research_output.fullname ? research_output.fullname : _('None') %> + <%= f.text_field :fullname, class: 'form-control input', "aria-required": true, style: edit_mode %> + <%= research_output.fullname ? research_output.fullname : _('None') %>
@@ -27,33 +27,33 @@ selected: research_output.research_output_type_id, disabled: "" ), { prompt: d_('dmpopidor', 'Please select the type of your research output.') }, - { multiple: false, class: 'form-control research-output-type-select input', "aria-required": true, style: display_inputs}) + { multiple: false, class: 'form-control research-output-type-select input', "aria-required": true, style: edit_mode}) %> - <%= research_output.research_output_type ? research_output.research_output_type.label : _('None') %> + <%= research_output.research_output_type ? research_output.research_output_type.label : _('None') %>
<%= f.label :other_type_label, d_('dmpopidor', 'Other Type'), class: 'control-label' %> - <%= f.text_field :other_type_label, class: 'form-control input', style: display_inputs %> - <%= research_output.other_type_label %> + <%= f.text_field :other_type_label, class: 'form-control input', style: edit_mode %> + <%= research_output.other_type_label %>
<%= f.label :pid, d_('dmpopidor', 'Persistent Identifier'), class: 'control-label' %> - <%= f.text_field :pid, class: 'form-control input', style: display_inputs %> - <%= research_output.pid ? research_output.pid : _('None') %> + <%= f.text_field :pid, class: 'form-control input', style: edit_mode %> + <%= research_output.pid ? research_output.pid : _('None') %>
<%= f.hidden_field :order, class: 'research-output-order' %>
- - - <%= link_to plan_research_output_url(plan, research_output), data: {:confirm => d_('dmpopidor', 'Deleting this research output will remove the associated answers. Do you confirm ?')}, :method => :delete do %> - <% end %>