forked from s421507/eOSP2
68 lines
2.5 KiB
PHP
68 lines
2.5 KiB
PHP
@extends('layout.app')
|
|
|
|
@section('left-menu')
|
|
@parent<ul>
|
|
<a href="?addOperation"><li>Dodaj<img src="img/left_menu_icon/add.png"></li></a>
|
|
<li>Edytuj<img src="img/left_menu_icon/edit.png"></li>
|
|
<li>Usuń<img src="img/left_menu_icon/delete.png"></li>
|
|
|
|
</ul>
|
|
@stop
|
|
|
|
@section('center-area')
|
|
@parent
|
|
Strona w budowie - dodawanie
|
|
<form method="POST" action="/wyjazdy">
|
|
{{ csrf_field() }}
|
|
<div class="form-group">
|
|
<label for="date">Data wyjazdu: </label>
|
|
<input type="datetime-local" id="operationDate" name="operationDate">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="location">Miejsce akcji:</label>
|
|
<input type="text" class="form-control" id="operationLocation" name="operationLocation">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="location">Cel wyjazdu:</label>
|
|
<input type="text" class="form-control" id="operationTarget" name="operationTarget">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="location">Rodzaj zagrożenia:</label>
|
|
<input type="text" class="form-control" id="operationDangerType" name="operationDangerType">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="location">Opis akcji:</label>
|
|
<textarea class="form-control" id="'operationDescription" name="operationDescription">Enter text here...</textarea>
|
|
</div>
|
|
|
|
<div class=form-group">
|
|
<label for="location">Dowodzący:</label>
|
|
<select name="operationLeader" class="form-control">
|
|
<option value="">--- Wybierz dowódcę ---</option>
|
|
@foreach ($fireFighters as $fireFighter)
|
|
<option value="{{$fireFighter->id}}">{{ $fireFighter->name }} {{$fireFighter->surname }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
|
|
<div class=form-group">
|
|
<label for="location">Kierowca:</label>
|
|
<select name="operationDriver" class="form-control">
|
|
<option value="">--- Wybierz kierowcę ---</option>
|
|
@foreach ($fireFighters as $fireFighter)
|
|
<option value="{{$fireFighter->id}}">{{ $fireFighter->name }} {{$fireFighter->surname }}</option>
|
|
@endforeach
|
|
</select>
|
|
|
|
<div class="form-group">
|
|
<button style="cursor:pointer" type="submit" class="btn btn-primary">Dodaj</button>
|
|
</div>
|
|
</div>
|
|
@include('inc.formerrors')
|
|
</form>
|
|
@stop
|