.page-header %h2= t('.new-role') = form_for @role, url: admin_roles_path do |f| .row = f.text_field :name, placeholder: t('.role_name') .row = f.text_field :color .row admin access .btn-group{ 'data-toggle' => "buttons" } =f.label :admin_access, class: 'btn btn-success btn-sm active' do = f.radio_button :admin_access, true yes =f.label :admin_access, class: 'btn btn-danger btn-sm' do = f.radio_button :admin_access, false  no  = f.submit