diff --git a/app/views/admin/hosts/_host.html.erb b/app/views/admin/hosts/_host.html.erb
index e798d74..f1adb47 100644
--- a/app/views/admin/hosts/_host.html.erb
+++ b/app/views/admin/hosts/_host.html.erb
@@ -1,13 +1,13 @@
<%= host.name %>
<%= host.fqdn %>
<%= host.first_user.display_name %>
<%= host.port %>
<%= I18n.l(host.created_at, format: :long) %>
<%= link_to 'Verify', verify_admin_host_path(host), method: :post,
class: "btn btn-success", role: "button",
- data: { confirm: "Host #{host.name} will be ready to be dispatched to Bacula" }
+ data: { confirm: "Client #{host.name} will be ready to be dispatched to Bacula" }
%>
diff --git a/app/views/admin/hosts/unverified.html.erb b/app/views/admin/hosts/unverified.html.erb
index 7388e52..eeb269e 100644
--- a/app/views/admin/hosts/unverified.html.erb
+++ b/app/views/admin/hosts/unverified.html.erb
@@ -1,24 +1,24 @@
-Unverified Hosts
+Unverified Clients
<% if @hosts.empty? %>
- There are no hosts pending for approval
+ There are no clients pending for approval
<% else %>
Name
FQDN
User
Port
Created At
Actions
<%= render partial: 'host', collection: @hosts %>
<% end %>
diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb
index 57f645b..6957523 100644
--- a/app/views/admin/users/index.html.erb
+++ b/app/views/admin/users/index.html.erb
@@ -1,37 +1,37 @@
<%= link_to new_admin_user_path, class: "btn btn-default", role: "button" do %>
New Admin
<% end %>
Users
id
Username
Email
User type
Created at
Last login at
Clients
- Unverified hosts
- Pending hosts
+ Unverified clients
+ Pending clients
Admin
Actions
Ban
<%= render partial: 'user', collection: @users %>
diff --git a/app/views/admin/users/show.html.erb b/app/views/admin/users/show.html.erb
index 1ba4b69..e4c6e0d 100644
--- a/app/views/admin/users/show.html.erb
+++ b/app/views/admin/users/show.html.erb
@@ -1,87 +1,87 @@
<%= render partial: 'header' %>
User details
Username
<%= @user.username %>
Email
<%= @user.email %>
User Type
<%= @user.user_type %>
Created At
<%= I18n.l(@user.created_at, format: :short) rescue '-' %>
Login At
<%= I18n.l(@user.login_at, format: :short) rescue '-' %>
Clients
<%= inline_list @user.baculized_hosts %>
- Pending Hosts
+ Pending Clients
<%= inline_list @user.non_baculized_hosts %>
<% if @user.institutional? %>
- Unverified Hosts
+ Unverified Clients
<%= inline_list @user.unverified_hosts %>
<% end %>
<% if @user.editable? %>
<%= link_to edit_admin_user_path(@user), class: 'btn btn-primary' do %>
Edit User
<% end %>
<% end %>
<% if @user.enabled? %>
<%= link_to ban_admin_user_path(@user), method: :patch, class: 'btn btn-default',
data: { confirm: "User #{@user.username} will be banned" } do %>
Ban User
<% end %>
<% else %>
<%= link_to unban_admin_user_path(@user), method: :patch, class: 'btn btn-default',
data: { confirm: "User #{@user.username} will be unbanned" } do %>
Unban User
<% end %>
<% end %>
<% if !@user.admin? %>
<% if @user.has_admin_access? %>
<%= link_to revoke_admin_admin_user_path(@user), method: :patch, class: 'btn btn-default',
- data: { confirm: "User #{@user.username} will be NOT an admin from now on" } do %>
+ data: { confirm: "User #{@user.username} will NOT be an admin from now on" } do %>
Revoke Admin
<% end %>
<% else %>
<%= link_to grant_admin_admin_user_path(@user), method: :patch, class: 'btn btn-default',
- data: { confirm: "User #{@user.username} will an admin from now on" } do %>
+ data: { confirm: "User #{@user.username} will be an admin from now on" } do %>
Grant Admin
<% end %>
<% end %>
<% end %>
<%= link_to 'Back to users', admin_users_path, class: 'right' %>
diff --git a/app/views/clients/index.html.erb b/app/views/clients/index.html.erb
index 66315a0..191f1c2 100644
--- a/app/views/clients/index.html.erb
+++ b/app/views/clients/index.html.erb
@@ -1,54 +1,54 @@
<%= link_to 'New Client', new_host_path, class: 'btn btn-primary', role: 'button' %>
-My Bacula Clients
+My Clients
Name
Uname
Active Jobs
Last Backup
File Ret. (days)
Job Ret. (days)
Space Used
Quota
Space Used %
Files
<%= render partial: 'client', collection: @clients %>
<% if @hosts.any? %>
- My Pending Hosts
+ My Pending Clients
Name
FQDN
Port
Password
FileRetention (days)
JobRetention (days)
Verified
Created At
<%= render partial: 'hosts/host', collection: @hosts %>
<% end %>
<%= render partial: 'client_graphs', locals: { path: clients_path } %>
diff --git a/app/views/clients/restore.html.erb b/app/views/clients/restore.html.erb
index bb5bea1..d2a23f5 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| %>
<%= 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.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 host. It has no successful backups
+
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/hosts/_form.html.erb b/app/views/hosts/_form.html.erb
index a3da61d..ae8d211 100644
--- a/app/views/hosts/_form.html.erb
+++ b/app/views/hosts/_form.html.erb
@@ -1,32 +1,32 @@
<%= bootstrap_form_for(@host, layout: :horizontal,
label_col: 'col-xs-3', control_col: 'col-xs-8') do |f| %>
<% if current_user.needs_host_list? %>
<%= f.select :fqdn, options_for_select(@hosts_of_user, @host.fqdn), {},
disabled: @host.persisted? %>
<% else %>
<%= f.text_field :fqdn, disabled: @host.persisted? %>
<% end %>
<%= f.password_field :password, required: true, value: @host.password %>
<%= f.number_field :port, min: 1 %>
<% emails = (@host.users.pluck(:email) + @host.email_recipients).uniq.select(&:present?) %>
<%= f.select :email_recipients, options_for_select(emails, @host.email_recipients), {},
multiple: true %>
<% end %>
diff --git a/app/views/hosts/edit.html.erb b/app/views/hosts/edit.html.erb
index 11bc55e..c9cc1b6 100644
--- a/app/views/hosts/edit.html.erb
+++ b/app/views/hosts/edit.html.erb
@@ -1,7 +1,7 @@
-Edit Host <%= @host.name %>
+Edit Client <%= @host.name %>
<%= render 'form' %>
<%= link_to 'Back', host_path(@host) %>
diff --git a/app/views/hosts/new.html.erb b/app/views/hosts/new.html.erb
index bcd7bbd..c2309b4 100644
--- a/app/views/hosts/new.html.erb
+++ b/app/views/hosts/new.html.erb
@@ -1,13 +1,13 @@
-
New Host
+ New Client
<%= render 'form' %>
<%= link_to 'Back', clients_path %>
diff --git a/app/views/jobs/_job_details.html.erb b/app/views/jobs/_job_details.html.erb
index 83db2e0..8919559 100644
--- a/app/views/jobs/_job_details.html.erb
+++ b/app/views/jobs/_job_details.html.erb
@@ -1,51 +1,51 @@
Name
<%= @job.name %>
Type
<%= @job.job_type %>
- Host
+ Client
<%= @host.name %>
Fileset
<%= @job.fileset.to_bacula_config_array.join("\n") %>
<% if @job.restore? %>
Restore Location
<%= @job.restore_location %>
<% else %>
Schedule
<%= @job.schedule.to_bacula_config_array.join("\n") %>
<% end %>
Client Run Before Job
<%= @job.client_before_run_file %>
Client Run After Job
<%= @job.client_after_run_file %>
Created
<%= I18n.l(@job.created_at, format: :long) %>
Enabled
<%= @job.enabled_human %>
diff --git a/app/views/shared/_admin.html.erb b/app/views/shared/_admin.html.erb
index 0ff754f..f234d75 100644
--- a/app/views/shared/_admin.html.erb
+++ b/app/views/shared/_admin.html.erb
@@ -1,42 +1,42 @@
<%= content_tag(:li, active_class(admin_path)) do %>
<%= link_to 'Admin', admin_path %>
<% end %>
<%= content_tag(:li, active_class(admin_clients_path, true)) do %>
<%= link_to 'Clients', admin_clients_path %>
<% end %>
<%= content_tag(:li, active_class(unverified_admin_hosts_path, true)) do %>
- <%= link_to 'Hosts', unverified_admin_hosts_path %>
+ <%= link_to 'Unverified Clients', unverified_admin_hosts_path %>
<% end %>
<%= content_tag(:li, { class: "dropdown #{active_class(admin_users_path)[:class]}" }) do %>
Users
<% end %>
<%= content_tag(:li, active_class(admin_faqs_path)) do %>
<%= link_to 'FAQ', admin_faqs_path %>
<% end %>
<%= content_tag(:li, active_class(admin_pools_path)) do %>
<%= link_to 'Pools', admin_pools_path %>
<% end %>
<%= content_tag(:li, active_class(admin_settings_path)) do %>
<%= link_to 'Settings', admin_settings_path %>
<% end %>
diff --git a/app/views/user_mailer/notify_admin.text.erb b/app/views/user_mailer/notify_admin.text.erb
index 96f84fe..0653738 100644
--- a/app/views/user_mailer/notify_admin.text.erb
+++ b/app/views/user_mailer/notify_admin.text.erb
@@ -1,9 +1,9 @@
-New Host pending admin approval.
+New Client pending admin approval.
user: <%= @user.username %> <%= admin_user_url(@user.id) %>
-host <%= @host %>
+client: <%= @host %>
<%= unverified_admin_hosts_url %>
---------
Archiving
diff --git a/app/views/user_mailer/notify_for_verification.text.erb b/app/views/user_mailer/notify_for_verification.text.erb
index e45e2ac..d0e8158 100644
--- a/app/views/user_mailer/notify_for_verification.text.erb
+++ b/app/views/user_mailer/notify_for_verification.text.erb
@@ -1,6 +1,6 @@
-Host <%= @host %> is approved by an admin.
+Client <%= @host %> is approved by an admin.
You can now start scheduling your backups.
---------
Archiving
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index d62dc44..f976052 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -1,64 +1,64 @@
User details
Username
<%= current_user.username %>
Email
<%= current_user.email %>
User Type
<%= current_user.user_type %>
Created At
<%= I18n.l(current_user.created_at, format: :short) rescue '-' %>
Login At
<%= I18n.l(current_user.login_at, format: :short) rescue '-' %>
Clients
<%= inline_list current_user.baculized_hosts %>
- Pending Hosts
+ Pending Clients
<%= inline_list current_user.non_baculized_hosts %>
<% if current_user.institutional? %>
- Unverified Hosts
+ Unverified Clients
<%= inline_list current_user.unverified_hosts %>
<% end %>
Authentication Token
<%= current_user.token %>
<%= link_to generate_token_user_path(current_user), method: :patch, class: 'btn btn-primary' do %>
Generate Token
<% end %>
<% if current_user.admin? %>
<%= link_to edit_admin_user_path(current_user), class: 'btn btn-primary' do %>
Edit User
<% end %>
<% end %>