2018-05-15 17:25:48 +02:00

43 lines
1.0 KiB
Plaintext

-@read_only = true
-@vouistar = true if @reseaux.id == 2 or @reseaux.parent_id == 2
.center.row
.right
=link_to i(:envelope)+" Ecrire à tout mon réseau", new_public_customer_message_path(:thing_type => "Reseaux", :thing_id => @reseaux.id), :class => "btn btn-primary"
%h1
Mon réseau :
=@reseaux.name
%div{:style => "text-align:center;width:120px;background:white; margin:20px 0;padding:10px;font-weight:bold;"}
%center{:style => "padding-top:5px;font-size:60px;line-height:40px;text-align:center;"}
=@reseaux.customers.count
%div{:style => "padding-top:5px;"} inscrits
%h3 Sous réseaux
%table.table.admin_table.table-hover.table-striped
%thead.rows_header
%tr
%th
Nom
%th Utilisateurs
%th{:style => "width:100px"}
 
%tbody.rows
=render @reseaux.children
-if @reseaux.id != 2 and @reseaux.parent_id != 2
%h3 Les besoins de mon réseau
=render collection: @reseaux.needs, partial: 'public/needs/need_item', as: :need