<?php
if (isset($level_data) && is_array($level_data)){
	print "
<span class='headline'>".LABEL_TITLE."</span>";
	foreach ($level_data AS $key => $value){
		print "
<div class='form-row'>
	<label for='level_title_".$key."' class='form-label'>".$value['title']."</label>
	<div class='form-cols'>
		<div class='form-col form-full'>
			<div class='form-controls'>
				<textarea name='level_data[".$key."][value_title]' class='field' id='level_title_".$key."'>".$value['value_title']."</textarea>
			</div><!-- /.form-controls -->
		</div><!-- /.form-col -->
	</div><!-- /.form-cols -->
</div><!-- /.form-row -->";
	}
	print "<hr />";
}