aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue/new_form.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-10 21:47:23 +0800
committerUnknwon <u@gogs.io>2015-08-10 21:47:23 +0800
commit75aff60c903c2c5ab92d75c9f067d6815f3daa2e (patch)
treee12104d0fbb25f15c41ee83c6c47acf9841df703 /templates/repo/issue/new_form.tmpl
parent09a1b2a1f5ca4c510be2828635a790b2a775ac94 (diff)
downloadgitea-75aff60c903c2c5ab92d75c9f067d6815f3daa2e.tar.gz
gitea-75aff60c903c2c5ab92d75c9f067d6815f3daa2e.zip
finish create issue with milestone and assignee
Diffstat (limited to 'templates/repo/issue/new_form.tmpl')
-rw-r--r--templates/repo/issue/new_form.tmpl20
1 files changed, 13 insertions, 7 deletions
diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl
index 6d31a01e60..2d7a3edee8 100644
--- a/templates/repo/issue/new_form.tmpl
+++ b/templates/repo/issue/new_form.tmpl
@@ -101,23 +101,29 @@
</div>
</div>
- <!-- <div class="ui divider"></div>
+ <div class="ui divider"></div>
- <div class="ui {{if not .Assignees}}disabled{{end}} dropdown jump item">
+ <input id="assignee_id" name="assignee_id" type="hidden" value="{{.assignee_id}}">
+ <div class="ui {{if not .Assignees}}disabled{{end}} jump select-assignee dropdown">
<span class="text">
<strong>{{.i18n.Tr "repo.issues.new.assignee"}}</strong>
<span class="octicon octicon-gear"></span>
</span>
<div class="menu">
- <div class="item">{{.i18n.Tr "repo.issues.new.clear_assignee"}}</a>
+ <div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_assignee"}}</div>
{{range .Assignees}}
- <a class="item" href="#"><span class="octicon {{if eq .ID $.AssigneeID}}octicon-check{{end}}"></span> {{.Name}}</a>
+ <div class="item" data-id="{{.Id}}" data-href="{{.HomeLink}}" data-avatar="{{.AvatarLink}}"><img src="{{.AvatarLink}}"> {{.Name}}</div>
{{end}}
</div>
</div>
- <div class="ui list">
- <span class="item">filter_label_no_select</span>
- </div> -->
+ <div class="ui select-assignee list">
+ <span class="no-select item {{if .Assignee}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_assignee"}}</span>
+ <div class="selected">
+ {{if .Assignee}}
+ <a class="item" href="{{.Assignee.HomeLink}}"><img class="ui avatar image" src="{{.Assignee.AvatarLink}}"> {{.Assignee.Name}}</a>
+ {{end}}
+ </div>
+ </div>
</div>
</div>
{{end}}