vole
Clone
Read only, no credentials:
https://rodent.software/git/vole.git
Write over SSH with a registered key:
git clone ssh://git@0.0.0.0:2222/vole.git
A free and open-source forge that lives in your Git repo.
Blame · server/web/templates/request_edit.html
Line attribution on main · 29 line(s)
|
a4e7a99a
Keenan Nemetz
5d ago
|
1 | {{define "request_edit"}} |
| 2 | {{template "header" .}} | |
|
8fb7aabf
Keenan Nemetz
3d ago
|
3 | {{template "repohead" (nav .Page "changes")}} |
|
a4e7a99a
Keenan Nemetz
5d ago
|
4 | |
| 5 | <div class="page-head"> | |
| 6 | <div class="page-head-main"> | |
| 7 | <h1>Edit change</h1> | |
| 8 | <p class="page-sub">Correct the title or the description. Reviews and approvals stay as they are.</p> | |
| 9 | </div> | |
| 10 | </div> | |
| 11 | ||
|
ed03b3d1
Keenan Nemetz
2h ago
|
12 | <form method="post" action="/{{.Name}}/changes/{{.ID}}/edit" class="form-block"> |
|
a4e7a99a
Keenan Nemetz
5d ago
|
13 | <input type="hidden" name="csrf" value="{{.CSRF}}"> |
| 14 | <div class="card form-card"> | |
| 15 | {{if .Error}}<p class="error">{{.Error}}</p>{{end}} | |
| 16 | <label>Title | |
| 17 | <input type="text" name="title" required maxlength="200" value="{{.Title}}" autofocus> | |
| 18 | </label> | |
| 19 | <label>Description | |
|
802e0e52
Keenan Nemetz
4d ago
|
20 | <textarea name="body" data-autosize placeholder="Why should this land?">{{.Description}}</textarea> |
|
a4e7a99a
Keenan Nemetz
5d ago
|
21 | </label> |
| 22 | </div> | |
| 23 | <div class="form-actions"> | |
|
ed03b3d1
Keenan Nemetz
2h ago
|
24 | <a class="button secondary" href="/{{.Name}}/changes/{{.ID}}">{{icon "x"}}Cancel</a> |
|
a4e7a99a
Keenan Nemetz
5d ago
|
25 | <button type="submit">{{icon "check"}}Save changes</button> |
| 26 | </div> | |
| 27 | </form> | |
| 28 | {{template "footer" .}} | |
| 29 | {{end}} |