Skip to content

draft: prototype for dialog#116

Open
GliderGeek wants to merge 1 commit intomainfrom
dialog-attempts
Open

draft: prototype for dialog#116
GliderGeek wants to merge 1 commit intomainfrom
dialog-attempts

Conversation

@GliderGeek
Copy link
Collaborator

No description provided.

@GliderGeek GliderGeek mentioned this pull request Jan 6, 2026
rubenrouwhof added a commit that referenced this pull request Jan 7, 2026
- Add closedby='any' attribute to dialog for native ESC/backdrop closing
- Create centralized dialog.js for auto-show functionality
- Remove inline JavaScript from templates
- Maintain HTMX compatibility for dynamic content loading
- Simplify dialog implementation using more native browser features
rubenrouwhof added a commit that referenced this pull request Jan 7, 2026
- Update UserListView and label_admin views for URL-based modal triggers
- Replace HTMX modal loading with server-side conditionals
- Create user_form_fields.html and label form field templates
- Update user_list.html and label_admin.html with dialog elements
- Simplify view logic - just POST processing and redirects
- Follow PR #116 pattern with closedby='any' and .close class
rubenrouwhof added a commit that referenced this pull request Jan 7, 2026
- Simplify dialog.js to only handle auto-show and close buttons
- Remove all HTMX modal loading logic
- Convert label_category.html to use URL links instead of HTMX
- Update all label views to simple POST + redirect pattern
- Fix label_create URL routing to remove pk parameter
- Replace HTMX label forms with regular form submissions
- Clean up all view functions to remove HTMX-specific code

Now follows clean PR #116 pattern with server-side conditionals
rubenrouwhof added a commit that referenced this pull request Jan 7, 2026
- Remove redundant DOMContentLoaded listeners
- Use .close selector instead of .modal-close (consistent with PR #116)
- Only handle htmx:afterSwap events for dynamic content
- Update generic_form_modal.html to use .close class
- Cleaner hybrid HTMX + native dialog approach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant