scinote-web/app/views/repositories/_delete_repository_modal.html.erb

34 lines
1.5 KiB
Text
Raw Normal View History

<div class="modal fade" id="delete-repo-modal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document" data-e2e="e2e-MD-invDeleteAT">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" data-e2e="e2e-BT-invDeleteMD-close">
2023-08-17 19:55:17 +08:00
<i class="sn-icon sn-icon-close"></i>
</button>
<h4 class="modal-title"><%= t("repositories.index.modal_delete.title_html", name: @repository.name) %></h4>
</div>
<div class="modal-body">
<p><%= t("repositories.index.modal_delete.message_html", name: @repository.name) %></p>
<div class="alert alert-danger" role="alert">
2020-01-21 22:21:40 +08:00
<span class="fas fa-exclamation-triangle"></span>
&nbsp;
<%= t("repositories.index.modal_delete.alert_heading") %>
<ul>
<li><%= t("repositories.index.modal_delete.alert_line_1") %></li>
<li><%= t("repositories.index.modal_delete.alert_line_2") %></li>
</ul>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal" data-e2e="e2e-BT-invDeleteMD-cancel"><%= t("general.cancel")%></button>
<%= link_to t('repositories.index.modal_delete.delete'),
team_repository_path(id: @repository),
id: "confirm-repo-delete",
method: :delete,
type: 'button',
class: 'btn btn-danger' %>
</div>
</div>
</div>
</div>