2012-03-20 18:11:28 +00:00
|
|
|
|
.block
|
|
|
|
|
.content
|
2012-03-29 19:34:45 +01:00
|
|
|
|
%h2.title= title t("layout.users.new_header")
|
2012-03-20 18:11:28 +00:00
|
|
|
|
.inner
|
2012-05-02 10:18:07 +01: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
|
|
|
|
|
\
|
|
|
|
|
.rightlist= submit_tag t("layout.save"), :data => {:"disable-with" => t("layout.saving")}
|
|
|
|
|
.both
|
|
|
|
|
-else
|
|
|
|
|
= 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'
|