- <%= label :job_template, :schedule_id, 'Schedule Time', class: 'control-label col-xs-4' %>
-
- <%= select_tag(:job_template_schedule_id,
- options_for_select(Schedule.pluck(:name, :id)),
- name: 'job_template[schedule_id]',
- class: 'form-control'
- ) %>
-
- <%= link_to 'Add', new_schedule_path, class: 'btn btn-primary', role: 'button' %>
+ <% if !@job.restore? %>
+
-
+ <% end %>
<%= f.text_field :restore_location, label: 'Restore Location', placeholder: '/tmp/bacula' %>
<% end %>
diff --git a/app/views/jobs/show.html.erb b/app/views/jobs/show.html.erb
index 077b71a..df05487 100644
--- a/app/views/jobs/show.html.erb
+++ b/app/views/jobs/show.html.erb
@@ -1,18 +1,22 @@
<%= link_to 'Edit', edit_host_job_path(@host, @job),
class: "btn btn-primary", role: "button" %>
+
+ <%= link_to 'Back to host', host_path(@host),
+ class: "btn btn-success", role: "button" %>
+