use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("");if ( $C->{Form}{errors} ) {$this->out("	<div class=\"card mb-4 py-3 border-left-danger\"><div class=\"card-body\">\n");my $in = $C->{Form}{errors};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{error} = -1;for my $f (@$loop) {$C->{ITERATION}{error}++;$C->{error} = $f;$this->out("		 $C->{error}{message}\n");}$this->out("	</div></div>\n");}$this->out("\n<form name=Editor action=\"$C->{SYS}{URL}$C->{ENV}{PATH_INFO}\" method=POST enctype=\"multipart/form-data\">\n<input type=\"hidden\" name=\"TabAct\">\n<input type=\"hidden\" name=\"cgi_ret\" value=\"$C->{INPUT}{cgi_ret}\">\n<input type=\"hidden\" name=\"ObjectID\" value=\"$C->{INPUT}{ObjectID}\">\n");my $in = $C->{KeepFields};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{kf} = -1;for my $f (@$loop) {$C->{ITERATION}{kf}++;$C->{kf} = $f;$this->out("<input type=\"hidden\" name=\"$C->{kf}\" value=\"$C->{INPUT}{$C->{kf}}\">\n");}$this->out("\n	<div class=\"card shadow mb-4\"> <div class=\"card-header py-3\"> <h6 class=\"m-0 font-weight-bold text-primary\">\n");if ( $C->{View}{stored} ) {$this->out("			Edit Special User Group (#$C->{View}{ID})\n");} else {$this->out("			Adding new Special User Group\n");}$this->out("	</h6>\n</div>\n\n\n<div class=\"card-body\">\n	<div class=\"btn-group mb-4\">\n		<button type=\"button\" class=\"btn btn-primary\" onclick=\"atkGoActionEditor(\'save\')\">Save</button>\n		<button type=\"button\" class=\"btn btn-primary dropdown-toggle dropdown-toggle-split\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n			<span class=\"sr-only\">Toggle Dropdown</span>\n		</button>\n		<div class=\"dropdown-menu\">\n");{my $G = (ref $this)->get("$C->{TabActCfg}{template_controls}", $this->{param}) or die "no skel $C->{TabActCfg}{template_controls}";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("		</div>\n	</div>\n\n	<div class=\"form-group row\"><label class=\"col-sm-12 col-md-4 col-form-label\">Type</label>\n	<div class=\"col-sm-12 col-md-8\">$C->{Form}{type}</div>\n</div>\n\n	<div class=\"form-group row\"><label class=\"col-sm-12 col-md-4 col-form-label\"><b style=\"color: red\">*</b> Title</label>\n	<div class=\"col-sm-12 col-md-8\">$C->{Form}{title}</div>\n</div>\n\n	<div class=\"form-group row\"><label class=\"col-sm-12 col-md-4 col-form-label\">Notes (for admin only)</label>\n	<div class=\"col-sm-12 col-md-8\">$C->{Form}{notes}</div>\n</div>\n\n");if ( $C->{Object}{type} eq 'local' ) {$this->out("	\n	<h6>User selection</h6>\n");{my $G = (ref $this)->get("/master/users/specusers/editor_selection.html", $this->{param}) or die "no skel /master/users/specusers/editor_selection.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("");} else {$this->out("	\n		<div class=\"form-group row\"><label class=\"col-sm-12 col-md-4 col-form-label\">$C->{Form}{names}{remote_delavo_api_url}</label>\n		<div class=\"col-sm-12 col-md-8\">$C->{Form}{remote_delavo_api_url}</div>\n	</div>\n");$C->{status} = $C->{View}{remoteDelavoAPIStatus};$this->out("");if ( $C->{status} ) {$this->out("	\n		<div class=\"form-group row\"><label class=\"col-sm-12 col-md-4 col-form-label\">Remote Delavo API Status</label>\n		<div class=\"col-sm-12 col-md-8\">$C->{status}</div>\n	</div>\n");}$this->out("");}$this->out("\n<div class=\"btn-group mb-4\">\n	<button type=\"button\" class=\"btn btn-primary\" onclick=\"atkGoActionEditor(\'save\')\">Save</button>\n	<button type=\"button\" class=\"btn btn-primary dropdown-toggle dropdown-toggle-split\" data-toggle=\"dropdown\" aria-haspopup=\"true\" aria-expanded=\"false\">\n		<span class=\"sr-only\">Toggle Dropdown</span>\n	</button>\n	<div class=\"dropdown-menu\">\n");{my $G = (ref $this)->get("$C->{TabActCfg}{template_controls}", $this->{param}) or die "no skel $C->{TabActCfg}{template_controls}";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("	</div>\n</div>\n\n</div></div>\n\n</form>\n\n<script>\nCheckType();\n</script>\n");}