add create/edit functionality
This commit is contained in:
18
device-app/resources/views/locations/edit.blade.php
Normal file
18
device-app/resources/views/locations/edit.blade.php
Normal file
@ -0,0 +1,18 @@
|
||||
<form method="POST" action="/devices/locations/{{ $location->location_transaction_id }}">
|
||||
@method('PUT')
|
||||
@csrf
|
||||
<label for="room_code">room_code:</label>
|
||||
<input type="text" id="room_code" name="room_code" value="{{$location->room_code}}" required>
|
||||
@error('room_code')
|
||||
<p>{{ $message }}</p>
|
||||
@enderror
|
||||
<br />
|
||||
<label for="timestamp_located_since">timestamp_located_since:</label>
|
||||
<input type="text" id="timestamp_located_since" name="timestamp_located_since"
|
||||
value="{{$location->timestamp_located_since}}" required>
|
||||
@error('timestamp_located_since')
|
||||
<p>{{ $message }}</p>
|
||||
@enderror
|
||||
<br />
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
Reference in New Issue
Block a user