<%= bootstrap_form_for(@schedule, url: host_schedules_path(@host), layout: :horizontal, label_col: 'col-xs-3', control_col: 'col-xs-8') do |f| %> <% if @schedule.errors.any? %>

<%= pluralize(@schedule.errors.count, "error") %> prohibited this schedule from being saved:

<% end %>
<%= f.text_field :name %> <%= f.time_field :runtime, placeholder: 'HH:MM' %> <%= (hidden_field_tag :job_id, @job_id) if @job_id%>
<%= f.submit class: 'btn btn-success' %>
<% end %>