<% if current_stage.locked? %> <% content_for(:flash_content) do %> <%= locking_flash( render :partial => 'lock_info', :locals => {:stage => current_stage, :deployment => @deployment}) %> <% end %> <% end %> <% flashed_errors(:deployment) %> <% form_for(:deployment, :url => project_stage_deployments_path(@project, @stage)) do |f| %>

Task
<%= f.text_field :task, :style => 'width:330px;' %>

Comment
<%= f.text_area :description, :style => 'width:330px;height:80px;' %>

<% unless @stage.prompt_configurations.empty? %> <% @stage.prompt_configurations.each do |conf| %>

Config: <%=h conf.name %>

<% end %> <% end %> <% for host in @stage.hosts.sort_by{|x| x.name} %> /> <% end %> <%= link_to 'Back to stage', project_stage_path(@project, @stage), :class => 'arrow_link ontheright' %>

<%= f.hidden_field :override_locking %> <%= submit_tag "Start deployment" %>

<% end %> <% content_for(:page_scripts) do %> <% end %> <% content_for(:action_box) do %>

Deploying hosts

<% if @stage.roles.count > 0 %>
<% for host in @stage.hosts.sort_by{|x| x.name} %> <% end %>
<%= image_tag('peritor_theme/checkbox_on.gif', :id => "host_#{host.id}_on", :style => if_disabled_host?(host,'display:none;') + 'cursor:pointer;')%> <%= image_tag('peritor_theme/checkbox_off.gif', :id => "host_#{host.id}_off", :style => if_enabled_host?(host,'display:none;') + 'cursor:pointer;')%>
<%=h host.name %>
<% else %> No hosts for this stage!

<% end %>
<% end %> <% content_for(:breadcrumb) do %> <% breadcrumb_box do %> <%= link_to "Back to stage", project_stage_path(current_project, current_stage), :style => "float:right", :class => "arrow_link" %> <%= link_to "Projects", projects_path %> > Project <%= link_to current_project.name, project_path(current_project) %> > Stage <%= link_to current_stage.name, project_stage_path(current_project, current_stage) %> > Deployment <% end %> <% end %> <% content_for(:page_title) do %> <% @page_title = "Deploy stage #{h(current_stage.name)} of project #{h(current_project.name)}" %>

Deployment

<% end %>