templates/repo-create.html
1.7 KB
| 1 | {{define "title"}}Новый репозиторий{{end}} |
| 2 | {{define "content"}} |
| 3 | <div class="page-heading"> |
| 4 | <h1>Создать репозиторий</h1> |
| 5 | </div> |
| 6 | |
| 7 | <form method="POST" action="/repo/new" class="box repo-create-form"> |
| 8 | <div class="box-body"> |
| 9 | <input type="hidden" name="csrf_token" value="{{.CSRF}}"> |
| 10 | {{if .Error}}<div class="flash flash-error">{{.Error}}</div>{{end}} |
| 11 | |
| 12 | <div class="form-group"> |
| 13 | <label for="name">Имя репозитория</label> |
| 14 | <div class="input-group"> |
| 15 | <span class="input-group-prefix">{{.User.Username}} /</span> |
| 16 | <input id="name" class="form-control" type="text" name="name" placeholder="my-project" required autofocus> |
| 17 | </div> |
| 18 | <p class="form-hint">Используйте буквы, цифры, точку, дефис и подчёркивание.</p> |
| 19 | </div> |
| 20 | |
| 21 | <div class="form-group"> |
| 22 | <label for="description">Описание <span class="muted">(необязательно)</span></label> |
| 23 | <textarea id="description" class="form-control" name="description" rows="3" placeholder="Коротко о проекте"></textarea> |
| 24 | </div> |
| 25 | |
| 26 | <div class="form-group"> |
| 27 | <label class="checkbox-label"> |
| 28 | <input type="checkbox" name="private"> |
| 29 | <span> |
| 30 | <strong>Приватный репозиторий</strong> |
| 31 | <span class="form-hint form-hint-inline">Виден только владельцу.</span> |
| 32 | </span> |
| 33 | </label> |
| 34 | </div> |
| 35 | |
| 36 | <div class="form-actions"> |
| 37 | <button type="submit" class="btn btn-primary">Создать репозиторий</button> |
| 38 | <a href="/dashboard" class="btn">Отмена</a> |
| 39 | </div> |
| 40 | </div> |
| 41 | </form> |
| 42 | {{end}} |