<% if @host.verified? %>
yes
<% else %>
no
<% end %>
Created
<%= I18n.l(@host.created_at, format: :long) %>
<%= link_to edit_host_path(@host), class: "btn btn-default", role: "button" do %>
Edit
<% end %>
<% if @host.can_be_disabled? %>
<%= link_to disable_host_path(@host), method: :post,
data: { confirm: 'This will disable the client. Are you sure?' },
class: "btn btn-default", role: "button" do %>
Disable
<% end %>
<% end %>
<%= link_to host_path(@host), method: :delete,
data: { confirm: 'This will remove your client from the Backup service. Are you sure?' },
class: "btn btn-default", role: "button" do %>
Remove
<% end %>
<% if @host.needs_simple_config? %>
<%= link_to new_host_simple_config_path(@host), role: 'button', class: 'btn btn-default' do %>
Configure
<% end %>
<% end %>
<% if @host.needs_dispatch? %>
<%= link_to submit_config_host_path(@host), method: :post,
class: 'btn btn-success', role: 'button' do %>
Deploy Changes
<% end %>
<%= f.text_field :client_before_run_file,
label: tooltip_label('Client Run Before Job',
'A command that the backed up server will run right before the backup job starts') %>
<%= f.text_field :client_after_run_file,
label: tooltip_label('Client Run After Job',
'A command that the backed up server will run after the backup job has finished') %>