2020-06-16 07:06:45 +00:00
|
|
|
@extends("admin.layout.base")
|
|
|
|
@extends("admin.layout.header")
|
|
|
|
|
|
|
|
@section("title")
|
2020-06-24 12:19:55 +00:00
|
|
|
Vaskemaskiner - Opret
|
2020-06-16 07:06:45 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("path")
|
2020-06-24 12:19:55 +00:00
|
|
|
<a href="{{ route('washing-machines.create') }}" class="text-white">Opret Vaskemaskine</a> /
|
2020-06-16 07:06:45 +00:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-06-24 12:19:55 +00:00
|
|
|
<h1>Opret Vaskemaskine:</h1>
|
2020-06-22 12:53:00 +00:00
|
|
|
<form method="post" action="{{ route("washing-machines.store") }}">
|
|
|
|
@csrf
|
2020-06-24 12:19:55 +00:00
|
|
|
<label for="name_first">Vaskemaskine Navn:</label>
|
2020-06-29 08:50:04 +00:00
|
|
|
<input type="text" name="name" id="name" max="60" placeholder="Vaskemaskine nr. 1" required>
|
2020-08-06 06:37:16 +00:00
|
|
|
<label for="location_id">Lokation:</label>
|
|
|
|
<select name="location_id" id="location_id" class="mb-2" required>
|
|
|
|
<option disabled selected value> -- Vælg Lokation -- </option>
|
|
|
|
@if(count($locations) > 0)
|
|
|
|
@foreach($locations as $location)
|
|
|
|
<option value="{{ $location->id }}">{{ $location->name }}</option>
|
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
<option disabled> Der er ingen lokationer oprettet!</option>
|
|
|
|
@endif
|
|
|
|
</select>
|
2020-06-22 12:53:00 +00:00
|
|
|
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
|
|
|
</form>
|
2020-06-16 07:06:45 +00:00
|
|
|
@endsection
|
2020-08-11 08:54:01 +00:00
|
|
|
@section("scripts")
|
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
$('form').areYouSure(
|
|
|
|
{
|
|
|
|
message: 'It looks like you have been editing something. '
|
|
|
|
+ 'If you leave before saving, your changes will be lost.'
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endsection
|