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

22 lines
1020 B
Plaintext

<div class="modal fade" id="apikeyDisableModal<%= key.id %>" tabindex="-1" aria-labelledby="apikeyDisableModalLabel<%= key.id %>" aria-hidden="true">
<div class="modal-dialog">
<%= simple_form_for(key, url: disable_yiff_rest_apikey_path(key), method: :post) do |f| %>
<div class="modal-content bg-dark">
<div class="modal-header">
<h1 class="modal-title fs-5" id="apikeyDisableModalLabel">Disable API Key #<%= key.id %></h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="form-group">
<%= f.input(:disabled_reason, label: "Reason", class: "form-control") %>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-danger">Disable</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
<% end %>
</div>
</div>