diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-25 12:12:27 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-25 12:12:27 -0400 |
commit | 2fa8d0c8dd43f95e1659a266e84c7713cc8f2fcf (patch) | |
tree | 7fdae59ac504c0aedd0a657ff9a9bd9f30de3b22 /templates/issue/create.tmpl | |
parent | 23d103c72163cdb4ea65c9756edf22c597060a7e (diff) | |
download | gitea-2fa8d0c8dd43f95e1659a266e84c7713cc8f2fcf.tar.gz gitea-2fa8d0c8dd43f95e1659a266e84c7713cc8f2fcf.zip |
Added create issue
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> |