# IF C_VALIDATION_ERROR #
	<div class="message-helper bgc error">
		<p class="text-strong">{TITLE_VALIDATION_ERROR_MESSAGE} : </p>
		# START validation_error_messages #
			- {validation_error_messages.ERROR_MESSAGE}<br />
		# END validation_error_messages #
	</div>
# ENDIF #

# IF C_JS_NOT_ALREADY_INCLUDED #
	<script src="{PATH_TO_ROOT}/templates/__default__/plugins/form/validator# IF C_CSS_CACHE_ENABLED #.min# ENDIF #.js"></script>
	<script src="{PATH_TO_ROOT}/templates/__default__/plugins/form/form# IF C_CSS_CACHE_ENABLED #.min# ENDIF #.js"></script>
# ENDIF #

<script>
	jQuery(document).ready(function() {
		var form = new HTMLForm("${escape(HTML_ID)}");
		HTMLForms.add(form);
	});
</script>

# IF C_LAYOUT #
	<section id="module-{MODULE_ID}" class="single-item item-form">
		<header class="section-header">
			<h1>{LAYOUT_TITLE}</h1>
		</header>
		<div class="sub-section">
			<div class="content-container">
				<div class="content">
# ENDIF #
					<form
                            id="${HTML_ID}"
                            # IF C_TARGET #action="${TARGET}"# ENDIF #
                            method="${METHOD}" onsubmit="return HTMLForms.get('${HTML_ID}').validate();"
                            class="fieldset-content# IF C_FORM_CLASS # ${FORM_CLASS}# ENDIF #">
						# IF C_HAS_REQUIRED_FIELDS #
							<p class="required-fields-text small text-italic">{L_REQUIRED_FIELDS}</p>
						# ENDIF #
						# START fieldsets #
							# INCLUDE fieldsets.FIELDSET #
						# END fieldsets #

						<input type="hidden" id="${HTML_ID}_token" name="token" value="{TOKEN}">
						<input type="hidden" id="${HTML_ID}_disabled_fields" name="${HTML_ID}_disabled_fields" value="">
						<input type="hidden" id="${HTML_ID}_disabled_fieldsets" name="${HTML_ID}_disabled_fieldsets" value="">
					</form>
# IF C_LAYOUT #
				</div>
			</div>
		</div>
		<footer></footer>
	</section>
# ENDIF #
