use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("\n<input type=\"hidden\" name=\"$C->{eid}_help_hidden\" value=\"help\">\n");if ( $C->{Config}{title} ) {$this->out("		<h6 class=\"mb-6 font-weight-bold text-primary\">$C->{Config}{title}</h6>\n");}$this->out("");if ( @{$C->{Forms}} ) {$this->out("	<div class=\"form-group row\">\n");my $in = $C->{Fields};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{f} = -1;for my $f (@$loop) {$C->{ITERATION}{f}++;$C->{f} = $f;$this->out("		<label class=\"col-sm col-form-label\">$C->{f}{title}</label> \n");}$this->out("		<label class=\"col-sm col-form-label\">Action</label>\n	</div>\n");}$this->out("");my $in = $C->{Forms};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{Form} = -1;for my $f (@$loop) {$C->{ITERATION}{Form}++;$C->{Form} = $f;$this->out("	<div class=\"form-group row\">\n");my $in = $C->{Form}{fields};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{f} = -1;for my $f (@$loop) {$C->{ITERATION}{f}++;$C->{f} = $f;$this->out("");$C->{ctrl} = "$C->{Form}{$C->{f}}";$this->out("");if ( $C->{ctrl} ) {$this->out("		<div class=\"col-sm mb-1\">\n			$C->{Form}{$C->{f}}\n		</div>\n");}$this->out("");}$this->out("	<div class=\"col-sm\">\n		<a href=\"#\" onClick=\"if (confirm(\'Are you sure you want to delete this record?\')) ajaxEditPacktable(\'$C->{ENV}{SCRIPT_NAME}\', \'$C->{eid}\', \'del\', \'$C->{Form}{decorated}{_row_id}\'); return false;\"><i class=\"fa fa-times\"></i></a>\n	</div>\n	</div> \n	<hr>\n");}$this->out("<a href=\"javascript:ajaxEditPacktable(\'$C->{ENV}{SCRIPT_NAME}\', \'$C->{eid}\', \'add\');\">$C->{Config}{add_text}</a>");}