diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2019-09-08 03:28:40 -0500 |
---|---|---|
committer | Lauris BH <lauris.buksis@zzdats.lv> | 2019-09-08 11:28:40 +0300 |
commit | 0118b6aaf8ada3edd67cb975c776f6f124178ad2 (patch) | |
tree | 8e96203d74de6c4bc7f8eb2a5751a8d218f3ffd3 /templates/repo/create.tmpl | |
parent | d4e11ebb18df4bd01f509f673d536e093edb124a (diff) | |
download | gitea-0118b6aaf8ada3edd67cb975c776f6f124178ad2.tar.gz gitea-0118b6aaf8ada3edd67cb975c776f6f124178ad2.zip |
Add option to initialize repository with labels (#6061)
* Add optional label sets on repo creation
* Fix CRLF
* Instead of hardcoding default, make it the helper
* Move label set init out of repo init
Add a new error for the router
Combine router label init with repo creation label init
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add issue labels to Swagger for repo creation
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Update models/issue_label.go
Co-Authored-By: Lauris BH <lauris@nix.lv>
* Update models/issue_label.go
Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'templates/repo/create.tmpl')
-rw-r--r-- | templates/repo/create.tmpl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 8163aaefa6..1a53e3c893 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -56,6 +56,20 @@ <textarea id="description" name="description">{{.description}}</textarea> </div> + <div class="inline field"> + <label>{{.i18n.Tr "repo.issue_labels"}}</label> + <div class="ui search normal selection dropdown"> + <input type="hidden" name="issue_labels" value="{{.issueLabels}}"> + <div class="default text">{{.i18n.Tr "repo.issue_labels_helper"}}</div> + <div class="menu"> + <div class="item" data-value="">{{.i18n.Tr "repo.issue_labels_helper"}}</div> + {{range .LabelTemplates}} + <div class="item" data-value="{{.}}">{{.}}</div> + {{end}} + </div> + </div> + </div> + <div class="ui divider"></div> <div class="inline field"> |