forgejo/templates/org
Gusted 72bac98365 feat: require data-modal-id for delete buttons (#8711)
All instances should have a `data-modal-id` now. Throw a user-friendly error if this is not the case (custom templates, or missed cases).

Checked via `rg -P -e '^(?=.*delete-button)' | grep -v "data-modal-id"`

Removed two instances of delete modals and one case of simplified logic.

## Rationale
I am currently surveying the existing modals in Forgejo in the context of eventually replacing the modals implementation with our own modal implementation. This refactor fixes one of the many inconsistencies that the current usage of modals has. It should explicitly specify which modal should be used to avoids any problems if new modals are introduced on the page (for example via https://codeberg.org/forgejo/forgejo/pulls/8662).

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8711
Reviewed-by: oliverpool <oliverpool@noreply.codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-08-08 01:53:23 +02:00
..
member ui: simplify main-attribute labels 2024-12-08 17:30:52 +05:00
projects Fix the missing menu in organization project view page (#32313) 2024-11-05 09:33:15 +01:00
settings feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
team feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
create.tmpl Restore form inputs on organization create error (#34201) 2025-04-22 09:54:18 +02:00
follow_unfollow.tmpl feat(ui): improve org header with new noJS dropdown and more options (#8572) 2025-07-23 02:06:13 +02:00
header.tmpl feat(ui): improve org header with new noJS dropdown and more options (#8572) 2025-07-23 02:06:13 +02:00
home.tmpl fix(ui): hide 'New migration' button on org pages with migrations disabled (#6850) (#6851) 2025-02-08 15:06:02 +00:00
menu.tmpl Update module github.com/editorconfig-checker/editorconfig-checker/v2/cmd/editorconfig-checker to v3 2024-08-09 21:03:37 +02:00