Websites/app/views/yiff_rest/apikeys/_delete_modal.html.erb
2024-05-02 22:04:43 -05:00

18 lines
862 B
Plaintext

<div class="modal fade" id="apikeyDeleteModal<%= key.id %>" tabindex="-1" aria-labelledby="apikeyDeleteModalLabel<%= key.id %>" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content bg-dark">
<div class="modal-header">
<h1 class="modal-title fs-5" id="apikeyEditModalLabel">Delete API Key #<%= key.id %></h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>Are you sure you want to delete this api key? This cannot be undone.</p>
</div>
<div class="modal-footer">
<%= button_to "Delete", yiff_rest_apikey_path(key), class: "btn btn-danger", method: :delete %>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>