diff --git a/app/views/clients/restore.html.erb b/app/views/clients/restore.html.erb index d2a23f5..11b5e13 100644 --- a/app/views/clients/restore.html.erb +++ b/app/views/clients/restore.html.erb @@ -1,65 +1,65 @@
<% if @client.is_backed_up? %>

Restore files for "<%= @client.name %>"


<%= bootstrap_form_tag(url: run_restore_client_path(@client), remote: true, layout: :horizontal, label_col: 'col-xs-4', control_col: 'col-xs-7', html: { id: 'basic-form' } ) do |f| %>

Restore to most recent backup by leaving date and time blank

<%= f.text_field :restore_date %> <%= f.time_select :restore_time, ignore_date: true, minute_step: 30, prompt: true %> <%= f.select(:fileset, options_from_collection_for_select(@client.file_sets, :id, :file_set)) %> - <%= f.text_field :restore_location, placeholder: '/tmp/bacula_restore' %> + <%= f.text_field :restore_location, placeholder: '/tmp/default_restore' %>
<%= f.submit 'Select Specific Files', id: 'select-files', class: 'btn btn-primary' %>

<%= f.submit 'Restore All Files', class: 'btn btn-warning text-right', data: { confirm: "This will restore all your files" } %>
<% end %>
<% else %>

Can not issue a restore for this client. It does not have any successful backups

<% end %> <%= link_to 'Back to client', client_path(@client), class: 'btn btn-danger', role: 'button' %>
<%= render partial: 'file_selector' %>
diff --git a/app/views/clients/show.html.erb b/app/views/clients/show.html.erb index 0d132e5..5820291 100644 --- a/app/views/clients/show.html.erb +++ b/app/views/clients/show.html.erb @@ -1,25 +1,25 @@ <%= render partial: 'header' %>

Client Details

-

Bacula Jobs

+

Backup Jobs

<%= render partial: 'client_details' %>
<%= render partial: 'jobs' %>

<%= link_to 'Back to clients', clients_path %> <%= render partial: 'jobs/modals' %> diff --git a/app/views/filesets/_form.html.erb b/app/views/filesets/_form.html.erb index 8d0a7df..b909bd2 100644 --- a/app/views/filesets/_form.html.erb +++ b/app/views/filesets/_form.html.erb @@ -1,19 +1,19 @@ <%= 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 %> - <%= text_with_errors_and_plus(@fileset, :fileset, :exclude_directions, 'Exclude', '/bacula') %> + <%= text_with_errors_and_plus(@fileset, :fileset, :exclude_directions, 'Exclude', '/a_restore_location') %> <%= (hidden_field_tag :job_id, @job_id) if @job_id%>
<%= f.submit class: 'btn btn-success' %>
<% end %> diff --git a/app/views/hosts/_header.html.erb b/app/views/hosts/_header.html.erb index d2e68d6..bb6532e 100644 --- a/app/views/hosts/_header.html.erb +++ b/app/views/hosts/_header.html.erb @@ -1,31 +1,31 @@
<% if @host.can_be_disabled? %> <%= link_to 'Disable client', disable_host_path(@host), method: :post, data: { confirm: 'This will disable the client. Are you sure?' }, class: "btn btn-warning", role: "button" %> <% end %> <%= link_to 'Remove client', host_path(@host), method: :delete, - data: { confirm: 'This will remove the client from Bacula. Are you sure?' }, + data: { confirm: 'This will remove your client from the Backup service. Are you sure?' }, class: "btn btn-danger", role: "button" %>

Configuration for <%= @host.name %> <%= host_status_label(@host) %>



diff --git a/app/views/hosts/_host_details.html.erb b/app/views/hosts/_host_details.html.erb index 08e46f9..2f1b33d 100644 --- a/app/views/hosts/_host_details.html.erb +++ b/app/views/hosts/_host_details.html.erb @@ -1,73 +1,73 @@
Name <%= @host.name %>
FQDN <%= @host.fqdn %>
FDPort <%= @host.port %>
Token ********
File Retention <%= @host.file_retention %> days
Job Retention <%= @host.job_retention %> days
Verified <% if @host.verified? %> yes <% else %> no <% end %>
Created <%= I18n.l(@host.created_at, format: :long) %>
<%= link_to 'Edit', edit_host_path(@host), class: "btn btn-primary", role: "button" %>
<% if @host.needs_dispatch? %>
<%= link_to 'Deploy Changes', submit_config_host_path(@host), method: :post, class: 'btn btn-success', role: 'button' %>
<% end %> <% if @host.needs_revoke? %>
- <%= link_to 'Remove From Bacula', revoke_host_path(@host), method: :delete, + <%= link_to 'Remove From Backup service', revoke_host_path(@host), method: :delete, class: 'btn btn-danger', role: 'button' %>
<% end %>

<% if @host.client %>
<%= link_to "Back to #{@host.name} client".html_safe, client_path(@host.client) %>
<% end %>
diff --git a/app/views/user_mailer/notify_for_invitation.text.erb b/app/views/user_mailer/notify_for_invitation.text.erb index 65690b9..4543ed7 100644 --- a/app/views/user_mailer/notify_for_invitation.text.erb +++ b/app/views/user_mailer/notify_for_invitation.text.erb @@ -1,8 +1,8 @@ -You are invited to manage <%= @invitation.host.fqdn %> 's Bacula policy +You are invited to manage <%= @invitation.host.fqdn %> 's Backups policy. To accept the invitation please follow the following link <%= accept_invitation_url(@invitation.accept_hash) %> --------- Archiving