oficina / alta Public

Clone
git clone https://amadan.net/oficina/alta

Plain git — no account needed to clone.

Download

Download this file

1{{define "content"}}
2{{template "page-header" dict "Title" "New team" "Sub" "Alta checks everything it can first, then submits a plan you confirm on Home."}}
3<form rst-form method="post" action="/teams">
4 {{template "field" dict "ID" "label" "Name" "label" "Label" "Label" "Value" (index .Data.Form "label") "Required" true "Autofocus" true "Autocomplete" "off" "Pattern" "(?!.*--)[a-z][a-z0-9\\-]{1,30}[a-z0-9]" "Help" "Lower-case letters, digits and hyphens, never two hyphens together. The team's hosts are <label>.<app>.oficina.works. A label is never reused, even after its apps are retired, and an app's name or one of the suite's own is never offered."}}
5 {{template "field" dict "ID" "name" "Name" "name" "Label" "Name" "Value" (index .Data.Form "name") "Required" true "Help" "What the team is called in Home."}}
6 {{template "field" dict "ID" "owner" "Name" "owner" "Label" "Owner email" "Type" "email" "Value" (index .Data.Form "owner") "Required" true "Autocomplete" "off" "Help" "They must already have signed in at oficina.works once."}}
7 <fieldset class="alta-apps">
8 <legend>Apps</legend>
9 {{range .Data.Apps}}<label><input type="checkbox" name="app" value="{{.Slug}}"{{if or (index $.Data.Checked .Slug) (and (not $.Data.Checked) (not .OwnOnly))}} checked{{end}}> {{.Name}}{{if .OwnOnly}} <small class="alta-quiet">(own teams only)</small>{{end}}</label>{{end}}
10 </fieldset>
11 {{template "run-options" .Data.Options}}
12 <label class="alta-check"><input type="checkbox" name="forked" value="1"{{if .Data.Forked}} checked{{end}}> Moving a stopgap: use the environments you forked to <span class="alta-label">&lt;label&gt;-team</span></label>
13 <div rst-form-foot><button type="submit" rst-btn="primary">Submit plan to Home</button></div>
14</form>
15{{end}}
16