2011-03-31 00:10:23 +01:00
|
|
|
.group
|
|
|
|
= f.label :name, t("activerecord.attributes.user.name"), :class => :label
|
|
|
|
= f.text_field :name, :class => 'text_field'
|
2011-10-20 15:05:06 +01:00
|
|
|
.group
|
|
|
|
= f.label :uname, t("activerecord.attributes.user.uname"), :class => :label
|
2011-10-26 21:57:51 +01:00
|
|
|
= f.text_field :uname, :class => 'text_field', :disabled => f.object.try(:persisted?)
|
2011-03-31 00:10:23 +01:00
|
|
|
.group
|
|
|
|
= f.label :email, t("activerecord.attributes.user.email"), :class => :label
|
|
|
|
= f.text_field :email, :class => 'text_field'
|
2011-11-21 19:06:34 +00:00
|
|
|
.group
|
|
|
|
= f.label :role, t("activerecord.attributes.user.role"), :class => :label
|
2011-11-29 21:42:58 +00:00
|
|
|
= f.select :role, User::ROLES, :include_blank => 'user'
|
2011-10-11 21:56:51 +01:00
|
|
|
.group
|
|
|
|
= f.label :ssh_key, t("activerecord.attributes.user.ssh_key"), :class => :label
|
|
|
|
= f.text_area :ssh_key, :class => 'text_area'
|
2011-03-31 00:10:23 +01:00
|
|
|
|
|
|
|
.group.navform.wat-cf
|
|
|
|
%button.button{:type => "submit"}
|
|
|
|
= image_tag("web-app-theme/icons/tick.png", :alt => t("layout.save"))
|
|
|
|
= t("layout.save")
|
|
|
|
%span.text_button_padding= t("layout.or")
|
|
|
|
= link_to t("layout.cancel"), users_path, :class => "text_button_padding link_button"
|