<?php
$val .= '<div id="';

$val .= $scope->locally()->XML_val('HolderID', null, true);
$val .= '" class="form-group field';

if ($scope->locally()->hasValue('extraClass', null, true)) { 
$val .= ' ';

$val .= $scope->locally()->XML_val('extraClass', null, true);

}
$val .= '">
    ';

if ($scope->locally()->hasValue('Title', null, true)) { 
$val .= '
    	<label for="';

$val .= $scope->locally()->XML_val('ID', null, true);
$val .= '" id="title-';

$val .= $scope->locally()->XML_val('ID', null, true);
$val .= '" class="form__field-label">';

$val .= $scope->locally()->XML_val('Title', null, true);
$val .= '</label>
    ';


}
$val .= '
	<';

$val .= $scope->locally()->XML_val('Tag', null, true);
$val .= ' id="';

$val .= $scope->locally()->XML_val('ID', null, true);
$val .= '" ';

$val .= \SilverStripe\View\SSViewer::execute_template([["type" => "Includes", 'SilverStripe/Forms/AriaAttributes'], 'SilverStripe/Forms/AriaAttributes'], $scope->getItem(), array(), $scope, true);

$val .= '
		class="form__fieldgroup form__field-holder
			';

if (!$scope->locally()->hasValue('Title', null, true)) { 
$val .= ' form__field-holder--no-label';


}
$val .= '
			';

if ($scope->locally()->hasValue('Zebra', null, true)) { 
$val .= ' form__fieldgroup-zebra';


}
$val .= '"
	>
		';

$val .= $scope->locally()->XML_val('Field', null, true);
$val .= '
        ';


$val .= '
		';

if ($scope->locally()->hasValue('Message', null, true)) { 
$val .= '<p class="alert ';

$val .= $scope->locally()->XML_val('MessageType', null, true);
$val .= '" role="alert" id="message-';

$val .= $scope->locally()->XML_val('ID', null, true);
$val .= '">';

$val .= $scope->locally()->XML_val('Message', null, true);
$val .= '</p>';


}
$val .= '
        ';

if ($scope->locally()->hasValue('Description', null, true)) { 
$val .= '<p class="form__field-description form-text" id="describes-';

$val .= $scope->locally()->XML_val('ID', null, true);
$val .= '">';

$val .= $scope->locally()->XML_val('Description', null, true);
$val .= '</p>';


}
$val .= '
	</';

$val .= $scope->locally()->XML_val('Tag', null, true);
$val .= '>
    ';

if ($scope->locally()->hasValue('RightTitle', null, true)) { 
$val .= '<p class="form__field-extra-label" id="extra-label-';

$val .= $scope->locally()->XML_val('ID', null, true);
$val .= '">';

$val .= $scope->locally()->XML_val('RightTitle', null, true);
$val .= '</p>';


}
$val .= '
</div>
';

