<h2><%= _('Phase details') %></h2>
<p><%= _('When you create a new phase for your template, a version will automatically be created. Once you complete the form below you will be provided with options to create sections and questions.') %></p>
<%= form_for :phase, { url: admin_create_phase_path, html: { class: 'form-horizontal' }} do |f| %>
<%= f.hidden_field :template_id, value: @template.id%>
<div class="form-group">
<%= f.label(:title, _('Title') ,class: 'col-md-2 control-label') %>
<div class="col-md-10">
<%= f.text_field(:title, class: 'col-md-10 form-control', 'aria-required': false, 'data-toggle': 'tooltip', title: _('Enter a title for the phase e.g. intial DMP, full DMP... This is what users will see in the tabs when completing a plan. If you only have one phase, call it something generic e.g. Glasgow DMP')) %>
</div>
</div>
<div class="form-group">
<%= f.label(:number, _('Order of display'), class: 'col-md-2 control-label') %>
<div class="col-md-10">
<%= f.number_field(:number, in: 1..5, class: 'form-control', 'aria-required': false, 'data-toggle': 'tooltip', title: _('This allows you to order the phases of your template.')) %>
</div>
</div>
<div class="form-group">
<%= f.label(:description, _('Description'), class: 'col-md-2 control-label') %>
<div class="col-md-10" data-toggle="tooltip" title="<%= _("Enter a basic description. This will be presented to users on the 'Admin Plan' tab, above the summary of the sections and questions which they will be asked to answer.") %>">
<%= text_area_tag('phase-desc', '', class: 'tinymce') %>
</div>
</div>
<div class="pull-right">
<%= f.button(_('Save'), class: "btn btn-default", type: "submit") %>
<%= link_to(_('Cancel'), admin_template_template_path(@template), { class: "btn btn-default", role: "button" }) %>
</div>
<% end %>