2012-03-20 18:11:28 +00:00
|
|
|
|
.block
|
|
|
|
|
.content
|
2013-01-10 16:46:44 +00:00
|
|
|
|
%h2.title= title t("layout.users.new_#{@user.system? ? 'system_' : ''}header")
|
2012-03-20 18:11:28 +00:00
|
|
|
|
.inner
|
2014-01-21 04:51:49 +00:00
|
|
|
|
= form_for @user, url: admin_users_path, html: {class: :form} do |f|
|
2012-12-28 19:24:41 +00:00
|
|
|
|
-if @user.system?
|
|
|
|
|
=hidden_field_tag :role, 'system'
|
|
|
|
|
.leftlist= f.label :uname, t("activerecord.attributes.user.uname")
|
|
|
|
|
.rightlist= f.text_field :uname
|
|
|
|
|
.leftlist
|
|
|
|
|
\
|
2014-01-21 04:51:49 +00:00
|
|
|
|
.rightlist= submit_tag t('layout.save'), data: {'disable-with' => t('layout.saving')}
|
2012-12-28 19:24:41 +00:00
|
|
|
|
.both
|
|
|
|
|
-else
|
2014-01-21 04:51:49 +00:00
|
|
|
|
= render "users/base/form", f: f
|
2012-03-20 18:11:28 +00:00
|
|
|
|
- content_for :sidebar do
|
|
|
|
|
.bordered.nopadding
|
2012-05-02 10:18:07 +01:00
|
|
|
|
= render 'submenu'
|