eOSP2/resources/views/equipmentEdit.blade.php

38 lines
1.3 KiB
PHP

@extends('layout.app')
@section('left-menu')
@parent
<ul>
<a href="/sprzet/add"><li>Dodaj<img src="/img/left_menu_icon/add.png"></li></a>
<a href="/sprzet"><li>Przeglądaj<img src="/img/left_menu_icon/more.png"></li></a>
</ul>
@stop
@section('center-area')
@parent
<form method="POST" action="/sprzet/edit">
{{ csrf_field() }}
<input type="hidden" class="form-control" name="equipmentID" value="{{ $equipment->id }}">
<div class="form-group">
<label for="name">Nazwa:</label>
<input type="text" class="form-control" id="name" name="name" value="{{ $equipment->name }} ">
</div>
<div class="form-group">
<label for="amount">Ilość:</label>
<input type="text" class="form-control" id="amount" name="amount" value="{{ $equipment->amount }}">
</div>
<div class="form-group">
<label for="parameter">Parametr charakterystyczny:</label>
<input type="text" class="form-control" id="parameter" name="parameter" value="{{ $equipment->parameter }}">
</div>
<div class="form-group">
<button style="cursor:pointer" type="submit" class="btn btn-primary">Zatwierdź</button>
</div>
@include('inc.formerrors')
</form>
@stop