mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
Replace Fomantic's hard-forked jQuery modal with native `<dialog>` elements, advancing https://github.com/go-gitea/gitea/issues/29849. The UI is visually unchanged. Dialogs open with `show()` over an `inert` page, so tooltips, popups and toasts mounted on `<body>` stay usable above them, unlike with `showModal()` (https://github.com/whatwg/html/issues/9936). - Remove the Fomantic modal and dimmer, add `showModal` and `hideModal` - Declare modals as `<dialog class="modal-dialog">`, shown inside a `.modal-backdrop`, instead of `ui modal` with its unused size classes - Remove two modals that could never be opened - Block the page while a modal is open, close the topmost one on Escape and restore focus to its opener - Allow stacked modals, use a confirm modal instead of `window.confirm` for deleting content history - Hide popups and toasts when a modal opens or closes - Keep the release notes modal open when generating notes fails Fixes: https://github.com/go-gitea/gitea/issues/39643 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
28 lines
1.0 KiB
Handlebars
28 lines
1.0 KiB
Handlebars
<dialog class="modal-dialog" id="push-mirror-edit-modal">
|
|
<div class="header">
|
|
{{ctx.Locale.Tr "repo.settings.mirror_settings.push_mirror.edit_sync_time"}}
|
|
</div>
|
|
<form class="content ui form ignore-dirty" method="post">
|
|
<input type="hidden" name="action" value="push-mirror-update">
|
|
<input type="hidden" name="push_mirror_id" id="push-mirror-edit-id">
|
|
<div class="field">
|
|
<label>{{ctx.Locale.Tr "repo.settings.mirror_settings.mirrored_repository"}}</label>
|
|
<span id="push-mirror-edit-address"></span>
|
|
</div>
|
|
<div class="field">
|
|
<label for="push-mirror-edit-interval">{{ctx.Locale.Tr "repo.mirror_interval" .MinimumMirrorInterval}}</label>
|
|
<input id="push-mirror-edit-interval" name="push_mirror_interval" class="tw-w-auto">
|
|
</div>
|
|
<div class="actions">
|
|
<button type="button" class="ui basic cancel button">
|
|
{{svg "octicon-x"}}
|
|
{{ctx.Locale.Tr "cancel"}}
|
|
</button>
|
|
<button type="submit" class="ui primary approve button">
|
|
{{svg "fontawesome-save"}}
|
|
{{ctx.Locale.Tr "save"}}
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</dialog>
|