summaryrefslogtreecommitdiffstats
path: root/templates/repo/flags.tmpl
blob: 620357bd92e260a39628be9b8f162574bd4c7345 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository">
	{{template "repo/header" .}}
	<div class="ui container">
		{{template "base/alert" .}}
		<div class="user-main-content twelve wide column">
			<h4 class="ui top attached header">
				{{ctx.Locale.Tr "repo.admin.manage_flags"}}
			</h4>
			<div class="ui attached segment">
				<form class="ui form" action="{{.Link}}" method="post">
					{{.CsrfTokenHtml}}
					<strong>{{ctx.Locale.Tr "repo.admin.enabled_flags"}}</strong>
					<div class="ui segment tw-pl-4">
						{{range $flag, $checked := .Flags}}
							<div class="field">
								<div class="ui checkbox{{if $checked}} checked{{end}}">
									<input name="flags" type="checkbox" value="{{$flag}}" {{if $checked}}checked{{end}}>
									<label>{{$flag}}</label>
								</div>
							</div>
						{{end}}
					</div>

					<div class="field">
						<button class="ui primary button">{{ctx.Locale.Tr "repo.admin.update_flags"}}</button>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{{template "base/footer" .}}