Add debugging and fix form field attributes in admin modal
- Add console logging to openEditModal function to debug AJAX load - Add explicit id and name attributes to admin select field - Only show modal after content successfully loads - Log errors if modal content fails to load This helps diagnose the modal loading issue and fixes the Chrome warning about form fields lacking id/name attributes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
|
||||
<div class="mb-3">
|
||||
<%= f.label :admin, nil, {:class => "form-label"}%>
|
||||
<%= f.select(:admin, @admin_select, {}, {:class => "form-select"}) %>
|
||||
<%= f.select(:admin, @admin_select, {}, {:class => "form-select", :id => "user_admin", :name => "user[admin]"}) %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
|
||||
Reference in New Issue
Block a user