2011-10-19 21:58:31 +01:00
|
|
|
.group
|
|
|
|
= f.label :category_id, t("activerecord.attributes.project.category_id"), :class => :label
|
|
|
|
= f.grouped_collection_select :category_id, Category.roots, :children, :name, :id, :name, :include_blank => true
|
2011-03-31 02:56:20 +01:00
|
|
|
.group
|
|
|
|
= f.label :name, t("activerecord.attributes.project.name"), :class => :label
|
|
|
|
= f.text_field :name, :class => 'text_field'
|
|
|
|
.group
|
|
|
|
= f.label :unixname, t("activerecord.attributes.project.unixname"), :class => :label
|
2011-10-26 21:57:51 +01:00
|
|
|
= f.text_field :unixname, :class => 'text_field', :disabled => f.object.try(:persisted?)
|
|
|
|
.group
|
|
|
|
= f.label :visibility, t("activerecord.attributes.project.visibility"), :class => :label
|
|
|
|
= f.select :visibility, Project::VISIBILITIES
|
2011-10-19 21:58:31 +01:00
|
|
|
.group
|
|
|
|
= f.label :description, t("activerecord.attributes.project.description"), :class => :label
|
|
|
|
= f.text_area :description, :class => 'text_field', :cols => 80
|
2011-03-31 02:56:20 +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")
|
2011-10-17 15:21:29 +01:00
|
|
|
= link_to t("layout.cancel"), @projects_path, :class => "text_button_padding link_button"
|