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	# TABLE WAS THERE\n	\n		<div class=\"card shadow mb-4\"> <div class=\"card-header py-3\"> <h6 class=\"m-0 font-weight-bold text-primary\">Contributions: editing record (#$C->{View}{ID})</div>\n	</div>\n	\n		<td class=atkEditorControl>\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	<table class=atkInnerTable cellpadding=4 cellspacing=3 width=\"100\%\">\n		\n			<div class=\"form-group row\"><label class=\"col-sm-12 col-md-4 col-form-label\"><b style=\"color:red\">*</b>&nbsp;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\">Approved</label>\n			<div class=\"col-sm-12 col-md-8\">$C->{Form}{approved}</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>&nbsp;SY Event</label>\n			<div class=\"col-sm-12 col-md-8\">$C->{Form}{syevent_id}</div>\n		</div>\n		\n			<div class=\"form-group row\"><label class=\"col-sm-12 col-md-4 col-form-label\">URL</label>\n			<div class=\"col-sm-12 col-md-8\">$C->{Form}{url}</div>\n		</div>\n		\n			<div class=\"form-group row\"><label class=\"col-sm-12 col-md-4 col-form-label\">Description</label>\n			<div class=\"col-sm-12 col-md-8\">$C->{Form}{descr}</div>\n		</div>\n		\n			<div class=\"form-group row\"><label class=\"col-sm-12 col-md-4 col-form-label\">Price</label>\n			<div class=\"col-sm-12 col-md-8\">$C->{Form}{price}</div>\n		</div>\n		\n			<div class=\"form-group row\"><label class=\"col-sm-12 col-md-4 col-form-label\">Cover Graphic</label>\n			<div class=\"col-sm-12 col-md-8\">\n				<b>Upload file</b>s$C->{Form}{cover_upload}\n				<b>OR specify direct URL</b>s$C->{Form}{cover_url}\n			</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>&nbsp;Download</label>\n			<div class=\"col-sm-12 col-md-8\">\n				<b>Upload file</b>s$C->{Form}{download_upload}\n				<b>OR specify direct URL</b>s$C->{Form}{download_url}\n			</div>\n		</div>\n		\n		<td class=atkEditorControl colspan=\"2\" style=\"font-size: 105\%; text-align: center\">Preview</div></div>\n		\n			<td class=atkEditorRight colspan=\"2\">$C->{Form}{preview}</div>\n		</div>\n</div></div>\n\n\n	<td class=atkEditorControl>\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\n</form>\n");}