mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 18:34:10 -05:00
1e06c1e392
Fixes: https://github.com/go-gitea/gitea/issues/29994 Also some misc enhancements done to the form in the modal. <img width="840" alt="Screenshot 2024-04-17 at 23 02 55" src="https://github.com/go-gitea/gitea/assets/115237/e71fba55-55cd-4e48-a497-6b1025c36a43"> (cherry picked from commit dd8e6ae270b4b5e91a152a145978029dacb938ff)
28 lines
1.1 KiB
Go HTML Template
28 lines
1.1 KiB
Go HTML Template
<div class="ui small modal" id="reference-issue-modal">
|
|
<div class="header">
|
|
{{ctx.Locale.Tr "repo.issues.context.reference_issue"}}
|
|
</div>
|
|
<div class="content tw-text-left">
|
|
<form class="ui form form-fetch-action" action="{{printf "%s/issues/new" .Repository.Link}}" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<div class="field">
|
|
<label><strong>{{ctx.Locale.Tr "repository"}}</strong></label>
|
|
<div class="ui search selection dropdown issue_reference_repository_search">
|
|
<div class="default text">{{.Repository.FullName}}</div>
|
|
<div class="menu"></div>
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<label><strong>{{ctx.Locale.Tr "repo.milestones.title"}}</strong></label>
|
|
<input name="title" value="" autofocus required maxlength="255" autocomplete="off">
|
|
</div>
|
|
<div class="field">
|
|
<label><strong>{{ctx.Locale.Tr "repo.issues.reference_issue.body"}}</strong></label>
|
|
<textarea name="content" class="form-control"></textarea>
|
|
</div>
|
|
<div class="text right">
|
|
<button class="ui primary button">{{ctx.Locale.Tr "repo.issues.create"}}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|