diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 8 | ||||
-rw-r--r-- | templates/repo/issue/view_title.tmpl | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 69b5a11a14..1a68781ecd 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -139,7 +139,7 @@ </div> <template id="issue-comment-editor-template"> - <div class="ui form comment"> + <form class="ui form comment"> <div class="field"> {{template "shared/combomarkdowneditor" (dict "CustomInit" true @@ -158,11 +158,11 @@ <div class="field"> <div class="text right edit"> - <button class="ui cancel button">{{ctx.Locale.Tr "repo.issues.cancel"}}</button> - <button class="ui primary button">{{ctx.Locale.Tr "repo.issues.save"}}</button> + <button type="button" class="ui cancel button">{{ctx.Locale.Tr "repo.issues.cancel"}}</button> + <button type="submit" class="ui primary button">{{ctx.Locale.Tr "repo.issues.save"}}</button> </div> </div> - </div> + </form> </template> {{template "repo/issue/view_content/reference_issue_dialog" .}} diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index bf2ede58e4..0354f6ef22 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -26,17 +26,17 @@ </div> </div> {{if $canEditIssueTitle}} - <div class="ui form issue-title tw-hidden" id="issue-title-editor"> + <form class="ui form issue-title tw-hidden" id="issue-title-editor"> <div class="ui input tw-flex-1"> - <input value="{{.Issue.Title}}" data-old-title="{{.Issue.Title}}" maxlength="255" autocomplete="off"> + <input name="title" value="{{.Issue.Title}}" data-old-title="{{.Issue.Title}}" maxlength="255" autocomplete="off"> </div> <div class="issue-title-buttons"> - <button class="ui small basic cancel button">{{ctx.Locale.Tr "repo.issues.cancel"}}</button> - <button class="ui small primary button" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/title"> + <button type="button" class="ui small basic cancel button">{{ctx.Locale.Tr "repo.issues.cancel"}}</button> + <button type="submit" class="ui small primary button" data-update-url="{{$.RepoLink}}/issues/{{.Issue.Index}}/title"> {{ctx.Locale.Tr "repo.issues.save"}} </button> </div> - </div> + </form> {{end}} <div class="issue-title-meta"> {{if .HasMerged}} |