<a href="#" class="btn"  data-ng-click="promote()">
	<i class="fa fa-angle-double-up"></i> Promote to project
</a>

<script type="text/ng-template" id="modals/promote-project.html">
	<div class="modal-header">
		<button type="button" class="close" ng-click="close()" aria-hidden="true">×</button>
		<h3 id="promoteModalLabel" class="modal-title">Promote this task to a project</h3>
	</div>
	<form id='projectForm' name='projectForm' ng-submit="save()" class="form-horizontal">
		<div class="modal-body">
			<div class="alert alert-danger" data-ng-show="projectForm.description.$invalid && projectForm.$attempted">
				<i class="fa fa-exclamation-triangle"></i> The description field is required!
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label label-required" for="inputName">Project name:</label>
				<div class="col-sm-9">
					<input class="form-control" type="text" id="inputName" data-ng-model="data.name" placeholder="Project name" name="name" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label label-required" for="inputLeader">Project leader:</label>
				<div class="col-sm-9">
					<select name="assigned_to" ng-model="data.assigned_to" class="form-control" required>
						<option value="">Select Project Leader</option>
						@foreach(App\Models\User::getActiveList()->pluck('name', 'id') as $id => $name)
							<option value="{{ $id }}">{{ $name }}</option>
						@endforeach
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label label-required" for="inputDescription">Description:</label>
				<div class="col-sm-9">
					<textarea id="inputDescription" placeholder="Project description" name="description" data-ng-model="data.description" data-summernote data-summernote-height="200"></textarea>
				</div>
			</div>
		</div>
		<div class="modal-footer">
			<button class="btn btn-default" ng-click="close()" aria-hidden="true">Close</button>
			<button class="btn btn-primary"><i class="fa fa-angle-double-up"></i>&nbsp;Promote</button>
		</div>
	</form>
</script>