diff --git a/app/views/branded/plans/_edit_details.html.erb b/app/views/branded/plans/_edit_details.html.erb new file mode 100644 index 0000000..5673d7b --- /dev/null +++ b/app/views/branded/plans/_edit_details.html.erb @@ -0,0 +1,191 @@ +
+
+ <%= form_for plan, html: {method: :put, class: 'form-horizontal edit_plan' } do |f| %> +
+
+ <%= f.label(:title, _('Project title'), class: 'control-label') %> +
+
+ <%= f.text_field(:title, class: "form-control", "aria-required": true, 'data-toggle': 'tooltip', + title: _('If applying for funding, state the name exactly as in the grant proposal.')) %> +
+ <%= f.hidden_field :visibility %> + <%= f.label(:is_test, raw("#{check_box_tag(:is_test,1, @plan.is_test?)} #{_('mock project for testing, practice, or educational purposes')}"), class: 'control-label') %> +
+
+
+
+
+ <%= f.label(:funder_name, _('Funder'), class: 'control-label') %> +
+
+ <%= f.text_field( + :funder_name, + class: "form-control", + "aria-required": false) %> +
+
+
+
+ <%= f.label(:grant_number, _('Grant number'), class: 'control-label') %> +
+
+ <%= f.text_field(:grant_number, class: "form-control", "aria-required": false, 'data-toggle': 'tooltip', + title: _('Grant reference number if applicable [POST-AWARD DMPs ONLY]')) %> +
+
+
+
+ <%= f.label(:description, _('Project abstract'), class: 'control-label') %> +
+
"> + <%= f.text_area( + :description, rows: 6, + class: 'form-control tinymce', + "aria-required": false) %> +
+
+
+
+ <%= f.label(:identifier, _('ID'), class: 'control-label') %> +
+
+ <%= f.text_field(:identifier, class: "form-control", "aria-required": false, 'data-toggle': "tooltip", + title: _('A pertinent ID as determined by the funder and/or organisation.')) %> +
+
+ +

<%= _('Principal investigator') %>

+
+
+ <%= f.label(:principal_investigator, _('Name'), class: 'control-label') %> +
+
+ <%= f.text_field( + :principal_investigator, + class: "form-control", + "aria-required": false) %> +
+
+
+
+ <%= f.label(:principal_investigator_identifier, _('ORCID iD'), class: 'control-label') %> +
+
+ <%= f.text_field( + :principal_investigator_identifier, + class: "form-control", + "aria-required": false) %> +
+
+
+
+ <%= f.label(:principal_investigator_email, _('Email'), class: 'control-label') %> +
+
+ <%= f.email_field( + :principal_investigator_email, + class: "form-control", + "aria-required": false, + "data-validation": "email") %> +
+
+
+
+ <%= f.label(:principal_investigator_phone, _('Phone'), class: 'control-label') %> +
+
+ <%= f.phone_field( + :principal_investigator_phone, + class: "form-control", + "aria-required": false) %> +
+
+ +

<%= _('Data contact person') %>

+
+ <% checked = ((@plan.data_contact.present? || @plan.data_contact_phone.present? || @plan.data_contact_email.present?) ? 1 : 0) %> + <%= label_tag(:show_data_contact, raw("#{check_box_tag(:show_data_contact, checked, checked == 0)} #{_('Same as Principal Investigator')}"), class: 'control-label') %> +
+
+
+ <%= f.label(:data_contact, _('Name'), class: 'control-label') %> +
+
+ <%= f.text_field( + :data_contact, + class: "form-control", + "aria-required": false) %> +
+
+
+
+ <%= f.label(:data_contact_email, _('Email'), class: 'control-label') %> +
+
+ <%= f.email_field( + :data_contact_email, + class: "form-control", + "aria-required": false, + "data-validation": "email") %> +
+
+
+
+ <%= f.label(:data_contact_phone, _('Phone'), class: 'control-label') %> +
+
+ <%= f.phone_field( + :data_contact_phone, + class: "form-control", + "aria-required": false) %> +
+
+ <%= f.button(_('Submit'), class: "btn btn-default", type: "submit") %> +
+
+

<%= _('Plan Guidance Configuration') %>

+

<%= _('To help you write your plan, %{application_name} can show you guidance from a variety of organisations.') % + {application_name: Rails.configuration.branding[:application][:name]} %> +

+

<%= _('Select up to 6 organisations to see their guidance.') %>

+ + +

<%= _('Find guidance from additional organisations below') %>

+ <%= link_to 'See the full list', '#', 'data-toggle' => 'modal', 'data-target' => '#modal-full-guidances', class: 'modal-guidances-window' %> + +
+ <%= f.button(_('Submit'), class: "btn btn-default", type: "submit") %> +
+ + + + <% end %> +
diff --git a/lib/assets/stylesheets/dmpopidor.scss b/lib/assets/stylesheets/dmpopidor.scss index 2b0b039..8bfafdc 100644 --- a/lib/assets/stylesheets/dmpopidor.scss +++ b/lib/assets/stylesheets/dmpopidor.scss @@ -278,7 +278,16 @@ color: $white; } + .plan-details { + .guidance-configuration { + border-left: 2px solid #d6604d; + border-bottom: 2px solid #edf5fa; + border-top: 2px solid #edf5fa; + } + } + +