2011-04-11 17:37:09 +01:00
|
|
|
.block
|
|
|
|
.secondary-navigation
|
|
|
|
%ul.wat-cf
|
2011-10-22 16:28:41 +01:00
|
|
|
%li.first=# link_to t("layout.projects.list"), platform_repository_path(@platform, @repository) + "#projects"
|
|
|
|
%li= link_to t("layout.projects.new"), new_project_path
|
|
|
|
%li= link_to t("layout.projects.show"), project_path(@project)
|
|
|
|
%li=# link_to "git-repo", project_repo_path(@platform, @repository, @project)
|
|
|
|
%li.active= link_to t("layout.projects.build"), build_project_path(@project)
|
2011-04-11 17:37:09 +01:00
|
|
|
|
|
|
|
.content
|
|
|
|
%h2.title= t("layout.projects.new_build")
|
|
|
|
|
|
|
|
.inner
|
2011-10-22 16:28:41 +01:00
|
|
|
= form_for :build, :url => process_build_project_path(@project), :html => { :class => :form, :method => :post } do |f|
|
2011-04-11 17:37:09 +01:00
|
|
|
.columns.wat-cf
|
|
|
|
.column.left
|
|
|
|
.group
|
2011-10-23 11:34:42 +01:00
|
|
|
= f.label :project_version, t("activerecord.attributes.build_list.project_version"), :class => :label
|
2011-10-23 12:24:46 +01:00
|
|
|
= f.select :project_version, @project_versions
|
2011-10-22 16:28:41 +01:00
|
|
|
|
2011-10-23 12:24:46 +01:00
|
|
|
.group.pl_ids_container
|
2011-10-22 16:28:41 +01:00
|
|
|
= f.label :pl, t("activerecord.attributes.build_list.pl"), :class => :label
|
|
|
|
- @pls.each do |pl|
|
|
|
|
= f.check_box "pl[#{pl.id}]", :pl_id => pl.id, :class => 'build_pl_ids'
|
|
|
|
= pl.name
|
|
|
|
%br
|
|
|
|
|
|
|
|
.group
|
|
|
|
= f.label :update_type, t("activerecord.attributes.build_list.update_type"), :class => :label
|
|
|
|
= f.select :update_type, BuildList::UPDATE_TYPES.collect { |ut| [ut, ut] }
|
|
|
|
|
|
|
|
.group
|
|
|
|
= f.check_box :build_requires
|
|
|
|
= t("activerecord.attributes.build_list.build_requires")
|
|
|
|
|
2011-04-11 17:37:09 +01:00
|
|
|
|
|
|
|
.column.right
|
|
|
|
.group
|
|
|
|
= f.label :arches, t("activerecord.attributes.build_list.arch"), :class => :label
|
|
|
|
- @arches.each do |arch|
|
|
|
|
= f.check_box "arches[#{arch.id}]"
|
|
|
|
= arch.name
|
|
|
|
%br
|
2011-10-22 16:28:41 +01:00
|
|
|
|
|
|
|
.group
|
|
|
|
= f.label :bpl, t("activerecord.attributes.build_list.bpl"), :class => :label
|
|
|
|
= f.select :bpl, @bpls
|
2011-04-11 17:37:09 +01:00
|
|
|
|
|
|
|
.group.navform.wat-cf
|
|
|
|
%button.button{:type => "submit"}
|
|
|
|
= image_tag("web-app-theme/icons/tick.png", :alt => t("layout.projects.build_button"))
|
|
|
|
= t("layout.projects.build_button")
|
|
|
|
%span.text_button_padding= t("layout.or")
|
2011-10-23 08:37:54 +01:00
|
|
|
= link_to t("layout.cancel"), root_path, :class => "text_button_padding link_button"
|
2011-04-11 17:37:09 +01:00
|
|
|
|
2011-10-22 16:28:41 +01:00
|
|
|
-# content_for :sidebar, render(:partial => 'sidebar')
|