2012-03-20 18:11:28 +00:00
|
|
|
- content_for :sidebar do
|
2013-01-10 15:56:43 +00:00
|
|
|
-if @filter == 'system'
|
|
|
|
.bordered
|
2014-01-21 04:51:49 +00:00
|
|
|
= link_to t("layout.users.list_header"), admin_users_path, class: 'button'
|
2012-03-23 10:46:58 +00:00
|
|
|
.bordered
|
|
|
|
- if can? :create, User.new
|
2014-01-21 04:51:49 +00:00
|
|
|
= link_to t("layout.users.new"), new_admin_user_path(system: @filter == 'system'), class: 'button'
|
2012-03-20 18:11:28 +00:00
|
|
|
%h3= t("layout.users.filter_header")
|
|
|
|
%table
|
2012-12-28 19:24:41 +00:00
|
|
|
-if @filter != 'system'
|
|
|
|
- t('layout.users.users_filter').each_key do |base|
|
|
|
|
%tr
|
2014-01-21 04:51:49 +00:00
|
|
|
%td.width18=radio_button_tag :myradio, base, @filter.to_sym == base, {id: 'users_filter', class: 'niceRadio', name: 'filter'}
|
2012-12-28 19:24:41 +00:00
|
|
|
%td.width135=t("layout.users.users_filter.#{base}")
|
|
|
|
-else
|
2012-03-20 20:06:51 +00:00
|
|
|
%tr
|
2014-01-21 04:51:49 +00:00
|
|
|
%td.width18=radio_button_tag :myradio, 'system', true, {id: 'users_filter', class: 'niceRadio', name: 'filter'}
|
2012-12-28 19:24:41 +00:00
|
|
|
%td.width135=t("layout.users.system")
|
2012-03-20 18:11:28 +00:00
|
|
|
.both
|
2013-01-10 15:56:43 +00:00
|
|
|
-if @filter != 'system'
|
2012-12-29 12:38:14 +00:00
|
|
|
.bordered
|
2014-01-21 04:51:49 +00:00
|
|
|
= link_to t("layout.users.system"), system_admin_users_path, class: 'button'
|