%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/rental/resources/views/admin/
Upload File :
Create Path :
Current File : /var/www/html/rental/resources/views/admin/vehicletypesForm.php

<?php echo View::make('partials.header') ?>

<div class="row">
	<form class="form-horizontal col-md-offset-2 col-md-8" action="/vehicletypes" method="post">
		<?php $model = isset($model)?$model:[]; ?>
		<h2>Create/Edit Vehicle Type</h2></br>
		
		<?php if (count($errors) > 0) { ?>
			<div class="alert alert-danger">
				<ul>
					<?php foreach ($errors->all() as $error){ ?>
						<li><?php echo $error; ?></li>
					<?php } ?>
				</ul>
			</div>
		<?php } ?>
		
		<!-- FORM INPUTS start -->
		
		<div class="form-group required">
			<label for="name" class="col-md-3 control-label">Name</label>
			<div class="col-md-5">
				<input type="input" name="name" id="name" value="<?php echo isset($model['name'])?$model['name']:''; ?>" class="form-control" placeholder="Vehicle Type">
			</div>
		</div>
		
		<div class="form-group required">
			<label for="size" class="col-sm-3 control-label">Size</label>
			<div class="col-sm-5">				
				<select name="size" id="size" class="form-control">
					<option value="SM">Small</option>
					<option value="MD">Medium</option>
					<option value="LG">Large</option>
				</select>
			</div>
		</div>
		
		<!-- FORM INPUTS end -->
		
		<?php if(isset($model['id'])): ?>
			<input type="hidden" name="id" value="<?php echo $model['id']; ?>">		
		<?php endif; ?>
		<input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
		<hr>
		<div class="form-group">
			<div class="col-md-offset-3 col-sm-8">
				<button type="submit" class="btn btn-primary">Save Changes</button>
			</div>
		</div>
	</form>
</div>


<?php echo View::make('partials.footer') ?>

Zerion Mini Shell 1.0