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

19 lines
592 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.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'