<%= render partial: 'side_filters', locals: { filters: @filters } %>
<% if ldap_enabled? and !Chaltron.ldap_allow_all %>
<%= content_tag :button, type: 'button', class: 'btn btn-primary dropdown-toggle',
data: {toggle: 'dropdown'}, aria: {expanded: false, haspopup: true}, id: 'new_user_button' do %>
<%= icon :fas, :plus, t('.new_user') %>
<% end %>
<%= content_tag :div, class: 'dropdown-menu', aria: {labelledby: 'new_user_button'} do %>
<%= link_to t('.new_ldap_user'), ldap_search_path, class: 'dropdown-item' %>
<%= link_to t('.new_local_user'), new_user_path, class: 'dropdown-item' %>
<% end %>
<% else %>
<%= link_to new_user_path, class: 'btn btn-primary pull-right' do %>
<%= icon :fas, :plus, t('.new_local_user') %>
<% end %>
<% end %>
<%= content_tag 'table', id: 'users', class: 'table table-striped' do %>
<%= User.human_attribute_name(:username) %>
|
<%= User.human_attribute_name(:fullname) %>
|
<%= User.human_attribute_name(:email) %>
|
<%= User.human_attribute_name(:roles) %>
|
<%= render @users %>
<% end %>