Files
mock-gui/views/prjsnap_restore.erb
2025-12-25 23:39:27 +03:00

18 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<%= erb :header %>
<div class="container">
<h2 class="text-center">Восстановить пакеты репозитория <%= @proj_name %> из снимка</h2>
<form action="/prjsnap_restore/<%= ERB::Util.url_encode(@proj_id) %>?snap=<%= ERB::Util.url_encode(@snap_name) %>" method="post">
<div class="form-check form-switch text-center pb-3">
<input class="form-check-input" type="checkbox" role="switch" id="yes" name="yes">
<label class="form-check-label" for="yes">
Вы уверены, что хотите восстановить пакеты из снимка <%= @snap_name %>?<br />
Все пакеты в текущем репозитории будут перезаписаны, действие не подлежит отмене.
</label>
</div>
<div class="mb-3 text-center">
<button type="submit" class="btn btn-primary" name="cancel" value="cancel">Отменить</button>
<button type="submit" class="btn btn-danger" name="restore" value="restore">Восстановить</button>
</div>
</form>
</div>
<%= erb :footer %>