rosa-build/app/views/projects/_form.html.haml

23 lines
1.1 KiB
Plaintext
Raw Normal View History

.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
= 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
.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"