forgejo/templates/repo/settings
Panagiotis "Ivory" Vasilopoulos 023cd2ee90 UI: Disable internal wiki options when enabling external wiki
Using "data-target", it is possible to set a value to a target element
that can enable it or disable it. Using "data-context" lets us perform
the opposite action on a different target.

Before, only the #external_wiki_box target was used, which was enabled
or disabled depending on whether the user has chosen to use the internal
wiki or the external wiki. If the user chooses to use the internal wiki,
they will disable the box that lets them enter a link pointing to an
external wiki, and vice versa. Although it is not possible to use, say,
boolean operations, we can introduce a target that is
called #globally_writeable_checkbox that gets enabled when
the #external_wiki_box box is disabled, and vice versa.

This makes the box's behavior more consistent with the behavior in the
"Issues" section. To keep things consistent with that section, a new
property was assigned to the "globally_writeable_checkbox" that makes
the box go a bit further in (`tw-pl-4`).

(cherry picked from commit 103306f00c)
2024-04-30 05:33:31 +00:00
..
units UI: Disable internal wiki options when enabling external wiki 2024-04-30 05:33:31 +00:00
webhook
actions.tmpl
branches.tmpl
collaboration.tmpl
deploy_keys.tmpl
githook_edit.tmpl
githooks.tmpl
layout_footer.tmpl
layout_head.tmpl
lfs.tmpl [UI] Fix primary button background inconsistency 2024-04-03 19:03:03 +00:00
lfs_file.tmpl Fix border-radius on view, blame and code search (#30545) (#30560) 2024-04-21 18:11:36 +02:00
lfs_file_find.tmpl fix(lfs): gogit /settings/lfs/find 500 error (#3472) 2024-04-26 09:48:22 +00:00
lfs_locks.tmpl
lfs_pointers.tmpl
navbar.tmpl
options.tmpl replaced link to gitea docu 2024-04-28 14:27:11 +00:00
protected_branch.tmpl
push_mirror_sync_modal.tmpl
runner_edit.tmpl
secrets.tmpl
tags.tmpl
units.tmpl