|
|
@ -1,7 +1,7 @@ |
|
|
|
{{template "base/head" .}} |
|
|
|
{{template "base/head" .}} |
|
|
|
<div class="repository new milestone"> |
|
|
|
<div class="repository new milestone"> |
|
|
|
{{template "repo/header" .}} |
|
|
|
{{template "repo/header" .}} |
|
|
|
<div class="ui middle page grid body"> |
|
|
|
<div class="ui container"> |
|
|
|
<div class="navbar"> |
|
|
|
<div class="navbar"> |
|
|
|
{{template "repo/issue/navbar" .}} |
|
|
|
{{template "repo/issue/navbar" .}} |
|
|
|
{{if and .IsRepositoryAdmin .PageIsEditMilestone}} |
|
|
|
{{if and .IsRepositoryAdmin .PageIsEditMilestone}} |
|
|
@ -11,7 +11,6 @@ |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ui divider"></div> |
|
|
|
<div class="ui divider"></div> |
|
|
|
<div class="sixteen wide column page grid"> |
|
|
|
|
|
|
|
<h2 class="ui dividing header"> |
|
|
|
<h2 class="ui dividing header"> |
|
|
|
{{if .PageIsEditMilestone}} |
|
|
|
{{if .PageIsEditMilestone}} |
|
|
|
{{.i18n.Tr "repo.milestones.edit"}} |
|
|
|
{{.i18n.Tr "repo.milestones.edit"}} |
|
|
@ -21,13 +20,9 @@ |
|
|
|
<div class="sub header">{{.i18n.Tr "repo.milestones.new_subheader"}}</div> |
|
|
|
<div class="sub header">{{.i18n.Tr "repo.milestones.new_subheader"}}</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</h2> |
|
|
|
</h2> |
|
|
|
|
|
|
|
{{template "base/alert" .}} |
|
|
|
<form class="ui form grid" action="{{.Link}}" method="post"> |
|
|
|
<form class="ui form grid" action="{{.Link}}" method="post"> |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
{{.CsrfTokenHtml}} |
|
|
|
{{if .Flash}} |
|
|
|
|
|
|
|
<div class="sixteen wide column"> |
|
|
|
|
|
|
|
{{template "base/alert" .}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
<div class="eleven wide column"> |
|
|
|
<div class="eleven wide column"> |
|
|
|
<div class="field {{if .Err_Title}}error{{end}}"> |
|
|
|
<div class="field {{if .Err_Title}}error{{end}}"> |
|
|
|
<label>{{.i18n.Tr "repo.milestones.title"}}</label> |
|
|
|
<label>{{.i18n.Tr "repo.milestones.title"}}</label> |
|
|
@ -38,7 +33,7 @@ |
|
|
|
<textarea name="content">{{.content}}</textarea> |
|
|
|
<textarea name="content">{{.content}}</textarea> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="three wide column"> |
|
|
|
<div class="four wide column"> |
|
|
|
<div class="field {{if .Err_Deadline}}error{{end}}"> |
|
|
|
<div class="field {{if .Err_Deadline}}error{{end}}"> |
|
|
|
<label> |
|
|
|
<label> |
|
|
|
{{.i18n.Tr "repo.milestones.due_date"}} |
|
|
|
{{.i18n.Tr "repo.milestones.due_date"}} |
|
|
@ -50,21 +45,24 @@ |
|
|
|
<input class="milestone datepicker" data-lang="{{.DateLang}}" data-start-date="{{.deadline}}"> |
|
|
|
<input class="milestone datepicker" data-lang="{{.DateLang}}" data-start-date="{{.deadline}}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="ui divider"></div> |
|
|
|
<div class="ui container"> |
|
|
|
{{if .PageIsEditMilestone}} |
|
|
|
<div class="ui divider"></div> |
|
|
|
<button class="ui right green button"> |
|
|
|
<div class="ui right"> |
|
|
|
{{.i18n.Tr "repo.milestones.modify"}} |
|
|
|
{{if .PageIsEditMilestone}} |
|
|
|
</button> |
|
|
|
<a class="ui blue basic button" href="{{.RepoLink}}/milestones"> |
|
|
|
<a class="ui right blue basic button" href="{{.RepoLink}}/milestones"> |
|
|
|
{{.i18n.Tr "repo.milestones.cancel"}} |
|
|
|
{{.i18n.Tr "repo.milestones.cancel"}} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
<button class="ui green button"> |
|
|
|
{{else}} |
|
|
|
{{.i18n.Tr "repo.milestones.modify"}} |
|
|
|
<button class="ui right green button"> |
|
|
|
</button> |
|
|
|
{{.i18n.Tr "repo.milestones.create"}} |
|
|
|
{{else}} |
|
|
|
</button> |
|
|
|
<button class="ui green button"> |
|
|
|
{{end}} |
|
|
|
{{.i18n.Tr "repo.milestones.create"}} |
|
|
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{template "base/footer" .}} |
|
|
|
{{template "base/footer" .}} |