<?php
echo getTitleArea(Lang::t('_PRECOMPILE', 'standard'));
?>
<div class="std_block">
<?php

echo Form::openForm('precompile_form', 'index.php?r=precompile/set');

if (!$fields_checked) {
	foreach ($fieldlist->getUserMandatoryFields(Docebo::user()->getIdSt()) as $id_field => $m_field) {
		echo $fieldlist->playFieldForUser(Docebo::user()->getIdSt(), $id_field, false, true);
	}
}

echo Form::getBreakRow();

echo '<div class="boxed">';
echo '<p class="privacy_policy">';
echo $policy_text;
echo '</p>';
echo Form::getBreakRow();
echo '<div class="align-center">';
echo Form::getCheckbox(Lang::t('_ACCEPT', 'standard'), 'accept_policy', 'accept_policy', 1, FALSE);
echo '</div>';
echo '</div>';


echo Form::openButtonSpace();
echo Form::getButton('save', 'save', Lang::t('_SAVE', 'standard'));
echo Form::getButton('undo', 'undo', Lang::t('_UNDO', 'standard'));
echo Form::closeButtonSpace();

echo Form::closeForm();

?>
</div>