<%= form_for template do |f| %>
  <% if template.errors.any? %>
    <div id="errorExplanation">
      <ul>
        <% template.errors.full_messages.each do |message| %>
          <li><%= h(message) %></li>
        <% end %>
      </ul>
    </div>
  <% end %>

  <div class="box tabular">
    <p>
      <%= f.label :name, l(:label_ux_toolkit_template_name) %>
      <%= f.text_field :name, size: 60, maxlength: 255, required: true %>
    </p>
    <p>
      <%= f.label :active, l(:label_ux_toolkit_template_active) %>
      <%= f.check_box :active %>
    </p>
  </div>

  <p>
    <%= f.submit template.new_record? ? l(:button_create) : l(:button_save) %>
    <%= link_to l(:button_cancel), ux_toolkit_checklist_templates_path %>
  </p>
<% end %>
