Websites/app/views/yiff_rest/apikeys/_edit_modal.html.erb

25 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2024-05-03 03:04:43 +00:00
<div class="modal fade" id="apikeyEditModal<%= key.id %>" tabindex="-1" aria-labelledby="apikeyEditModalLabel<%= key.id %>" aria-hidden="true">
<div class="modal-dialog">
<%= simple_form_for(key, url: yiff_rest_apikey_path(key)) do |f| %>
<div class="modal-content bg-dark">
<div class="modal-header">
<h1 class="modal-title fs-5" id="apikeyEditModalLabel">Edit 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(:application_name, label: "Application Name", class: "form-control") %>
</div>
<div class="form-group">
<%= f.input(:usage, class: "form-control") %>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-primary">Save</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
<% end %>
</div>
</div>