		<!-- BEGIN CONTAINER -->
		<div class="page-container">
			<!-- BEGIN CONTENT -->
			<div class="page-content-wrapper">
				<!-- BEGIN CONTENT BODY -->
				<!-- BEGIN PAGE HEAD-->
				<div class="page-head">
					<div class="container-fluid">
						<!-- BEGIN PAGE TITLE -->
						<div class="page-title">
							<h1>Conceptos de Egresos </h1>
						</div>
						<!-- END PAGE TITLE -->
					</div>
				</div>
				<!-- END PAGE HEAD-->
				<!-- BEGIN PAGE CONTENT BODY -->
				<div class="page-content">
					<div class="container-fluid">
						<!-- BEGIN PAGE BREADCRUMBS -->
						<ul class="page-breadcrumb breadcrumb">
							<%= render_breadcrumbs :tag => :li, :separator => ' <i class="fa fa-circle"></i> ' %>
						</ul>
						<!-- END PAGE BREADCRUMBS -->
						<!-- BEGIN PAGE CONTENT INNER -->
						<div class="page-content-inner">
							<div id="notice">
							<% if success %>
							<div class="alert alert-success">
								<p><%= success %></p>
							</div>
							<% elsif warning %>
							<div class="alert alert-warning">
								<p><%= warning %></p>
							</div>
							<% end %>
							</div>
							<div class="row">
								<div class="col-md-12">
									<div class="portlet light ">
										<div class="portlet-title">
											<div class="caption">
												<i class="fa fa-list "></i>
												<span class="caption-subject bold uppercase">Lista de conceptos de egresos</span>
											</div>
											<div class="actions">
												<% if can? :create, Expensesconcept %>
												<%= link_to new_expensesconcept_path, {:class=>"btn bold green pull-right filtros"} do %> Nuevo Concepto de egreso <i class="fa fa-plus"></i>
												<% end %>
												<% end %>
											</div>
										</div>
										<div class="portlet-body">
											<input type='hidden' name='filter' id='filter' value='<%= @filter %>' >
											<input type='hidden' name='current_page' id='current_page' value='<%= @current_page %>' >
											<table class="table table-striped table-bordered table-hover tableadvanced">
												<thead>
													<tr>
														<th>#</th>
														<th>Nombre</th>
														<th>Descripción</th>
														<% if current_user.usertype == 'A' %>
															<th>Puntos de venta</th>
														<% end %>
														<th>Status</th>
														<% if can? :manage, Expensesconcept %>
														<th>Acciones</th>
														<% end %>
													</tr>
												</thead>
												<tbody>
													<% @expensesconcepts.each_with_index do |expensesconcept, key| %>
													<tr>
														<td><%= key + 1 %></td>
														<td><%= expensesconcept.name %></td>
                                                        <td><%= expensesconcept.description %></td>
                                                        <% if current_user.usertype == 'A' %>
	                                                        <td>
	                                                        	<% if expensesconcept.allpoints %>
	                                                        	Todos
	                                                        	<% else %>
	                                                        	<%= expensesconcept.pointsales.map { |pv| pv.name }.join(", ")  %>
	                                                        	<% end %>
	                                                        </td>
                                                        <% end %>

														<td class="text-center"><% if expensesconcept.status == "active" %>
															<i class="fa fa-check font-green"></i>
															<% else %>
															<i class="fa fa-times font-red"></i>
															<% end %>
														</td>
														<% if can? :manage, Expensesconcept %>
														<td class="text-center">
															<%= link_to edit_expensesconcept_path(expensesconcept), {:class=>"btn btn-icon-only btn-primary filtros", :title=>"Editar concepto de egreso"} do %>
																<i class="fa fa-edit"></i>
															<% end %>
															<% unless @concept_purchase_payment.id == expensesconcept.id %>
																<%= link_to expensesconcept_path(expensesconcept), method: :delete, :class => "btn btn-icon-only btn-danger", :title=>"Eliminar concepto de egreso", data: { confirm: '¿Esta seguro de eliminar el concepto de egreso?'}   do %>
																	<i class="fa fa-trash-o"></i>
																<% end %>
															<% end %>

														</td>
														<% end %>
													</tr>
												<% end %>
												</tbody>
											</table>
										</div>
									</div>
								</div>
							</div>
						</div>
						<!-- END PAGE CONTENT INNER -->
					</div>
				</div>
				<!-- END PAGE CONTENT BODY -->
				<!-- END CONTENT BODY -->
			</div>
			<!-- END CONTENT -->
		</div>
		<!-- END CONTAINER -->
