<!-- BEGIN FORM-->
<%= form_for(@warehouse, 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="warehouse_errors"></div>
    </div>
		<div class="form-body">
			<div class="row">
				<div class="form-group">
					<%= f.label :name, { class: "col-md-3 control-label" } do %>Nombre <span class="required">*</span>
					<% end %>
					<div class="col-md-6">
						<%= f.text_field :name, { class: "form-control first_input" } %>
					</div>
				</div>
				<div class="form-group">
					<%= f.label :prefix, "Prefijo", { class: "col-md-3 control-label" } do %> Prefijo
						<span class="required">*</span>
					<% end %>
					<div class="col-md-6">
						<%= f.text_field :prefix, { class: "form-control input-small", maxlength: 3 } %>
						<span class="help-block">El prefijo es la abreviación que se utilizará para identificar al almacén, debe conformarse de 3 letras.</span>
					</div>
				</div>
			</div>
		</div>
		<div class="form-actions">
			<div class="row">
				<div class="col-md-offset-3 col-md-9">
					<%= f.submit 'Guardar', { class: "btn green" } %>
				</div>
			</div>
		</div>
	</div>
<% end %>
