Example #1
0
		<label for="password">Password</label>

		<input type="password" name="password" class="form-control" placeholder="Password">

		<?php 
echo show_message_when('password', $errors);
?>
	</div>

	<div class="form-group">
		<label for="password">Confirm Password</label>

		<input type="password" name="password_confirmation" class="form-control" placeholder="Confirm Password">

		<?php 
echo show_message_when('password_confirmation', $errors);
?>
	</div>

	<div class="form-group">
		<label for="group_ids[]">Groups</label>

		<?php 
echo Form::select('group_ids[]', $user->available_groups, $user->selected_groups, ['class' => 'chosen form-control', 'multiple']);
?>
	</div>

	<div class="actions">
		<?php 
echo Form::submit('Save', ['class' => 'btn btn-primary']);
?>
Example #2
0
?>

		<?php 
echo show_message_when('layout', $errors);
?>
	</div>

	<div class="form-group">
		<label for="content">Content</label>

		<?php 
echo render('platform::wysiwyg', ['name' => 'content', 'body' => $page->content]);
?>

		<?php 
echo show_message_when('content', $errors);
?>
	</div>

	<div class="actions">
		<?php 
echo Form::submit('Save', ['class' => 'btn btn-danger platform-form-submit-btn']);
?>

		<span style="padding: 0px 10px;">or</span> <a href="<?php 
echo $cancel;
?>
">Cancel</a>
	</div>

<?php 
Example #3
0
echo show_message_when('name', $errors);
?>
		</div>
	</div>

	<h4>Permissions <small>(<a href="#" ng-click="addPermission()"><i class="fa fa-plus"></i></a>)</small></h4>

	<div class="form-group row">
		<div class="col-md-6">
			<div class="input-group permissions-region" ng-repeat="permission in permissions track by $index">
				<input type="text" name="permissions[]" class="form-control" placeholder="Permission name" value="{{permission}}">
				<span ng-click="removePermission($index)" class="input-group-addon"><i class="fa fa-times"></i></span>
			</div>

			<?php 
echo show_message_when('permissions[]', $errors);
?>
		</div>
	</div>

	<div class="actions text-center push-down-more">
		<?php 
echo Form::submit('Save', ['class' => 'btn btn-primary']);
?>

		<span style="padding: 0px 10px;">or</span> <a href="<?php 
echo $cancel;
?>
">Cancel</a>
	</div>