diff options
Diffstat (limited to 'templates/projects/new.tmpl')
-rw-r--r-- | templates/projects/new.tmpl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/projects/new.tmpl b/templates/projects/new.tmpl index ecb8c74565..9accfbcc1c 100644 --- a/templates/projects/new.tmpl +++ b/templates/projects/new.tmpl @@ -45,6 +45,24 @@ </div> </div> {{end}} + + <div class="field"> + <label>{{.locale.Tr "repo.projects.card_type.desc"}}</label> + <div class="ui selection dropdown"> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} + {{range $element := .CardTypes}} + {{if or (eq $.card_type $element.CardType) (and (not $.PageIsEditProjects) (eq $element.CardType 1))}} + <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 := .CardTypes}} + <div class="item" data-id="{{$element.CardType}}" data-value="{{$element.CardType}}">{{$.locale.Tr $element.Translation}}</div> + {{end}} + </div> + </div> + </div> </div> <div class="ui container"> <div class="ui divider"></div> |