aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-13 13:28:21 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-13 13:28:21 -0400
commit2eee1e9bc22d77a68b436682fdd4eb8f60fd5d45 (patch)
tree9aa763565291f64ea4a5c72cd6fab0979fabe195 /templates
parent98dbbae2efd5c232d94f5e4d8df9d388cace2ebc (diff)
downloadgitea-2eee1e9bc22d77a68b436682fdd4eb8f60fd5d45.tar.gz
gitea-2eee1e9bc22d77a68b436682fdd4eb8f60fd5d45.zip
Finish edit a milestone
Diffstat (limited to 'templates')
-rw-r--r--templates/issue/milestone.tmpl2
-rw-r--r--templates/issue/milestone_edit.tmpl11
2 files changed, 6 insertions, 7 deletions
diff --git a/templates/issue/milestone.tmpl b/templates/issue/milestone.tmpl
index 3c2cf93a6c..e15d964140 100644
--- a/templates/issue/milestone.tmpl
+++ b/templates/issue/milestone.tmpl
@@ -22,7 +22,7 @@
<span class="issue-open label label-success">{{.NumClosedIssues}}</span>
<span class="issue-close label label-warning">{{.NumOpenIssues}}</span>
<p class="actions pull-right">
- <!-- <a href="{{$.RepoLink}}/issues/milestones/{{.Index}}/edit">Edit</a> -->
+ <a href="{{$.RepoLink}}/issues/milestones/{{.Index}}/edit">Edit</a>
<!-- <a href="#">Open</a>
<a href="#">Close</a> -->
<!-- <a class="text-danger" href="#">Delete</a> -->
diff --git a/templates/issue/milestone_edit.tmpl b/templates/issue/milestone_edit.tmpl
index 2db55ae91b..8f1a05e012 100644
--- a/templates/issue/milestone_edit.tmpl
+++ b/templates/issue/milestone_edit.tmpl
@@ -4,7 +4,7 @@
{{template "repo/toolbar" .}}
<div id="body" class="container">
<div id="issue">
- <form class="form" action="{{.RepoLink}}/issues/milestones/new" method="post" id="issue-create-form">
+ <form class="form" action="{{.RepoLink}}/issues/milestones/{{.Milestone.Index}}/edit" method="post" id="issue-create-form">
{{.CsrfTokenHtml}}
{{template "base/alert" .}}
<div class="col-md-1">
@@ -12,7 +12,7 @@
</div>
<div class="col-md-8 panel panel-default">
<div class="form-group panel-body">
- <input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title" value="{{.title}}" />
+ <input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title" value="{{.Milestone.Name}}" />
</div>
<div class="form-group panel-body">
<div class="md-help pull-right"><!-- todo help link -->
@@ -25,7 +25,7 @@
<div class="tab-content">
<div class="tab-pane" id="issue-textarea">
<div class="form-group">
- <textarea class="form-control" name="content" id="issue-content" rows="10" placeholder="Write some content" data-ajax-rel="issue-preview" data-ajax-val="val" data-ajax-field="text">{{.content}}</textarea>
+ <textarea class="form-control" name="content" id="issue-content" rows="10" placeholder="Write some content" data-ajax-rel="issue-preview" data-ajax-val="val" data-ajax-field="text">{{.Milestone.Content}}</textarea>
</div>
</div>
<div class="tab-pane issue-preview-content" id="issue-preview">loading...</div>
@@ -34,15 +34,14 @@
<div class="text-right panel-body">
<div class="form-group">
<input type="hidden" value="id" name="repo-id"/>
- <button class="btn-success btn">Create new issue</button>
+ <button class="btn-success btn">Update milestone</button>
</div>
</div>
</div>
<div class="col-md-3">
<h4>Milestone Due Date</h4>
-
<div class="form-group">
- <input name="due_date" type="text" class="form-control" id="milestone-due-date">
+ <input name="due_date" type="text" class="form-control" id="milestone-due-date" value="{{.Milestone.DeadlineString}}">
</div>
</div>
</form>