This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/app/views/admin/societes/index.html.haml
2021-08-23 10:26:02 +02:00

33 lines
1.1 KiB
Plaintext

.qi_header
-if current_admin.super_admin
.right= link_to ic(:plus)+' Ajouter', new_admin_societe_path(), :class => "btn btn-primary btn-ap-add", :remote => true
%h1
Centres participants
.qi_search_row
=form_tag "", :method => "get", :onsubmit => "" do
-params[:search] =params[:search] || {}
%table
%tr
-if current_admin.super_admin
%td
Actif :
=select_tag "search[enabled]", options_for_select([[""], "Oui", "Non"], params[:search][:enabled])
%td=text_field_tag :name, params[:name],:class => "form-control", :placeholder => "Nom"
%td=text_field_tag :city, params[:city],:class => "form-control", :placeholder => "Ville"
=render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @societes}
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @societes, :masqued_columns => (!current_admin.super_admin ? [:enabled, :id, :socmanaginn, :pays, :soc_type, :enseigne,:login, :password, :libre5,:cc_cagnotte, :cc_total] : []) }