use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<h6 class=\"mb-6 font-weight-bold text-primary\">Add your review</h6>\n\n");if ( $C->{ReviewForm}{errors} ) {$this->out("	<div class=\"card mb-4 py-3 border-left-danger\">\n		<div class=\"card-body\">\n");my $in = $C->{ReviewForm}{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>\n	</div>\n");}$this->out("\n	<div class=\"form-group row\">\n		<label class=\"col-sm-12 col-md-4 col-form-label\">Your name</label>\n		<div class=\"col-sm-12 col-md-8\">$C->{ReviewForm}{author_name}</div>\n	</div>\n	<div class=\"form-group row\">\n		<label class=\"col-sm-12 col-md-4 col-form-label\">Your e-mail</label>\n		<div class=\"col-sm-12 col-md-8\">\n			$C->{ReviewForm}{author_email}\n			<small>(it will not be published)</small>\n		</div>\n	</div>\n	<div class=\"form-group\">\n		<label>Review</label>\n		$C->{ReviewForm}{message}\n	</div>\n	<div class=\"form-group\">\n		<a class=\"btn btn-primary\" href=\"javascript:scAjaxReviewPost(\'do\')\">Post</a>\n	</div>\n	&larr;&nbsp;<a href=\"javascript:scAjaxReviewList()\">Back to review list</a>\n");}