From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- templates/repo/issue/new_form.tmpl | 155 +++++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 templates/repo/issue/new_form.tmpl (limited to 'templates/repo/issue/new_form.tmpl') diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl new file mode 100644 index 0000000..c2cf4ee --- /dev/null +++ b/templates/repo/issue/new_form.tmpl @@ -0,0 +1,155 @@ +{{if .Flash}} +{{template "base/alert" .}} +{{end}} +
+ {{.CsrfTokenHtml}} +
+
+
+ {{ctx.AvatarUtils.Avatar .SignedUser 40}} +
+
+ + {{if .PageIsComparePull}} +
{{ctx.Locale.Tr "repo.pulls.title_wip_desc" (index .PullRequestWorkInProgressPrefixes 0)}}
+ {{end}} +
+ {{if .Fields}} + + {{range .Fields}} + {{if eq .Type "input"}} + {{template "repo/issue/fields/input" dict "Context" $.Context "item" .}} + {{else if eq .Type "markdown"}} + {{template "repo/issue/fields/markdown" dict "Context" $.Context "item" .}} + {{else if eq .Type "textarea"}} + {{template "repo/issue/fields/textarea" dict "Context" $.Context "item" . "root" $}} + {{else if eq .Type "dropdown"}} + {{template "repo/issue/fields/dropdown" dict "Context" $.Context "item" .}} + {{else if eq .Type "checkboxes"}} + {{template "repo/issue/fields/checkboxes" dict "Context" $.Context "item" .}} + {{end}} + {{end}} + {{else}} + {{template "repo/issue/comment_tab" .}} + {{end}} +
+ +
+
+
+
+
+ +
+ {{template "repo/issue/view_content/sidebar/branch_selector_field" .}} + + + {{template "repo/issue/labels/labels_selector_field" .}} + {{template "repo/issue/labels/labels_sidebar" dict "root" $}} + +
+ + + +
+ {{ctx.Locale.Tr "repo.issues.new.no_milestone"}} + +
+ + {{if .IsProjectsEnabled}} +
+ + + +
+ {{ctx.Locale.Tr "repo.issues.new.no_projects"}} + +
+ {{end}} +
+ {{template "repo/issue/view_content/sidebar/assignees" dict "isExistingIssue" false "." .}} + {{if and .PageIsComparePull (not (eq .HeadRepo.FullName .BaseCompareRepo.FullName)) .CanWriteToHeadRepo}} +
+
+
+ + +
+
+ {{end}} +
+ +
-- cgit v1.2.3