<?php $__env->startSection('content'); ?>
	<h2><?php echo trans('labels.entity'); ?></h2>
	<?php echo Form::open(array('url' => 'entity/update')); ?>
	<div class="box ffr">
		<div class="label"><?php echo trans('labels.entity'); ?> : </div>
		<div class="text"><?php echo Form::select('parent_id', $entity_options, $entity->parent_id, array($acl['crd']['d']) ); ?></div>
	</div>
	<div class="box ffr">
		<div class="label"><?php echo trans('labels.label'); ?> : </div>
		<div class="text"><?php echo Form::text('entity_name', $entity->entity_name, array($acl['crd']['r'])); ?></div>
	</div>
	<div class="box ffr">
		<div class="label"><?php echo trans('labels.desc'); ?> : </div>
		<div class="text"><?php echo Form::textArea('entity_desc', $entity->entity_desc, array('rows' => '4')); ?></div>
	</div>
	<div class="box ffr">
		<div class="label">&nbsp;</div>
		<div class="text">
			<?php echo Form::submit('OK'			, array( 'class' => 'button bn ok')); ?>
			<input onclick="location.href='<?php echo URL::previous(); ?>'" class="button bn cl" value="Cancel" />
		</div>
	</div>
	<?php echo Form::hidden('id', $entity->id); ?>
	<?php echo Form::close(); ?>
	<hr/>
	<?php echo $__env->make('tasks.sublist', array('tasks'=>$entity->tasks->all()), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
	<hr/>
	<?php echo $__env->make('attachments.sublist', array('attachments'=>$entity->entitylinks->all()), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.grid', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>