<!-- BEGIN FORM-->
<%= form_for(@warehouse, :html => {:class=>"form-horizontal"}) do |f| %>
	<div class="portlet-body form">
		<% if @warehouse.errors.any? %>
			<div class="alert alert-danger">
				<strong>Tiene <%= pluralize(@warehouse.errors.count, "error") %> no se puede guardar el almacen</strong><br>
			</div>
		<% end %>
		<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 input-xlarge" }  %>
					</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"} %>
						<span class="help-block">El prefijo es la abreviación que se utilizará para identificar al almacen, 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"} %>
					<%= link_to 'Cancelar', warehouses_path(:filter => @filter, :current_page => @current_page), {:class=>"btn default"} %>
				</div>
			</div>
		</div>
	</div>
<% end %>


