gitea/templates/issue/create.tmpl

43 lines
2.1 KiB
Cheetah
Raw Normal View History

2014-03-25 10:27:29 +00:00
{{template "base/head" .}}
{{template "base/navbar" .}}
{{template "repo/nav" .}}
{{template "repo/toolbar" .}}
2014-03-25 10:44:37 +00:00
<div id="body" class="container">
2014-03-25 13:14:05 +00:00
<div id="issue">
2014-03-25 16:12:27 +00:00
<form class="form" action="/{{.RepositoryLink}}/issues/new" method="post" id="issue-create-form">
{{.CsrfTokenHtml}}
2014-03-25 13:14:05 +00:00
<div class="col-md-1">
2014-03-25 16:12:27 +00:00
<img class="avatar" src="{{.SignedUser.AvatarLink}}" alt=""/>
2014-03-25 13:14:05 +00:00
</div>
<div class="col-md-8 panel panel-default">
<div class="form-group panel-body">
2014-03-25 16:12:27 +00:00
<input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title" value="{{.title}}" />
2014-03-25 13:14:05 +00:00
</div>
<div class="form-group panel-body">
<div class="md-help pull-right"><!-- todo help link -->
Content with <a href="#">Markdown</a>
</div>
<ul class="nav nav-tabs" data-init="tabs">
<li class="active"><a href="#issue-textarea" data-toggle="tab">Write</a></li>
<li><a href="#issue-preview" data-toggle="tab">Preview</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane" id="issue-textarea">
<div class="form-group">
2014-03-25 16:12:27 +00:00
<textarea class="form-control" name="content" id="issue-content" rows="10" placeholder="Write some content">{{.content}}</textarea>
2014-03-25 13:14:05 +00:00
</div>
</div>
<div class="tab-pane" id="issue-preview">preview</div>
</div>
</div>
<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>
</div>
</div>
</div>
</form>
2014-03-25 10:27:29 +00:00
</div>
</div>
{{template "base/footer" .}}