_new_form.html.erb 356 Bytes
<%= fields_for object do |form| %>
    <div class="form-group <%= object.errors.include?(:title) ? 'has-error' : '' %>">
      <%= form.label :title, t('activerecord.attributes.template.title') + '*', :class => "control-label" %>
      <%= form.text_field :title, :class => "form-control" %>
      <%= error_messages(object, :title) %>
    </div>
<% end %>