app/views/organisations/show.html.slim
- breadcrumb :organisation, @organisation
- page_header_content_for @organisation
.page_content
.container-fluid
.row
.col-lg-6.col-md-6.col-sm-12.col-xs-12
= simple_block_for @organisation, title: t('organisations.form.sections.informations') do |d|
= d.attribute :name
= d.attribute :code
= d.attribute :created_at, as: :date
.col-lg-6.col-md-6.col-sm-12.col-xs-12
- if @organisation.authentication
= simple_block_for @organisation.authentication, title: t('organisations.form.sections.identity_provider') do |d|
= d.attribute :name
= d.attribute :subtype, as: :enumerize
= d.attribute :sign_in_url, value: @organisation.authentication.sign_in_url(self), link: @organisation.authentication.sign_in_url(self)
.row
.col-lg-12
h2.col-md-9= User.t
- if parent_policy.new_invitation?(User)
.col-md-3
= link_to [:new_invitation, :organisation, :users], class: 'btn btn-primary pull-right' do
i.fa.fa-envelope
span= 'actions.invite_user'.t
.row
.col-lg-12
= render 'filters'
.col-lg-12
= table_builder_2 @users,
[ \
TableBuilderHelper::Column.new( \
key: :name, \
attribute: 'name', \
sortable: true, \
link_to: -> (user){ [:organisation, user] } \
), \
TableBuilderHelper::Column.new( \
key: :email, \
attribute: 'email', \
sortable: true, \
link_to: -> (user){ [:organisation, user] } \
), \
TableBuilderHelper::Column.new( \
key: :profile, \
attribute: 'profile_i18n', \
sortable: false \
), \
TableBuilderHelper::Column.new( \
key: :state, \
attribute: 'state_i18n', \
sortable: false \
), \
],
cls: 'table has-filter has-search',
action: :index
= new_pagination @users