v0.5.3 - Added Locations and a location_id to washing machines
This commit is contained in:
@@ -15,6 +15,17 @@
|
||||
@csrf
|
||||
<label for="name_first">Vaskemaskine Navn:</label>
|
||||
<input type="text" name="name" id="name" max="60" placeholder="Vaskemaskine nr. 1" required>
|
||||
<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>
|
||||
<input type="submit" class="btn btn-dark text-white" value="Opret">
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user