Skip to content

Commit d705abf

Browse files
ftrotterqschmick
authored andcommitted
opt-group (#82)
1 parent 496d6fa commit d705abf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

resources/views/tasks/form.blade.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
<select id="command" name="command" class="uk-select" placeholder="Click here to select one of the available commands">
3535
<option value="">Select a command</option>
3636
@foreach ($commands as $command)
37-
<option value="{{$command->getName()}}" {{old('command', $task->command) == $command->getName() ? 'selected' : ''}}>{{ $command->getName() }} - {{ $command->getDescription() }}</option>
37+
<optgroup label="{{$command->getName()}}">
38+
<option value="{{$command->getName()}}" {{old('command', $task->command) == $command->getName() ? 'selected' : ''}}>
39+
{{$command->getDescription()}}
40+
</option>
41+
</optgroup>
3842
@endforeach
3943
</select>
4044
@if($errors->has('command'))

0 commit comments

Comments
 (0)