Fixed: Disabling nodes doesn't work properly
This commit is contained in:
parent
a0b5434c13
commit
933e56101c
|
@ -67,8 +67,10 @@
|
||||||
|
|
||||||
@foreach($locations as $location)
|
@foreach($locations as $location)
|
||||||
<optgroup label="{{$location->name}}">
|
<optgroup label="{{$location->name}}">
|
||||||
@foreach($location->nodes as $nodes)
|
@foreach($location->nodes as $node)
|
||||||
<option value="{{$nodes->id}}">{{$nodes->name}}</option>
|
@if(!$node->disabled)
|
||||||
|
<option value="{{$node->id}}">{{$node->name}}</option>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</optgroup>
|
</optgroup>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
Loading…
Reference in a new issue