Skip to content

Commit

Permalink
Matching dropdown of 2.x branch (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
qschmick authored Mar 4, 2018
1 parent 8bcb962 commit db7bab0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/views/tasks/form.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
<select id="command" name="command" class="uk-select" placeholder="Click here to select one of the available commands">
<option value="">Select a command</option>
@foreach ($commands as $command)
<option value="{{$command->getName()}}" {{old('command', $task->command) == $command->getName() ? 'selected' : ''}}>{{ $command->getName() }} - {{ $command->getDescription() }}</option>
<optgroup label="{{$command->getName()}}">
<option value="{{$command->getName()}}" {{old('command', $task->command) == $command->getName() ? 'selected' : ''}}>
{{$command->getDescription()}}
</option>
</optgroup>
@endforeach
</select>
@if($errors->has('command'))
Expand Down

0 comments on commit db7bab0

Please sign in to comment.