1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-23 08:47:42 -05:00
forgejo/templates/issue/create.tmpl

63 lines
3.6 KiB
Cheetah
Raw Normal View History

2014-03-25 06:27:29 -04:00
{{template "base/head" .}}
{{template "base/navbar" .}}
{{template "repo/nav" .}}
{{template "repo/toolbar" .}}
2014-03-25 06:44:37 -04:00
<div id="body" class="container">
2014-03-25 09:14:05 -04:00
<div id="issue">
2014-03-29 22:13:02 -04:00
<form class="form" action="{{.RepoLink}}/issues/new" method="post" id="issue-create-form">
2014-03-25 12:12:27 -04:00
{{.CsrfTokenHtml}}
2014-04-10 18:09:57 -04:00
{{template "base/alert" .}}
2014-03-25 09:14:05 -04:00
<div class="col-md-1">
2014-03-25 12:12:27 -04:00
<img class="avatar" src="{{.SignedUser.AvatarLink}}" alt=""/>
2014-03-25 09:14:05 -04:00
</div>
<div class="col-md-8 panel panel-default">
<div class="form-group panel-body">
2014-03-25 12:12:27 -04:00
<input class="form-control input-lg" type="text" name="title" required="required" placeholder="Title" value="{{.title}}" />
2014-03-25 09:14:05 -04:00
</div>
2014-05-08 09:01:47 -04:00
<div class="form-group panel-body">
<span><strong id="assigned" data-no-assigned="No one">No one</strong> will be assigned</span>
2014-05-08 12:24:11 -04:00
<input type="hidden" name="assigneeid" value="0" id="assignee"/>&nbsp;&nbsp;
2014-05-08 09:01:47 -04:00
<div style="display: inline-block;position: relative">
<button type="button" class="dropdown-toggle btn btn-default btn-sm" data-toggle="dropdown">
<i class="fa fa-group"></i>
<span class="caret"></span>
</button>
<div class="dropdown-menu assignee">
<ul class="list-unstyled">
<li data-uid="0" class="clear-assignee hidden"><i class="fa fa-times-circle-o"></i> Clear assignee</li>
2014-05-08 12:24:11 -04:00
{{range .Collaborators}}
<li data-uid="{{.Id}}"><img src="{{.AvatarLink}}"><strong>{{.Name}}</strong> {{.FullName}}</li>
{{end}}
2014-05-08 09:01:47 -04:00
</ul>
</div>
</div>
</div>
2014-03-25 09:14:05 -04:00
<div class="form-group panel-body">
<div class="md-help pull-right"><!-- todo help link -->
2014-03-29 10:01:52 -04:00
Content with <a href="https://help.github.com/articles/markdown-basics">Markdown</a>
2014-03-25 09:14:05 -04:00
</div>
<ul class="nav nav-tabs" data-init="tabs">
2014-03-29 09:16:06 -04:00
<li class="active issue-write"><a href="#issue-textarea" data-toggle="tab">Write</a></li>
2014-05-05 13:08:01 -04:00
<li class="issue-preview"><a href="#issue-preview" data-toggle="tab" data-ajax="/api/v1/markdown" data-ajax-name="issue-preview" data-ajax-context="{{.RepoLink}}" data-ajax-method="post" data-preview="#issue-preview">Preview</a></li>
2014-03-25 09:14:05 -04:00
</ul>
<div class="tab-content">
<div class="tab-pane" id="issue-textarea">
<div class="form-group">
2014-05-05 13:08:01 -04:00
<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>
2014-03-25 09:14:05 -04:00
</div>
</div>
2014-03-29 09:16:06 -04:00
<div class="tab-pane issue-preview-content" id="issue-preview">loading...</div>
2014-03-25 09:14:05 -04:00
</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 06:27:29 -04:00
</div>
</div>
2014-03-29 22:13:02 -04:00
{{template "base/footer" .}}