diff --git a/app/views/templates/admin_new.html.erb b/app/views/templates/admin_new.html.erb index 8166201..37b0cf3 100644 --- a/app/views/templates/admin_new.html.erb +++ b/app/views/templates/admin_new.html.erb @@ -2,46 +2,33 @@

<%= _('New template') %> - -
- <%= link_to _('View all templates'), - admin_index_template_path, class: "btn btn-primary" %> -

+
+ <%= link_to _('View all templates'), admin_index_template_path, class: "btn btn-primary" %> +
-
- - -
- <%= raw _('

To create a new template, first enter a title and description. Once you have saved this you will be presented with options to add one or more phases.

')%> -
- <%= form_for :template, url: {action: "admin_create"} do |f| %> - - - - - - - - - - -
<%= _('Title') %><%= f.text_field :title, as: :string, - class: "text_field has-tooltip", "data-toggle": "tooltip", title: _('Please enter a title for your template.') %>
<%= _('Description') %> -
- <%= text_area_tag("template-desc", "", class: "tinymce") %> -
-
- -
- <%= f.submit _('Save'), class: "btn btn-primary", role:"button" %> - <%= link_to _('Cancel'), admin_index_template_path, class: "btn cancel", role:"button" %> + <%= raw _('

To create a new template, first enter a title and description. Once you have saved this you will be presented with options to add one or more phases.

')%> + <%= form_for :template, url: {action: "admin_create"} do |f| %> +
+ <%= f.label(:title, _('Title') ,class: 'control-label') %> + <%= f.text_field :title, as: :string, + class: "form-control", "data-toggle": "tooltip", title: _('Please enter a title for your template.') %> +
+
+ <%= f.label(:description, _('Description'), class: 'control-label') %> +
+ <%= text_area_tag('template-desc', '', class: 'form-control template') %>
-
- <% end %> -
+
+
+
+ <%= f.submit _('Save'), class: "btn btn-default", role:"button" %> + <%= link_to _('Cancel'), admin_index_template_path, class: "btn btn-default", role:"button" %> +
+
+ <% end %>
\ No newline at end of file