rosa-build/app/views/admin/users/new.html.haml

19 lines
664 B
Plaintext
Raw Normal View History

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
= 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
= render 'submenu'