Download this file
| 1 | {{define "content"}}{{$page := .Data.Page}} |
| 2 | {{template "back-nav" dict "Href" $page.Href "Label" $page.Label}} |
| 3 | {{template "page-header" dict "Title" "Rename" "Sub" "The old title stays as an alias, so every link typed with it still leads here."}} |
| 4 | {{template "notice" .Data.Notice}} |
| 5 | <form rst-form method="post" action="{{.Data.Action}}"> |
| 6 | {{template "field-text" dict "Name" "title" "Label" "Title" "Value" .Data.Title "Error" .Data.Error "Required" true "Autofocus" true}} |
| 7 | {{with .Data.Taken}}<p mapa-meta><a href="{{.}}">Open the page with that title</a></p>{{end}} |
| 8 | {{template "form-foot" dict "Submit" "Rename" "CancelHref" $page.Href "CancelLabel" "Cancel"}} |
| 9 | </form> |
| 10 | {{with $page.Aliases}} |
| 11 | <section mapa-aliases aria-labelledby="aliases"><h2 id="aliases">Old titles</h2> |
| 12 | <p mapa-meta>Each one keeps its title reserved for this page. Free one to let another page take it.</p> |
| 13 | <ul mapa-list>{{range .}}<li>{{.Title}} <a href="/p/{{$page.Public}}/aliases/{{.ID}}/free">Free this title</a></li>{{end}}</ul> |
| 14 | </section> |
| 15 | {{end}} |
| 16 | {{end}} |
| 17 | |