{{/*### KyutGrill=2fa.jpg */}} {{ define "tpl" }}
{{ $regEnabled := qb "SELECT value_int FROM system_settings WHERE name = 'ccreation_enabled'" }} {{ $isClan := qb "SELECT user, clan FROM user_clans WHERE user = ?" .Context.User.ID }} {{ if not .Context.User.ID }}
{{ .T "Hey! You need to login first!" }}
{{ else if not ($regEnabled.value_int.Bool) }}
{{ .T "Ow, sorry the clan is not available to create right now ;p" }}
{{ else if ($isClan) }}
{{ .T "Seems like you're already in the clan." }}
{{ else if has .Context.User.Privileges 3 }}
{{ ieForm .Gin }}
{{ else }}
{{ .T "In order to create clan, You will need to donate our server (Supporter) to create clan!" }}
{{ end }}
{{ end }}