Download this file
| 1 | {{define "content"}} |
| 2 | <div rst-stack><p><a href="/settings/devices">{{copy "device.list"}}</a> |
| 3 | <a href="/settings/coordinator">{{copy "coordinator.settings"}}</a> |
| 4 | <a href="/conversation/settings/connections" data-connections-link>{{copy "chat.connections.title"}}</a> |
| 5 | <a href="/preferences">{{copy "preferences.title"}}</a>{{if .Owner}}<a href="/settings/recovery">{{copy "recovery.title"}}</a>{{end}}</p> |
| 6 | <h1>{{copy "nav.settings"}}</h1> |
| 7 | <p>{{copy "account.note"}}</p> |
| 8 | {{range .Groups}}<section equipo-card rst-stack><h2>{{.Account.Label}}</h2>{{if $.Owner}}<form method="post" action="/accounts" equipo-form> |
| 9 | <input type="hidden" name="id" value="{{.Account.ID}}"><input type="hidden" name="revision" value="{{.Account.Revision}}"> |
| 10 | <label>{{copy "account.label"}}<input rst-input name="label" value="{{.Account.Label}}" required></label><button rst-btn type="submit">{{copy "form.save"}}</button></form>{{end}}</section>{{end}} |
| 11 | {{if .Owner}}<section equipo-card rst-stack><h2>{{copy "account.add"}}</h2><form method="post" action="/accounts" equipo-form> |
| 12 | <input type="hidden" name="id" value="0"><input type="hidden" name="revision" value="0"><label>{{copy "account.label"}}<input rst-input name="label" required></label><button rst-btn="primary" type="submit">{{copy "form.save"}}</button></form></section>{{end}} |
| 13 | <section id="budgets" equipo-card rst-stack><h2>{{copy "budget.title"}}</h2> |
| 14 | {{if .Owner}}<p>{{copy "budget.note"}}</p><form method="post" action="/team/budgets" equipo-form><input type="hidden" name="revision" value="{{.Budget.Revision}}"> |
| 15 | {{range .BudgetForms}}<fieldset><legend>{{.Name}}</legend>{{range .Fields}}<label>{{copy .CopyKey}}<input rst-input name="{{.Name}}" type="number" min="1" step="1" value="{{.Value}}"></label>{{end}}</fieldset>{{end}} |
| 16 | <button rst-btn="primary" type="submit">{{copy "form.save"}}</button></form> |
| 17 | {{else}}{{template "budget-summary" .}}{{end}} |
| 18 | <h3>{{copy "budget.usage"}}</h3><p data-usage="unavailable">{{copy "usage.unknown"}}</p> |
| 19 | </section></div> |
| 20 | {{end}} |
| 21 | |