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 feat: allow changing default branch update style 2024-12-23 18:55:25 +03:00
webhook feat: require data-modal-id for delete buttons (#8711) 2025-08-08 01:53:23 +02:00
actions.tmpl Support configuration variables on Gitea Actions (#24724) 2023-06-20 22:54:15 +00:00
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 Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
githooks.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
layout_footer.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
layout_head.tmpl Use flex-container for repo and org settings (#27418) 2023-10-04 08:47:54 +02:00
lfs.tmpl chore(ui): always use primary button color inside modals (#7161) 2025-03-09 07:45:58 +00:00
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 [PORT] Refactor DateUtils and merge TimeSince (gitea#32409) 2024-11-10 22:23:27 +01:00
lfs_pointers.tmpl Migrate font-family to tailwind (#30118) 2024-03-30 07:17:32 +01:00
navbar.tmpl fix(ui): repo settings units overview anchor (#8322) 2025-07-01 01:07:19 +02:00
options.tmpl chore(ui): improve hashbox (#8721) 2025-08-03 05:49:24 +02:00
protected_branch.tmpl Remove urls from translations (#31950) 2024-09-12 17:28:58 +05:00
push_mirror_sync_modal.tmpl fix(ui): improve branch filter help (#8509) 2025-07-14 19:31:26 +02:00
runner_edit.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
secrets.tmpl Change to vertical navbar layout for secondary navbar for repo/user/admin settings (#24246) 2023-04-23 18:21:21 +08:00
tags.tmpl Remove urls from translations (#31950) 2024-09-12 17:28:58 +05:00
units.tmpl Split out repository unit settings 2024-02-13 22:42:09 +01:00