">
-
<%= _('This page gives you an overview of your plan. It tells what your plan is based on and gives an overview of the questions that you will be asked.')%>
+
@@ -179,126 +179,117 @@
-
<%= _('This plan is based on:')%>
+
<%= _('This plan is based on:')%>
-
-
- <%if based_on.present? %>
-
- | <%= _('Funder') %> |
- <%= based_on.org.name %> |
-
- <%end%>
- <%if plan.template.org.name.present? %>
-
- | <%= _('Institution') %> |
- <%= plan.template.org.name %> |
-
- <%end%>
-
-
+
+ <% if based_on.org != plan.template.org %>
+ <%= _('A version of ') %> "<%= based_on.title %>" <%= based_on.title.downcase.include?(_('template')) ? '' : _('template') %><%= _(' that has been customised by ') %> <%= plan.template.org.name %>
+ <% else %>
+ <%= _('The')%> "<%= plan.template.title %>" <%= (plan.template.is_default ? _('generic template') : plan.template.title.downcase.include?(_('template')) ? '' : _('template')) %> <%= _(' provided by ') %><%= plan.template.org.name %>
+ <% end %>
+
-
+
<% phases = plan.template.phases %>
- <% if phases.count == 1 %>
- <% phases.each do |phase| %>
-
- <%= link_to _('Answer questions'), edit_plan_phase_path(plan,phase), :class => 'btn btn-primary' %>
-
<%= _('Export') %>
-
- <%= render :partial => "plans/export", locals: {plan: plan, phase: phases[0] } %>
-
-
<%= raw phase.description %>
- <% if phase.sections.any? %>
-
-
-
- | <%= _('Sections')%> |
- <%= _('Questions')%> |
-
-
-
- <% phase.sections.each do |section| %>
-
- |
- <%= section.title %>
- |
-
- <% if section.questions.any? %>
-
- <% section.questions.each do |ques|%>
- -
- <%= raw ques.text %>
-
- <%end%>
-
- <%end%>
- |
-
- <%end%>
-
-
- <%end%>
- <%end%>
+ <% if phases.count == 1 %>
+ <% phases.each do |phase| %>
+
+ <%= link_to _('Answer questions'), edit_plan_phase_path(plan,phase), :class => 'btn btn-primary' %>
+
<%= _('Export') %>
+
+ <%= render :partial => "plans/export", locals: {plan: plan, phase: phases[0] } %>
+
+
<%= raw phase.description %>
+ <% if phase.sections.any? %>
+
+
+
+ | <%= _('Sections')%> |
+ <%= _('Questions')%> |
+
+
+
+ <% phase.sections.each do |section| %>
+
+ |
+ <%= section.title %>
+ |
+
+ <% if section.questions.any? %>
+
+ <% section.questions.each do |ques|%>
+ -
+ <%= raw ques.text %>
+
+ <%end%>
+
+ <%end%>
+ |
+
+ <%end%>
+
+
+ <%end%>
+ <%end%>
<%else%>
-
- <%= raw plan.template.description %>
-
- <% phases.each do |phase| %>
-
-
-
-
-
-
- <%= link_to _('Answer questions'), edit_plan_phase_path(plan,phase), :class => 'btn btn-primary' %>
-
<%= _('Export') %>
-
- <%= render :partial => "plans/export", locals: {plan: plan, phase: phase} %>
-
-
<%= raw phase.description %>
-
+
+ <%= raw plan.template.description %>
+
+ <% phases.each do |phase| %>
+
+
+
+
+
+
+ <%= link_to _('Answer questions'), edit_plan_phase_path(plan,phase), :class => 'btn btn-primary' %>
+
<%= _('Export') %>
+
+ <%= render :partial => "plans/export", locals: {plan: plan, phase: phase} %>
+
+
<%= raw phase.description %>
+
- <% if phase.sections.any? %>
-
-
-
- | <%= _('Sections')%> |
- <%= _('Questions')%> |
-
-
-
- <% phase.sections.each do |section| %>
-
- |
- <%= section.title %>
- |
-
- <% if section.questions.any? %>
-
- <% section.questions.each do |ques|%>
- -
- - <%= raw ques.text %>
-
- <%end%>
-
- <%end%>
- |
-
- <%end%>
-
-
- <%end%>
-
-
-
-
- <%end%>
+ <% if phase.sections.any? %>
+
+
+
+ | <%= _('Sections')%> |
+ <%= _('Questions')%> |
+
+
+
+ <% phase.sections.each do |section| %>
+
+ |
+ <%= section.title %>
+ |
+
+ <% if section.questions.any? %>
+
+ <% section.questions.each do |ques|%>
+ -
+ - <%= raw ques.text %>
+
+ <%end%>
+
+ <%end%>
+ |
+
+ <%end%>
+
+
+ <%end%>
+
+
+
+
+ <%end%>
diff --git a/app/views/plans/create.js.erb b/app/views/plans/create.js.erb
index aed2a41..11be185 100644
--- a/app/views/plans/create.js.erb
+++ b/app/views/plans/create.js.erb
@@ -1,16 +1,16 @@
-$("#available-templates").html("").hide();
+$("#available-templates").fadeOut();
<% if @templates.nil? %>
$(".main_page_content").prepend('