v0.5.3 - Added Locations and a location_id to washing machines
This commit is contained in:
@@ -15,6 +15,16 @@
|
||||
@method("put")
|
||||
<label for="name_first">Vaskemaskine Navn:</label>
|
||||
<input type="text" name="name" id="name" max="60" value="{{$machine->name}}" required>
|
||||
<select class="w-100" name="location_id" id="location_id" class="mb-2" required>
|
||||
<option disabled> -- Vælg Lokation -- </option>
|
||||
@foreach($locations as $location)
|
||||
{{ $selected = "" }}
|
||||
@if($machine->location_id == $location->id)
|
||||
{{ $selected = "selected" }}
|
||||
@endif
|
||||
<option {{ $selected }} value="{{ $location->id }}">{{ $location->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<input type="submit" class="btn btn-dark text-white" value="Rediger">
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user