add new frontend
This commit is contained in:
@ -1,17 +1,48 @@
|
||||
<form method="POST" action="/devices/{{ $device->device_id }}/locations">
|
||||
@csrf
|
||||
<label for="room_code">room_code:</label>
|
||||
<input type="text" id="room_code" name="room_code" value="{{old('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="{{old('timestamp_located_since')}}" required>
|
||||
@error('timestamp_located_since')
|
||||
<p>{{ $message }}</p>
|
||||
@enderror
|
||||
<br />
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
@extends('layout')
|
||||
|
||||
@section('content')
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-6">
|
||||
<div class="box">
|
||||
<h3 class="title is-3 has-text-centered">Create Location</h3>
|
||||
<form method="POST" action="/devices/{{ $device->device_id }}/locations">
|
||||
@csrf
|
||||
|
||||
<div class="field">
|
||||
<label for="room_code" class="label">room_code</label>
|
||||
<div class="control">
|
||||
<input class="input" type="text" id="room_code" placeholder="room_code" name="room_code"
|
||||
value="{{ old('room_code') }}" required />
|
||||
</div>
|
||||
@error('room_code')
|
||||
<p class="help is-danger">{{ $message }}</p>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label for="timestamp_located_since" class="label">timestamp_located_since</label>
|
||||
<div class="control">
|
||||
<input class="input" type="text" id="timestamp_located_since"
|
||||
placeholder="timestamp_located_since" name="timestamp_located_since"
|
||||
value="{{ old('timestamp_located_since') }}" required />
|
||||
</div>
|
||||
@error('timestamp_located_since')
|
||||
<p class="help is-danger">{{ $message }}</p>
|
||||
@enderror
|
||||
</div>
|
||||
|
||||
<div class="field is-grouped is-grouped-centered">
|
||||
<div class="control">
|
||||
<button class="button is-success" type="submit">Submit</button>
|
||||
</div>
|
||||
<div class="control">
|
||||
<a class="button is-success is-light" href="/devices/{{ $device->device_id }}">Cancel</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
Reference in New Issue
Block a user