<?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
 			});
		});
	</script>
	<h2><?php echo trans('labels.work'); ?></h2>
	<?php echo Form::open(array('url' => 'work/create')); ?>
	<div class="box ffr">
		<div class="label"><?php echo trans('labels.desc'); ?> : </div>
		<div class="data"><?php echo Form::text('work_desc', Input::old('work_desc')); ?></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')); ?></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::close(); ?>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>