initial commit
This commit is contained in:
25
resources/views/partials/vm-device-row.blade.php
Normal file
25
resources/views/partials/vm-device-row.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<div class="device-row rounded-lg border border-slate-700 bg-slate-800/50 p-4">
|
||||
<div class="mb-3 flex items-center justify-between">
|
||||
<span class="text-sm font-medium text-slate-300">Zusatzgerät</span>
|
||||
<button type="button" class="remove-device text-xs text-red-400 hover:underline">Entfernen</button>
|
||||
</div>
|
||||
<div class="grid gap-3 sm:grid-cols-3">
|
||||
<label>
|
||||
<span class="text-xs text-slate-500">Typ</span>
|
||||
<select name="devices[{{ $index }}][type]" class="mt-1 w-full rounded border border-slate-600 bg-slate-800 px-2 py-1.5 text-sm">
|
||||
<option value="">— wählen —</option>
|
||||
@foreach($deviceTypes as $value => $label)
|
||||
<option value="{{ $value }}" @selected(($device['type'] ?? '') === $value)>{{ $label }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
<label>
|
||||
<span class="text-xs text-slate-500">Slot (z.B. scsi1)</span>
|
||||
<input name="devices[{{ $index }}][slot]" value="{{ $device['slot'] ?? '' }}" class="mt-1 w-full rounded border border-slate-600 bg-slate-800 px-2 py-1.5 text-sm">
|
||||
</label>
|
||||
<label>
|
||||
<span class="text-xs text-slate-500">Konfiguration (JSON-Felder)</span>
|
||||
<input name="devices[{{ $index }}][config][size_gb]" placeholder="size_gb (Disk)" value="{{ $device['config']['size_gb'] ?? '' }}" class="mt-1 w-full rounded border border-slate-600 bg-slate-800 px-2 py-1.5 text-sm">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user