.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 .group = f.label :name, t("activerecord.attributes.project.name"), :class => :label = f.text_field :name, :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 .group = f.label :has_issues, t("activerecord.attributes.project.has_issues"), :class => :label = f.check_box :has_issues .group = f.label :has_wiki, t("activerecord.attributes.project.has_wiki"), :class => :label = f.check_box :has_wiki .group = f.label :srpm, t("activerecord.attributes.project.srpm"), :class => :label = f.file_field :srpm, :class => 'file_field' .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"), @projects_path, :class => "text_button_padding link_button"