Problem/Motivation
forms for user interface translation (/admin/config/regional/translate) are reloading the page after each submit, we can do better
Steps to reproduce
Proposed resolution
htmx-ify the forms
sort of combine the following issues: #3522597: Return only main content for selected htmx requests and #3535173: Support dynamic forms using HTMX
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3538544
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
nod_Comment #4
nod_Bunch of updates, implements the _wrapper_format=drupal_htmx to reduce the size and contents of the ajax requests
Comment #5
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #6
nod_Comment #7
fathershawnComment #8
nod_Comment #9
nod_Because of how these forms work we need #3546105: Automatically manage _wrapper_format for HTMX requests and clean up ajax_page_state in urls before
Comment #10
nod_We should be able to deal with it here, need to try a few things where we might have to refactor the backend a bit
Comment #11
nod_Got it sort of working but there are problems:
Comment #12
nod_got the pagination working but it's not limited to this form, I don't know what else it might break
Comment #14
joaopauloc.dev commentedAfter talking to @nod_ in the slack, he mentioned about the new boost htmx feature that he worked in this issue. Since his approach is much better than the previous htmx flag variable. I'm bringing the changes related with the pager and htmx class to make it possible to use the boost approach in this issue.