Download this file
| 1 | {{define "autonomy-settings"}} |
| 2 | {{template "settings-head" (dict "Title" "autonomy.title" "Lede" "autonomy.lede")}} |
| 3 | {{range .Settings.CopyProjects}}<section equipo-sp-group><div equipo-sp-group-head><h2>{{.Title}}</h2></div> |
| 4 | <form method="post" action="/settings/autonomy"> |
| 5 | <input type="hidden" name="project" value="{{.ID}}"><input type="hidden" name="revision" value="{{.Autonomy.Revision}}"> |
| 6 | <div equipo-sp-card> |
| 7 | <div equipo-sp-row><div equipo-sp-label><label equipo-sp-title for="auto-merge-{{.ID}}">{{copy "autonomy.auto_merge_ci"}}</label><p equipo-sp-desc id="auto-merge-help-{{.ID}}">{{copy "autonomy.auto_merge_ci_help"}}</p></div><span equipo-sp-control><label rst-switch><input id="auto-merge-{{.ID}}" aria-describedby="auto-merge-help-{{.ID}}" type="checkbox" name="auto_merge_ci"{{if .Autonomy.AutoMergeCI}} checked{{end}}><span rst-switch-track aria-hidden="true"></span></label></span></div> |
| 8 | <div equipo-sp-row><div equipo-sp-label><label equipo-sp-title for="sensitive-merge-{{.ID}}">{{copy "autonomy.auto_merge_sensitive"}}</label><p equipo-sp-desc id="sensitive-merge-help-{{.ID}}">{{copy "autonomy.auto_merge_sensitive_help"}}</p></div><span equipo-sp-control><label rst-switch><input id="sensitive-merge-{{.ID}}" aria-describedby="sensitive-merge-help-{{.ID}}" type="checkbox" name="auto_merge_sensitive"{{if .Autonomy.AutoMergeSensitive}} checked{{end}}><span rst-switch-track aria-hidden="true"></span></label></span></div> |
| 9 | <div equipo-sp-row><div equipo-sp-label><label equipo-sp-title for="public-previews-{{.ID}}">{{copy "autonomy.public_previews"}}</label><p equipo-sp-desc id="public-previews-help-{{.ID}}">{{copy "autonomy.public_previews_help"}}</p></div><span equipo-sp-control><label rst-switch><input id="public-previews-{{.ID}}" aria-describedby="public-previews-help-{{.ID}}" type="checkbox" name="public_previews"{{if .Autonomy.PublicPreviews}} checked{{end}}><span rst-switch-track aria-hidden="true"></span></label></span></div> |
| 10 | </div> |
| 11 | <div equipo-copy-actions><button rst-btn="primary" type="submit">{{copy "form.save"}}</button></div> |
| 12 | </form></section>{{else}}<p>{{copy "autonomy.empty"}}</p>{{end}} |
| 13 | {{end}} |
| 14 | |