Page MenuHomeGRNET

restore.html.erb
No OneTemporary

File Metadata

Created
Sun, Aug 10, 4:36 AM

restore.html.erb

<h1>Restore files for "<%= @host.name %>"</h1>
<div class="row">
<div class="col-xs-6">
<% if @host.restorable? %>
<% restore_point = @host.client.last_job_date_formatted %>
<div class="container graybox">
<%= bootstrap_form_tag(url: run_restore_host_path(@host), layout: :horizontal,
label_col: 'col-xs-4', control_col: 'col-xs-8' ) do |f| %>
<%= f.text_field(:restore_point, value: restore_point, disabled: true) %>
<%= f.text_field(:restore_location) %>
</br>
<%= f.submit 'Restore Files', class: 'btn btn-warning right',
data: { confirm: "This will restore all your files at the most recent backup (#{restore_point})" }
%>
<% end %>
</div>
<% else %>
<div class="alert alert-warning">
<p>Can not issue a restore for this host. It is either not deployed or has no successful backups</p>
</div>
<% end %>
<%= link_to 'Cancel', client_path(@host.client), class: 'btn btn-danger', role: 'button' %>
</div>
</div>

Event Timeline