diff --git a/app/views/filesets/new.html.erb b/app/views/filesets/new.html.erb index e38af6c..05870e6 100644 --- a/app/views/filesets/new.html.erb +++ b/app/views/filesets/new.html.erb @@ -1,5 +1,8 @@

New Fileset

<%= render 'form' %>
+ +<%= link_to 'Back to job', + @job_id.present? ? edit_host_job_path(@host, @job_id) : new_host_job_path(@host) %> diff --git a/app/views/schedules/new.html.erb b/app/views/schedules/new.html.erb index 6e9bfd9..4eab219 100644 --- a/app/views/schedules/new.html.erb +++ b/app/views/schedules/new.html.erb @@ -1,5 +1,8 @@

New Schedule

<%= render 'form' %>
+ +<%= link_to 'Back to job', + @job_id.present? ? edit_host_job_path(@host, @job_id) : new_host_job_path(@host) %>