19 lines
592 B
Plaintext
19 lines
592 B
Plaintext
.block
|
||
.content
|
||
%h2.title= title t("layout.users.new_#{@user.system? ? 'system_' : ''}header")
|
||
.inner
|
||
= form_for @user, url: admin_users_path, html: {class: :form} do |f|
|
||
-if @user.system?
|
||
=hidden_field_tag :role, 'system'
|
||
.leftlist= f.label :uname, t("activerecord.attributes.user.uname")
|
||
.rightlist= f.text_field :uname
|
||
.leftlist
|
||
\
|
||
.rightlist= submit_button_tag
|
||
.both
|
||
-else
|
||
= render "users/base/form", f: f
|
||
- content_for :sidebar do
|
||
.bordered.nopadding
|
||
= render 'submenu'
|