aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org/create.tmpl
blob: 7934d5b722d8fcd5105579f22b520d17ef26daff (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content organization new org">
	<div class="ui container medium-width">
		{{template "base/alert" .}}
		<h3 class="ui top attached header">
			{{ctx.Locale.Tr "new_org"}}
		</h3>
		<div class="ui attached segment">
			<form class="ui form left-right-form" action="{{.Link}}" method="post">
				{{.CsrfTokenHtml}}
				<div class="inline required field {{if .Err_OrgName}}error{{end}}">
					<label for="org_name">{{ctx.Locale.Tr "org.org_name_holder"}}</label>
					<input id="org_name" name="org_name" value="{{.org_name}}" autofocus required maxlength="40">
					<span class="help">{{ctx.Locale.Tr "org.org_name_helper"}}</span>
				</div>

				<div class="inline field required {{if .Err_OrgVisibility}}error{{end}}">
					<label for="visibility">{{ctx.Locale.Tr "org.settings.visibility"}}</label>
					<div class="inline-right">
						<div class="ui radio checkbox">
							<input class="enable-system-radio" name="visibility" type="radio" value="0" {{if .DefaultOrgVisibilityMode.IsPublic}}checked{{end}}>
							<label>{{ctx.Locale.Tr "org.settings.visibility.public"}}</label>
						</div>
						<div class="ui radio checkbox">
							<input class="enable-system-radio" name="visibility" type="radio" value="1" {{if .DefaultOrgVisibilityMode.IsLimited}}checked{{end}}>
							<label>{{ctx.Locale.Tr "org.settings.visibility.limited"}}</label>
						</div>
						<div class="ui radio checkbox">
							<input class="enable-system-radio" name="visibility" type="radio" value="2" {{if .DefaultOrgVisibilityMode.IsPrivate}}checked{{end}}>
							<label>{{ctx.Locale.Tr "org.settings.visibility.private"}}</label>
						</div>
					</div>
				</div>

				<div class="inline field" id="permission_box">
					<label>{{ctx.Locale.Tr "org.settings.permission"}}</label>
					<div class="ui checkbox">
						<input type="checkbox" name="repo_admin_change_team_access" checked>
						<label>{{ctx.Locale.Tr "org.settings.repoadminchangeteam"}}</label>
					</div>
				</div>

				<div class="inline field">
					<label></label>
					<button class="ui primary button">
						{{ctx.Locale.Tr "org.create_org"}}
					</button>
				</div>
			</form>
		</div>
	</div>
</div>
{{template "base/footer" .}}