aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/projects/new.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/projects/new.tmpl')
-rw-r--r--templates/repo/projects/new.tmpl33
1 files changed, 27 insertions, 6 deletions
diff --git a/templates/repo/projects/new.tmpl b/templates/repo/projects/new.tmpl
index 79f9380dce..c90fa4369c 100644
--- a/templates/repo/projects/new.tmpl
+++ b/templates/repo/projects/new.tmpl
@@ -34,17 +34,38 @@
</div>
{{if not .PageIsEditProjects}}
- <label>{{.locale.Tr "repo.projects.template.desc"}}</label>
+ <div class="field">
+ <label>{{.locale.Tr "repo.projects.template.desc"}}</label>
+ <div class="ui selection dropdown">
+ <input type="hidden" name="board_type" value="{{.type}}">
+ <div class="default text">{{.locale.Tr "repo.projects.template.desc_helper"}}</div>
+ <div class="menu">
+ {{range $element := .BoardTypes}}
+ <div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{$.locale.Tr $element.Translation}}</div>
+ {{end}}
+ </div>
+ </div>
+ </div>
+ {{end}}
+
+ <div class="field">
+ <label>{{.locale.Tr "repo.projects.card_type.desc"}}</label>
<div class="ui selection dropdown">
- <input type="hidden" name="board_type" value="{{.type}}">
- <div class="default text">{{.locale.Tr "repo.projects.template.desc_helper"}}</div>
+ {{svg "octicon-triangle-down" 14 "dropdown icon"}}
+ {{range $element := .CardTypes}}
+ {{if or (eq $.card_type $element.CardType) (and (not $.card_type) (eq $element.CardType 2))}}
+ <input type="hidden" name="card_type" value="{{$element.CardType}}">
+ <div class="default text">{{$.locale.Tr $element.Translation}}</div>
+ {{end}}
+ {{end}}
<div class="menu">
- {{range $element := .ProjectTypes}}
- <div class="item" data-id="{{$element.BoardType}}" data-value="{{$element.BoardType}}">{{$.locale.Tr $element.Translation}}</div>
+ {{range $element := .CardTypes}}
+ <div class="item" data-id="{{$element.CardType}}" data-value="{{$element.CardType}}">{{$.locale.Tr $element.Translation}}</div>
{{end}}
</div>
</div>
- {{end}}
+ </div>
+
</div>
<div class="ui container">
<div class="ui divider"></div>