diff --git a/app/views/jobs/_job_templates.html.erb b/app/views/jobs/_job_templates.html.erb index 17d22ef..54b25ee 100644 --- a/app/views/jobs/_job_templates.html.erb +++ b/app/views/jobs/_job_templates.html.erb @@ -1,27 +1,27 @@
<%= render partial: 'jobs/job_template_details', collection: @host.job_templates, as: :job %>
Name Type FileSet Schedule Client Before Run Job Client After Run Job Enabled Actions
<%= button_or_disabled_with_label( - @host.blocked?, 'Add Job', new_host_job_path(host_id: @host.id), + @host.blocked?, 'Add Job', new_host_simple_config_path(host_id: @host.id), class: "btn btn-default", role: "button", icon_class: 'glyphicon glyphicon-plus', text_class: 'text-success') %>
diff --git a/app/views/jobs/show.html.erb b/app/views/jobs/show.html.erb index 802d669..a0ce0de 100644 --- a/app/views/jobs/show.html.erb +++ b/app/views/jobs/show.html.erb @@ -1,31 +1,32 @@
-
+

"<%= @job.name %>" Job Template

<%= render partial: 'job_details' %>
-
- <%= link_to host_path(@host), class: "btn btn-default" do %> - - Back to host - <% end %> -
-
- <%= link_to edit_host_job_path(@host, @job), class: "btn btn-default", role: "button" do %> - - Edit - <% end %> -
-
- <%= link_to host_job_path(@host, @job), - method: :delete, data: { confirm: 'This will delete the job' }, - class: "btn btn-default", role: "button" do %> - - Delete - <% end %> -
+
+
+ +
+
+ <%= link_to host_path(@host), class: "btn btn-default" do %> + + Back to host + <% end %> + + <%= link_to edit_host_job_path(@host, @job), class: "btn btn-default", role: "button" do %> + + Edit + <% end %> + + <%= link_to host_job_path(@host, @job), + method: :delete, data: { confirm: 'This will delete the job' }, + class: "btn btn-default right", role: "button" do %> + + Delete + <% end %>