<h4 class="ui top attached header">{{ctx.Locale.Tr "admin.config.instance_landing_page"}}</h4>
<div class="ui attached segment">
	<form class="ui form ignore-dirty system-config-form" method="post" action="{{AppSubUrl}}/-/admin/config">
		{{$cfgOpt := $.SystemConfig.Instance.LandingPage}}
		{{$cfgKey := $cfgOpt.DynKey}}
		{{$landingPage := $cfgOpt.Value ctx}}
		<input type="hidden" data-config-dyn-key="{{$cfgKey}}" data-config-value-json="{{JsonUtils.EncodeToString $landingPage}}">
		<div class="grouped fields">
			<div class="field">
				<div class="ui radio checkbox">
					<input name="{{$cfgKey}}.Mode" type="radio" value="home" {{if or (eq $landingPage.Mode "") (eq $landingPage.Mode "home")}}checked{{end}}>
					<label>{{ctx.Locale.Tr "admin.config.landing_page.home"}}</label>
				</div>
			</div>
			<div class="field">
				<div class="ui radio checkbox">
					<input name="{{$cfgKey}}.Mode" type="radio" value="explore" {{if eq $landingPage.Mode "explore"}}checked{{end}}>
					<label>{{ctx.Locale.Tr "admin.config.landing_page.explore"}}</label>
				</div>
			</div>
			<div class="field">
				<div class="ui radio checkbox">
					<input name="{{$cfgKey}}.Mode" type="radio" value="organizations" {{if eq $landingPage.Mode "organizations"}}checked{{end}}>
					<label>{{ctx.Locale.Tr "admin.config.landing_page.organizations"}}</label>
				</div>
			</div>
			<div class="field">
				<div class="ui radio checkbox">
					<input name="{{$cfgKey}}.Mode" type="radio" value="login" {{if eq $landingPage.Mode "login"}}checked{{end}}>
					<label>{{ctx.Locale.Tr "admin.config.landing_page.login"}}</label>
				</div>
			</div>
			<div class="field">
				<div class="ui radio checkbox">
					<input name="{{$cfgKey}}.Mode" type="radio" value="custom" {{if eq $landingPage.Mode "custom"}}checked{{end}}>
					<label>{{ctx.Locale.Tr "admin.config.landing_page.custom"}}</label>
				</div>
			</div>
		</div>
		<div class="field">
			<label>{{ctx.Locale.Tr "admin.config.landing_page.custom_path"}}</label>
			<input type="text" name="{{$cfgKey}}.CustomPath" value="{{$landingPage.CustomPath}}" placeholder="/MokoConsulting">
			<div class="help">{{ctx.Locale.Tr "admin.config.landing_page.custom_path_help"}}</div>
		</div>
		<div class="field">
			<button class="ui primary button">{{ctx.Locale.Tr "save"}}</button>
		</div>
	</form>
</div>
