diff --git a/app/views/filesets/_form.html.erb b/app/views/filesets/_form.html.erb index 6b9d95f..85680b7 100644 --- a/app/views/filesets/_form.html.erb +++ b/app/views/filesets/_form.html.erb @@ -1,22 +1,27 @@ <%= bootstrap_form_for(@fileset, url: url, method: method, layout: :horizontal, label_col: 'col-xs-3', control_col: 'col-xs-8') do |f| %>
<%= f.text_field :name %> <% @fileset.include_directions['file'].each do |file| %> <%= text_with_errors_and_plus(@fileset, :fileset, :include_files, 'Files', '/', file) %> <% end %>
<% @fileset.exclude_directions.each do |file| %> <%= text_with_errors_and_plus(@fileset, :fileset, :exclude_directions, 'Exclude', '/an_exluded_dir', file) %> <% end %> <%= (hidden_field_tag :job_id, @job_id) if @job_id%>
-
+
<%= f.submit class: 'btn btn-success' %>
+
+ <%= link_to 'Cancel', + @job_id.present? ? edit_host_job_path(@host, @job_id) : new_host_job_path(@host), + role: 'button', class: 'btn btn-danger'%> +
<% end %> diff --git a/app/views/filesets/edit.html.erb b/app/views/filesets/edit.html.erb index de7cc5a..c4025f7 100644 --- a/app/views/filesets/edit.html.erb +++ b/app/views/filesets/edit.html.erb @@ -1,22 +1,15 @@

Edit Fileset: <%= @fileset.name %>

-
- - <%= render partial: 'form', - locals: { url: host_fileset_path(@host, @fileset.id, job_id: @job_id), method: :patch } %> +
+ <%= render partial: 'form', + locals: { url: host_fileset_path(@host, @fileset.id, job_id: @job_id), + method: :patch } %> +
- -
-
- <%= link_to 'Cancel', - @job_id.present? ? edit_host_job_path(@host, @job_id) : new_host_job_path(@host), - role: 'button', class: 'btn btn-danger'%> -
-
diff --git a/app/views/filesets/new.html.erb b/app/views/filesets/new.html.erb index 73a04f1..fec38f5 100644 --- a/app/views/filesets/new.html.erb +++ b/app/views/filesets/new.html.erb @@ -1,9 +1,14 @@ -

New Fileset

+
+
+
+
+

New Fileset

+
-
- <%= render partial: 'form', - locals: { url: host_filesets_path(@host), method: :post } %> +
+ <%= render partial: 'form', + locals: { url: host_filesets_path(@host), method: :post } %> +
+
+
- -<%= link_to 'Back to job', - @job_id.present? ? edit_host_job_path(@host, @job_id) : new_host_job_path(@host) %>