<%= form_for(@unit, remote: true, html: { class: "form-horizontal" }) do |f| %>
  <div class="portlet-body form">
    <div class="row col-md-12">
      <div class="alert alert-danger hidden" id="errors"></div>
    </div>
    <div class="form-body">
      <div class="row">
        <div class="form-group">
          <%= f.label :unit, { class: "col-md-2 control-label" } do %> Nombre <span class="required">*</span>
          <% end %>
          <div class="col-md-8" style="padding-left: 0px;padding-right: 0px">
            <%= f.text_field :unit, { class: "form-control" } %>
          </div>
        </div>
      </div>
    </div>
    <div class="form-actions">
      <div class="row">
        <div class="col-md-9">
          <%= f.submit 'Guardar', { class: "btn green" } %>
        </div>
      </div>
    </div>
  </div>
<% end %>

<script type="text/javascript">
  $(document).ready(function() {
    App.init();
  });
</script>
