diff --git a/app/views/plans/_dropdowns_new_plan.html.erb b/app/views/plans/_dropdowns_new_plan.html.erb deleted file mode 100644 index c7e9d7e..0000000 --- a/app/views/plans/_dropdowns_new_plan.html.erb +++ /dev/null @@ -1,41 +0,0 @@ - - -<%= semantic_form_for @plan, url: plans_path(@plan) do |f| %> - <%= f.inputs do %> - <%= hidden_field_tag :default_tag, "false" ,:id => "default_tag" %> -
- -

<%= _('Create a new plan') %>

-
-

<%= raw _("

Please select from the following drop-down so we can determine what questions and guidance should be displayed in your plan.

")%>

-
- - - - <% end %> - - - <%= f.actions do %> - <%= f.action :submit, - :as => :button, - :input_html => { :id => "create-plan-button", :class => "btn btn-primary"}, - :label => _('Create plan') %> - <% end %> - -<% end %> diff --git a/app/views/plans/new.html.erb b/app/views/plans/new.html.erb index 81d824c..f1aebc4 100644 --- a/app/views/plans/new.html.erb +++ b/app/views/plans/new.html.erb @@ -1,10 +1,60 @@ -<% javascript "projects.js" %> +<% javascript "new_plan.js" %> -
-

<%= @error %>

- - <%= render "dropdowns_new_plan" %> +
+

<%= _('Create a new plan') %>

+

+ <%= _("Before you get started, we need to ask a few questions to set you up with the best DMP template for your needs.") %> +

+ +
+
+

<%= _('Where will the research be conducted?') %>

+ + + + + <% @orgs.each do |org| %> + + + + + <%= _('My research organization is not on the list or no research organization is associated with this plan')%> + +
+ +
+

<%= _('Who will fund the research?') %>

+ + + + + <% @funders.each do |funder| %> + + + + + <%= _('No funder associated with this plan')%> + +
+ + +
- diff --git a/config/application.rb b/config/application.rb index bae1b99..f03a36f 100644 --- a/config/application.rb +++ b/config/application.rb @@ -74,6 +74,7 @@ config.assets.precompile += %w(jquery.tablesorter.js) config.assets.precompile += %w(export_configure.js) config.assets.precompile += %w(toolbar.js) + config.assets.precompile += %w(new_plan.js) config.assets.precompile += %w(admin.js) config.assets.precompile += %w(admin.css)