diff options
author | Unknwon <u@gogs.io> | 2015-08-10 16:52:08 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-10 16:52:08 +0800 |
commit | 922f3f306239aca309279dbdf1bdedfb9788b6e8 (patch) | |
tree | 410c6eb28335f9e0a213da59699053b159f607ea /templates/repo | |
parent | 17de3ab0a313819bdeb73f3985b61a791ae84696 (diff) | |
download | gitea-922f3f306239aca309279dbdf1bdedfb9788b6e8.tar.gz gitea-922f3f306239aca309279dbdf1bdedfb9788b6e8.zip |
finish create issue with labels
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/issue/new_form.tmpl | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index ab3cb6cfda..1b74f14292 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -38,22 +38,26 @@ </div> {{if .IsRepositoryAdmin}} + <input id="label_ids" name="label_ids" type="hidden" value="{{.label_ids}}"> <div class="four wide column"> <div class="ui segment metas"> - <div class="ui {{if not .Labels}}disabled{{end}} dropdown jump item"> + <div class="ui {{if not .Labels}}disabled{{end}} jump select-label dropdown"> <span class="text"> <strong>{{.i18n.Tr "repo.issues.new.labels"}}</strong> <span class="octicon octicon-gear"></span> </span> - <div class="filter menu"> - <a class="item" href="#">{{.i18n.Tr "repo.issues.new.clear_labels"}}</a> + <div class="filter menu" data-id="#label_ids"> + <a class="no-select item" href="#">{{.i18n.Tr "repo.issues.new.clear_labels"}}</a> {{range .Labels}} - <a class="item" href="#"><span class="octicon {{if .IsChecked}}octicon-check{{end}}"></span><span class="label color" style="background-color: {{.Color}}"></span> {{.Name}}</a> + <a class="{{if .IsChecked}}checked{{end}} item" href="#" data-id="{{.ID}}" data-id-selector="#label_{{.ID}}"><span class="octicon {{if .IsChecked}}octicon-check{{end}}"></span><span class="label color" style="background-color: {{.Color}}"></span> {{.Name}}</a> {{end}} </div> </div> - <div class="ui list"> - <span class="item {{if .SelectedLabels}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_label"}}</span> + <div class="ui labels list"> + <span class="no-select item {{if .HasSelectedLabel}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_label"}}</span> + {{range .Labels}} + <a class="{{if not .IsChecked}}hide{{end}} item" id="label_{{.ID}}" href="{{$.RepoLink}}/issues?labels={{.ID}}"><span class="label color" style="background-color: {{.Color}}"></span> <span class="text">{{.Name}}</span></a> + {{end}} </div> <!-- <div class="ui divider"></div> <div class="ui {{if .Labels}}disabled{{end}} dropdown jump item"> |