Browse Source

PR: add title

pull/1007/head
Unknwon 10 years ago
parent
commit
d98516899e
  1. 1
      conf/locale/locale_en-US.ini
  2. 4
      templates/repo/pull_new.tmpl

1
conf/locale/locale_en-US.ini

@ -418,6 +418,7 @@ pulls.request_from = Request From
pulls.from_branch = From Branch pulls.from_branch = From Branch
pulls.request_to = Request To pulls.request_to = Request To
pulls.to_branch = To Branch pulls.to_branch = To Branch
pulls.title = Title
pulls.create = Create Pull Requst pulls.create = Create Pull Requst
[org] [org]

4
templates/repo/pull_new.tmpl

@ -54,6 +54,10 @@
</ul> </ul>
</div> </div>
</div> </div>
<div class="field">
<label class="req" for="title">{{.i18n.Tr "repo.pulls.title"}}</label>
<input class="ipt ipt-large ipt-radius {{if .Err_Title}}ipt-error{{end}}" id="title" name="title" value="{{.title}}" required />
</div>
<div class="field clear"> <div class="field clear">
<label class="left req" for="desc">{{.i18n.Tr "repo.repo_desc"}}</label> <label class="left req" for="desc">{{.i18n.Tr "repo.repo_desc"}}</label>
<textarea class="ipt ipt-large ipt-radius {{if .Err_Description}}ipt-error{{end}}" id="desc" name="desc" required>{{.desc}}</textarea> <textarea class="ipt ipt-large ipt-radius {{if .Err_Description}}ipt-error{{end}}" id="desc" name="desc" required>{{.desc}}</textarea>

Loading…
Cancel
Save