abschlussprojekt-device-man.../device-app/resources/views/devices/edit.blade.php

57 lines
2.2 KiB
PHP
Raw Normal View History

2023-03-26 17:36:20 +02:00
@extends('layout')
@section('content')
<form method="POST" action="/devices/{{$device->device_id}}">
@method('PUT')
2023-03-26 18:16:26 +02:00
@csrf
<!--label for="device_id">device_id:</label>
2023-03-26 17:36:20 +02:00
<input type="text" id="device_id" name="device_id" value="{{$device->device_id}}" required>
@error('device_id')
<p>{{$message}}</p>
@enderror
<br /-->
2023-03-26 17:36:20 +02:00
<label for="title">Title:</label>
<input type="text" id="title" name="title" value="{{$device->title}}" required>
@error('device_id')
<p>{{$message}}</p>
@enderror
<br />
<label for="device_type">device_type:</label>
<input type="text" id="device_type" name="device_type" value="{{$device->device_type}}" required>
@error('device_id')
<p>{{$message}}</p>
@enderror
<br />
<label for="accessories">accessories:</label>
<input type="text" id="accessories" name="accessories" value="{{$device->accessories}}">
@error('device_id')
<p>{{$message}}</p>
@enderror
<br />
<label for="rz_username_buyer">rz_username_buyer:</label>
<input type="text" id="rz_username_buyer" name="rz_username_buyer" value="{{$device->rz_username_buyer}}" required>
@error('device_id')
<p>{{$message}}</p>
@enderror
<br />
<label for="serial_number">serial_number:</label>
<input type="text" id="serial_number" name="serial_number" value="{{$device->serial_number}}" required>
@error('device_id')
<p>{{$message}}</p>
@enderror
<br />
<label for="image_url">image_url:</label>
<input id="image_url" name="image_url" value="{{$device->image_url}}" required>
@error('device_id')
<p>{{$message}}</p>
@enderror
<br />
<label for="description">description:</label>
2023-03-26 18:16:26 +02:00
<textarea type="text" id="description" name="description">{{$device->description}}</textarea>
2023-03-26 17:36:20 +02:00
@error('device_id')
<p>{{$message}}</p>
@enderror
<br />
<input type="submit" value="Submit">
</form>
@endsection