<?php $__env->startSection('content'); ?>

	<script type="text/javascript">
		$(document).ready(function() {
			$("#work_entities").tokenInput("/projects/entities/autoc", 
			{		theme					: "facebook"	
				,	preventDuplicates	: true
/*				,	hintText				: <?php echo trans('labels.search'); ?>
				,	noResultsText		: "O noes"
				,	searchingText		: "Meowing..."	*/
				,	minChars				: 2
				,	prePopulate			: <?php echo $prePop; ?>
 			});
		});
	</script>
	<h2><?php echo trans('labels.work'); ?></h2>
	<?php echo Form::open(array('url' => 'work/update')); ?>
	<div class="box ffr">
		<div class="label"><?php echo trans('labels.desc'); ?> : </div>
		<div class="data"><?php echo Form::text('work_desc', $work->work_desc, array($acl['crd']['r'])); ?></div>
	</div>
	<div class="box ffr">
		<div class="label"><?php echo trans('labels.entities'); ?> : </div>
		<div class="data"><?php echo Form::text('work_entities',  '', array('id'=>'work_entities',$acl['crd']['d'])); ?></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', $work->id); ?>
	<?php echo Form::close(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>