<?php
if (isset($level_data) && is_array($level_data)){
	print "
<span class='headline'>".LABEL_ADDITION."</span>";
	foreach ($level_data AS $key => $value){
		print "
<div class='form-row'>
	<label for='level_addition_".$key."_textarea' class='form-label textarea'>".$value['title']."</label>
	<div class='form-cols'>
		<div class='form-col form-full'>
			<div class='form-controls'>
				<ul class='textarea-panel'>
					<li class='show_default-editor current' data-id='level_addition_".$key."'><i class='material-icons md-24'>edit</i>".LABEL_DEFAULT_EDITOR."</li>
					<li class='show_richtext-editor' data-id='level_addition_".$key."'><i class='material-icons md-24'>wysiwyg</i>".LABEL_RICHTEXT_EDITOR."</li>
					<li class='show_code-editor' data-id='level_addition_".$key."'><i class='material-icons md-24'>code</i>".LABEL_CODE_EDITOR."</li>
				</ul>
				<textarea name='level_data[".$key."][value_addition]' class='field' id='level_addition_".$key."_textarea' data-mode='html' data-autocomplete='true'>".$value['value_addition']."</textarea>
				<div id='level_addition_".$key."' class='code-editor'></div>
			</div><!-- /.form-controls -->
		</div><!-- /.form-col -->
	</div><!-- /.form-cols -->
</div><!-- /.form-row -->";
	}
	print "<hr />";
}