diff --git a/app/views/schedules/_form.html.erb b/app/views/schedules/_form.html.erb index 1b00f39..4c3700b 100644 --- a/app/views/schedules/_form.html.erb +++ b/app/views/schedules/_form.html.erb @@ -1,49 +1,51 @@ -<%= bootstrap_form_for(@schedule, url: url, method: method, layout: :horizontal, - label_col: 'col-xs-3', control_col: 'col-xs-8') do |f| %> - <%= f.text_field :name, required: true %> +
+ <%= bootstrap_form_for(@schedule, url: url, method: method, layout: :horizontal, + label_col: 'col-xs-3', control_col: 'col-xs-8') do |f| %> + <%= f.text_field :name, required: true %> -
- <% if ['schedule_runs.day','schedule_runs.month','scheduled_runs.time'] - @schedule.errors.keys %> -
- -
- <% end %> - - <%= f.fields_for :schedule_runs, @schedule.schedule_runs do |r| %> -
- <%= r.select :level, options_for_select(ScheduleRun.options_for_select, r.object.level) %> - <%= r.text_field :month, placeholder: '[month | month-range]' %> -

eg: jan-mar, feb, monthly

- <%= r.text_field :day, placeholder: '[week | week-range] day | day-range', - required: true %> -

-eg: first sun, second-fifth mon, mon-sat -

- <%= r.text_field :time, placeholder: 'HH:MM', class: 'timepicker', required: true %> -
-
- <% end %> - -
- <%= link_to '#', class: 'schedule_run_form_remove', style: 'display:none;' do %> - +
+ <% if ['schedule_runs.day','schedule_runs.month','scheduled_runs.time'] - @schedule.errors.keys %> +
+
    + <% @schedule.errors.full_messages.each do |message| %> +
  • <%= message %>
  • + <% end %> +
+
<% end %> -
-
- <%= link_to '#', class: 'schedule_run_form_plus' do %> - + + <%= f.fields_for :schedule_runs, @schedule.schedule_runs do |r| %> +
+ <%= r.select :level, options_for_select(ScheduleRun.options_for_select, r.object.level) %> + <%= r.text_field :month, placeholder: '[month | month-range]' %> +

eg: jan-mar, feb, monthly

+ <%= r.text_field :day, placeholder: '[week | week-range] day | day-range', + required: true %> +

+ eg: first sun, second-fifth mon, mon-sat +

+ <%= r.text_field :time, placeholder: 'HH:MM', class: 'timepicker', required: true %> +
+
<% end %> -
- <%= (hidden_field_tag :job_id, @job_id) if @job_id %> +
+ <%= link_to '#', class: 'schedule_run_form_remove', style: 'display:none;' do %> + + <% end %> +
+
+ <%= link_to '#', class: 'schedule_run_form_plus' do %> + + <% end %> +
-
-
- <%= f.submit class: 'btn btn-success' %> + <%= (hidden_field_tag :job_id, @job_id) if @job_id %> + +
+
+ <%= f.submit class: 'btn btn-success' %> +
-
-<% end %> + <% end %> +
diff --git a/app/views/schedules/_level_explanation.html.erb b/app/views/schedules/_level_explanation.html.erb new file mode 100644 index 0000000..0bf6082 --- /dev/null +++ b/app/views/schedules/_level_explanation.html.erb @@ -0,0 +1,31 @@ +
+
+
+
+
+

Level Explanation

+
+ +
+ +
+

Full

+

When the Level is set to Full all files in the FileSet whether or not they have changed will be backed up.

+

Differential

+

When the Level is set to Differential all files specified in the FileSet that have changed since the last successful Full backup of the same Job will be backed up.

+

If there is no successful previous Full backup, a Differential backup is upgraded to a Full backup.

+

Incremental

+

When the Level is set to Incremental all files specified in the FileSet that have changed since the last successful backup of the the same Job using the same FileSet and Client, will be backed up.

+

If there is no successful previous Full backup, an Incremental backup is upgraded to a Full backup.

+
+
+
+
+ +
+
+ <%= 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/edit.html.erb b/app/views/schedules/edit.html.erb index b46f26b..10e892e 100644 --- a/app/views/schedules/edit.html.erb +++ b/app/views/schedules/edit.html.erb @@ -1,17 +1,13 @@ -

Edit Schedule: <%= @schedule.name %>

-

Edit Schedule

-
- <%= render partial: 'form', - locals: { url: host_schedule_path(@host, @schedule.id, job_id: @job_id), method: :patch } %> + locals: { url: host_schedule_path(@host, @schedule.id, job_id: @job_id), + method: :patch } %>
-<%= link_to 'Back to job', - @job_id.present? ? edit_host_job_path(@host, @job_id) : new_host_job_path(@host) %> +<%= render partial: 'level_explanation' %> diff --git a/app/views/schedules/new.html.erb b/app/views/schedules/new.html.erb index 15112b5..afc8039 100644 --- a/app/views/schedules/new.html.erb +++ b/app/views/schedules/new.html.erb @@ -1,8 +1,11 @@ -

New Schedule

+
+
+
+

New Schedule

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