2012-03-01 13:19:58 +00:00
|
|
|
|
- act = controller.action_name.to_sym
|
|
|
|
|
- if [:new, :create].include? act
|
|
|
|
|
.leftlist
|
2012-03-02 10:39:48 +00:00
|
|
|
|
= f.label :uname, t("activerecord.attributes.group.uname"), :class => :label
|
2012-03-01 13:19:58 +00:00
|
|
|
|
.rightlist.nomargin
|
2012-03-02 10:39:48 +00:00
|
|
|
|
= f.text_field :uname
|
2012-03-01 13:19:58 +00:00
|
|
|
|
.both
|
|
|
|
|
%br
|
2012-03-01 12:28:38 +00:00
|
|
|
|
.leftlist
|
|
|
|
|
= f.label :description, t("activerecord.attributes.group.description"), :class => :label
|
2012-03-01 13:19:58 +00:00
|
|
|
|
.rightlist.nomargin
|
2012-03-01 12:28:38 +00:00
|
|
|
|
= f.text_area :description
|
|
|
|
|
.both
|
2012-03-01 13:19:58 +00:00
|
|
|
|
%br
|
2012-03-01 12:28:38 +00:00
|
|
|
|
.leftlist
|
|
|
|
|
\
|
|
|
|
|
.rightlist
|
|
|
|
|
= submit_tag t("layout.save")
|
|
|
|
|
.both
|