2014-03-25 15:57:29 +05:30
|
|
|
{{template "base/head" .}}
|
|
|
|
{{template "base/navbar" .}}
|
|
|
|
{{template "repo/nav" .}}
|
|
|
|
{{template "repo/toolbar" .}}
|
2014-03-25 16:14:37 +05:30
|
|
|
<div id="body" class="container">
|
2014-03-25 18:44:05 +05:30
|
|
|
<div id="issue">
|
2014-03-25 21:42:27 +05:30
|
|
|
<form class="form" action="/{{.RepositoryLink}}/issues/new" method="post" id="issue-create-form">
|
|
|
|
{{.CsrfTokenHtml}}
|
2014-03-25 18:44:05 +05:30
|
|
|
<div class="col-md-1">
|
2014-03-25 21:42:27 +05:30
|
|
|
<img class="avatar" src="{{.SignedUser.AvatarLink}}" alt=""/>
|
2014-03-25 18:44:05 +05:30
|
|
|
</div>
|
|
|
|
<div class="col-md-8 panel panel-default">
|
|
|
|
<div class="form-group panel-body">
|
2014-03-25 21:42:27 +05:30
|
|
|
<input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title" value="{{.title}}" />
|
2014-03-25 18:44:05 +05:30
|
|
|
</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">
|
2014-03-29 18:46:06 +05:30
|
|
|
<li class="active issue-write"><a href="#issue-textarea" data-toggle="tab">Write</a></li>
|
|
|
|
<li class="issue-preview"><a href="#issue-preview" data-toggle="tab" data-ajax="/preview?repo=repo_id&issue=new" data-ajax-name="issue-preview" data-ajax-method="post" data-preview="#issue-preview">Preview</a></li>
|
2014-03-25 18:44:05 +05:30
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<div class="tab-pane" id="issue-textarea">
|
|
|
|
<div class="form-group">
|
2014-03-29 18:46:06 +05:30
|
|
|
<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="content">{{.content}}</textarea>
|
2014-03-25 18:44:05 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
2014-03-29 18:46:06 +05:30
|
|
|
<div class="tab-pane issue-preview-content" id="issue-preview">loading...</div>
|
2014-03-25 18:44:05 +05:30
|
|
|
</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 15:57:29 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|