<div class="row">
	<div class="col-md-8">

		<div class="row mb-3">
			<div class="col-12">
				{{ Form::label('name', 'Nom') }}
				@include('components.form.input', ['name' => 'name', 'value' => $genre['name'] ?? null, 'required' => true])
			</div>
		</div>

		<div class="row mb-3">
			<div class="col-12">
				{{ Form::label('family', 'Famille') }}
				@include('components.form.select', ['name' => 'family_id', 'list' => $families, 'value' => $genre['family_id'] ?? null, 'required' => false, 'with_empty' => ''])
			</div>
		</div>


		<div class="row mb-3">
			<div class="col-12">
				{{ Form::label('alias', 'Alias') }}
				@include('components.form.input', ['name' => 'alias', 'value' => $genre['alias'] ?? null])
			</div>
		</div>

		<div class="row mb-3">
			<div class="col-12">
				{{ Form::label('latin', 'Nom latin') }}
				@include('components.form.input', ['name' => 'latin', 'value' => $genre['latin'] ?? null, 'required' => false])
			</div>
		</div>

		<div class="row mb-3">
			<div class="col-12">
				{{ Form::label('description', 'Description') }}
				@include('components.form.textarea', ['name' => 'description', 'value' => $genre['description'] ?? null, 'class' => 'editor', 'required' => false])		
			</div>
		</div>

	</div>
</div>

@include('components.save')

@include('load.form.editor')
@include('load.form.save')


@push('js')
	<script>
		$(function() {
			initEditor();
			initSaveForm();
		});
	</script>
@endpush