<%= form_tag(contact_support_path, { method: "get", remote: true, id: "contact_support_form", class: "form-horizontal" }) do %>
  <div class="portlet-body form">
    <div class="form-body col-md-offset-1">
      <div class="note note-danger">
        <h4 class="block">Por favor llene el siguiente formulario, describiendo el problema y el proceso que le llevó a él lo más detalladamente posible. Al terminar, presione Enviar.</h4>
      </div>
      <div class="form-group ">
        <%= label :sucursal, "", { class: "col-md-2 col-sm-2 control-label" } do %>Sucursal <span class="required">*</span> <% end %>
        <div class="col-md-4 col-sm-5">
          <%= text_field_tag :sucursal, "", class: "form-control input-large", name: "support[sucursal]" %>
        </div>
      </div>
      <div class="form-group">
        <%= label :usertype, "", { class: "col-md-2 col-sm-2 control-label" } do %>Tipo de pefil <span class="required">*</span> <span class="tooltips" title="El tipo de perfil con el que se experimentó el error"><i class="fa fa-question-circle"></i></span> <% end %>
        <div class="col-md-4 col-sm-4">
          <%= select_tag :usertype, options_for_select(Rails.application.config.usertypes_for_admin), { class: 'form-control input-medium', name: "support[usertype]" } %>
        </div>
      </div>
      <div class="form-group">
        <%= label :error_descriptor, "", { class: "col-md-2 col-sm-2 control-label" } do %>Descripción del error <span class="required">*</span> <% end %>
        <div class="col-md-4 col-sm-4">
          <%= text_area_tag :error_descriptor, "", class: "form-control", name: "support[error_descriptor]", rows: 5 %>
        </div>
      </div>
      <div class="form-group">
        <%= label :comments, "", { class: "col-md-2 col-sm-2 control-label" } do %>Observaciones <span class="required">*</span> <% end %>
        <div class="col-md-4 col-sm-4">
          <%= text_area_tag :comments, "", class: "form-control", name: "support[comments]", rows: 5 %>
        </div>
      </div>
    </div>
    <div class="form-actions">
      <div class="row">
        <div class="col-md-offset-3 col-md-9 col-sm-offset-2 col-sm-3">
          <%= submit_tag 'Enviar', { class: "btn green" } %>
          <%= link_to 'Cancelar', root_path, { class: "btn default" } %>
        </div>
      </div>
    </div>
  </div>
<% end %>
