diff options
Diffstat (limited to 'templates/issue/create.tmpl')
-rw-r--r-- | templates/issue/create.tmpl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/templates/issue/create.tmpl b/templates/issue/create.tmpl index 34c7f40aa3..cbc21f6ce0 100644 --- a/templates/issue/create.tmpl +++ b/templates/issue/create.tmpl @@ -4,13 +4,14 @@ {{template "repo/toolbar" .}} <div id="body" class="container"> <div id="issue"> - <form class="form" action="#" method="post" id="issue-create-form"> + <form class="form" action="/{{.RepositoryLink}}/issues/new" method="post" id="issue-create-form"> + {{.CsrfTokenHtml}} <div class="col-md-1"> - <img class="avatar" src="http://tp2.sinaimg.cn/5068084885/50/40050297589/1" alt=""/> + <img class="avatar" src="{{.SignedUser.AvatarLink}}" alt=""/> </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"/> + <input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title" value="{{.title}}" /> </div> <div class="form-group panel-body"> <div class="md-help pull-right"><!-- todo help link --> @@ -23,7 +24,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"></textarea> + <textarea class="form-control" name="content" id="issue-content" rows="10" placeholder="Write some content">{{.content}}</textarea> </div> </div> <div class="tab-pane" id="issue-preview">preview</div> |