| 1 | {{define "title"}}Confirm a provisioning plan · Oficina{{end}} |
| 2 | {{define "content"}} |
| 3 | {{/* The credential origin never renders an account-authored string (gate |
| 4 | 5): only the plan id and owner index prefixes, compiled names, and |
| 5 | fixed text. The typed address is never echoed. */}} |
| 6 | <h1>Confirm a provisioning plan</h1> |
| 7 | {{if .Data.Error}}<p role="alert" rst-callout rst-tone="negative"><span rst-callout-body>{{.Data.Error}}</span></p>{{end}} |
| 8 | {{if .Data.Opened}} |
| 9 | <p rst-callout rst-tone="positive"><span rst-callout-body>Window open on id.oficina.works until {{.Data.Opened}}.</span></p> |
| 10 | {{else if .Data.Plan}}{{with .Data.Plan}} |
| 11 | <dl> |
| 12 | <dt>Plan</dt><dd><code>{{.Prefix}}</code></dd> |
| 13 | <dt>Kind</dt><dd>{{.Kind}}</dd> |
| 14 | {{if .ExistingTeam}}<dt>Team ID</dt><dd><code>{{.ExistingTeam}}</code></dd>{{end}} |
| 15 | <dt>Apps</dt><dd>{{range $i, $a := .Apps}}{{if $i}}, {{end}}{{$a}}{{end}}</dd> |
| 16 | {{if .Owner}}<dt>Owner</dt><dd><code>{{.Owner}}</code></dd>{{end}} |
| 17 | <dt>Expires</dt><dd>{{.Expires}}</dd> |
| 18 | </dl> |
| 19 | {{if .ExistingTeam}}<p>Verify the existing sign-in registrations for these apps. Their data and content permissions stay as they are.</p>{{end}} |
| 20 | <form method="post" action="/operator/confirm" rst-form> |
| 21 | <input type="hidden" name="plan" value="{{.ID}}"> |
| 22 | {{if .Owner}}<div rst-field> |
| 23 | <label rst-field-label for="owner">Type the owner’s email to confirm</label> |
| 24 | <input id="owner" name="owner" type="email" autocomplete="off" required rst-input> |
| 25 | </div>{{end}} |
| 26 | <div rst-form-foot> |
| 27 | <button type="submit" rst-btn="primary" estilo-signin-action>Open window</button> |
| 28 | </div> |
| 29 | </form> |
| 30 | {{end}}{{else}} |
| 31 | <p>No plan is waiting for confirmation.</p> |
| 32 | {{end}} |
| 33 | {{end}} |
| 34 | |