forgejo/templates/repo/settings
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
..
units
webhook feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
actions.tmpl
branches.tmpl feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
collaboration.tmpl feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
deploy_keys.tmpl feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
githook_edit.tmpl
githooks.tmpl
layout_footer.tmpl
layout_head.tmpl
lfs.tmpl
lfs_file.tmpl frontend: generic lazy loader for webcomponents (#8510) 2025-07-23 04:10:50 +02:00
lfs_file_find.tmpl chore(ui): improve hashbox (#8721) 2025-08-03 05:49:24 +02:00
lfs_locks.tmpl
lfs_pointers.tmpl
navbar.tmpl
options.tmpl chore(ui): improve hashbox (#8721) 2025-08-03 05:49:24 +02:00
protected_branch.tmpl
push_mirror_sync_modal.tmpl fix(ui): improve branch filter help (#8509) 2025-07-14 19:31:26 +02:00
runner_edit.tmpl
secrets.tmpl
tags.tmpl
units.tmpl