master
ブランチ master
LittleBeast / view / gitler / issuenew.maron
1.8 KB、39行 生 Blame 履歴
1{@ include(common/header) @}
2{@ include(gitler/repohead) @}
3 <h2 class="paragraph">新しいイシュー</h2>
4 <form method="post" action="{{ $repoUrl }}/issues/new" class="gl-form gl-issueform">
5 <input type="hidden" name="csrf_token" value="{{ $csrf }}" />
6 <input type="text" name="title" value="{{ $in['title'] }}" maxlength="200" placeholder="題名" required="required" />
7 <textarea name="body" rows="12" placeholder="説明(Markdown)">{{ $in['body'] }}</textarea>
8 <small>Markdownが使えます。「#3」で他のイシューにリンクします。</small>
9{@ if ($canWrite) @}
10{@ if (!empty($labels)) @}
11 <fieldset class="gl-checks">
12 <legend>ラベル</legend>
13{@ foreach ($labels as $l) @}
14 <label><input type="checkbox" name="labels[]" value="{{ $l['id'] }}"{{{ $l['checked'] ? ' checked="checked"' : '' }}} /> <span class="gl-label" style="background-color: {{ $l['color'] }}; color: {{ $l['fg'] }};">{{ $l['name'] }}</span></label>
15{@ endforeach @}
16 </fieldset>
17{@ endif @}
18 <fieldset class="gl-checks">
19 <legend>担当者</legend>
20{@ foreach ($people as $p) @}
21 <label><input type="checkbox" name="assignees[]" value="{{ $p }}"{{{ in_array($p, $in['assignees'], true) ? ' checked="checked"' : '' }}} /> {{ $p }}</label>
22{@ endforeach @}
23 </fieldset>
24{@ if (!empty($milestones)) @}
25 <label>マイルストーン:
26 <select name="milestone">
27 <option value="0">無し</option>
28{@ foreach ($milestones as $id => $m) @}
29{@ if ($m['state'] === 'open') @}
30 <option value="{{ $id }}"{{{ $id === $in['milestone'] ? ' selected="selected"' : '' }}}>{{ $m['title'] }}</option>
31{@ endif @}
32{@ endforeach @}
33 </select>
34 </label>
35{@ endif @}
36{@ endif @}
37 <button>作る</button>
38 </form>
39{@ include(common/footer) @}