| 1 | {@ include(common/header) @} |
| 2 | {@ include(gitler/nav) @} |
| 3 | <h1 class="paragraph">新しいリポジトリ</h1> |
| 4 | <form method="post" action="/gitler/-/new" class="gl-form"> |
| 5 | <input type="hidden" name="csrf_token" value="{{ $csrf }}" /> |
| 6 | <label>名前(英数字・「.」「_」「-」):<input type="text" name="name" value="{{ $in['name'] }}" maxlength="100" required="required" /></label> |
| 7 | <label>説明:<input type="text" name="description" value="{{ $in['description'] }}" maxlength="500" /></label> |
| 8 | <label><input type="checkbox" name="private" value="1"{{{ $in['private'] ? ' checked="checked"' : '' }}} /> 非公開(自分と共同作業者だけが見られる)</label> |
| 9 | <label><input type="checkbox" name="readme" value="1"{{{ $in['readme'] ? ' checked="checked"' : '' }}} /> README.mdを作る</label> |
| 10 | <label>最初のブランチ:<input type="text" name="branch" value="{{ $in['branch'] }}" /></label> |
| 11 | <label>オブジェクトの形式: |
| 12 | <select name="objectFormat"> |
| 13 | <option value="sha1"{{{ $in['objectFormat'] === 'sha1' ? ' selected="selected"' : '' }}}>SHA-1(普通)</option> |
| 14 | <option value="sha256"{{{ $in['objectFormat'] === 'sha256' ? ' selected="selected"' : '' }}}>SHA-256</option> |
| 15 | </select> |
| 16 | </label> |
| 17 | <button>作る</button> |
| 18 | </form> |
| 19 | {@ include(common/footer) @} |