Download this file
| 1 | {{define "content"}} |
| 2 | {{template "back-nav" dict "Href" "/pages" "Label" "Pages"}} |
| 3 | {{template "page-header" dict "Title" "New page" "Sub" "A team page: everyone in the team can open it, and its title is the team's."}} |
| 4 | {{/* One title field, as the sidebar's popover (level-up §4.7): the page |
| 5 | opens once it is made, and its text is written there. A body that |
| 6 | came with a refused POST rides along unseen, so nothing typed is |
| 7 | lost. */}} |
| 8 | <form rst-form method="post" action="{{.Data.Action}}"> |
| 9 | {{template "field-text" dict "Name" "title" "Label" "Title" "Value" .Data.Title "Error" .Data.Error "Required" true "Autofocus" true}} |
| 10 | {{with .Data.Taken}}<p mapa-meta><a href="{{.}}">Open the page with that title</a></p>{{end}} |
| 11 | {{with .Data.Body}}<input type="hidden" name="body" value="{{.}}">{{end}} |
| 12 | {{template "form-foot" dict "Submit" .Data.Label "CancelHref" "/pages" "CancelLabel" "Cancel"}} |
| 13 | </form> |
| 14 | {{end}} |
| 15 | |