|
2 | 2 | <div class="col-12 col-xl-3"> |
3 | 3 | <select id="objectclass" class="form-control"> |
4 | 4 | <option value="-all-">-all-</option> |
5 | | - @foreach ($objectclasses as $o) |
6 | | - <option value="{{ $o->name_lc }}">{{ $o->name }}</option> |
| 5 | + @foreach($objectclasses->groupBy(fn($item)=>$item->isStructural()) as $oo) |
| 6 | + <optgroup label="{{ __($oo->first()->isStructural() ? 'Structural' : 'Auxillary') }} Object Class"></optgroup> |
| 7 | + @foreach($oo as $o) |
| 8 | + <option value="{{ $o->name_lc }}">{{ $o->name }}</option> |
| 9 | + @endforeach |
7 | 10 | @endforeach |
8 | 11 | </select> |
9 | 12 | </div> |
10 | 13 |
|
11 | 14 | <div class="col-12 col-xl-9"> |
12 | | - @foreach ($objectclasses as $o) |
| 15 | + @foreach($objectclasses as $o) |
13 | 16 | <span id="oc-{{ $o->name_lc }}"> |
14 | 17 | <table class="schema table table-sm table-bordered table-striped"> |
15 | 18 | <thead> |
|
32 | 35 | <td>@lang('Inherits from')</td> |
33 | 36 | <td colspan="3"> |
34 | 37 | <strong> |
35 | | - @if ($o->sup->count() === 0) |
| 38 | + @if($o->sup->count() === 0) |
36 | 39 | @lang('(none)') |
37 | 40 | @else |
38 | | - @foreach ($o->sup as $sup) |
| 41 | + @foreach($o->sup as $sup) |
39 | 42 | @if($loop->index)</strong> <strong>@endif |
40 | 43 | <a class="objectclass" id="{{ strtolower($sup) }}" href="#{{ strtolower($sup) }}">{{ $sup }}</a> |
41 | 44 | @endforeach |
|
48 | 51 | <td>@lang('Parent to')</td> |
49 | 52 | <td colspan="3"> |
50 | 53 | <strong> |
51 | | - @if (strtolower($o->name) === 'top') |
| 54 | + @if(strtolower($o->name) === 'top') |
52 | 55 | <a class="objectclass" id="-all-">(all)</a> |
53 | | - @elseif (! $o->getChildObjectClasses()->count()) |
| 56 | + @elseif(! $o->getChildObjectClasses()->count()) |
54 | 57 | @lang('(none)') |
55 | 58 | @else |
56 | | - @foreach ($o->getChildObjectClasses() as $childoc) |
| 59 | + @foreach($o->getChildObjectClasses() as $childoc) |
57 | 60 | @if($loop->index)</strong> <strong>@endif |
58 | 61 | <a class="objectclass" id="{{ strtolower($childoc) }}" href="#{{ strtolower($childoc) }}">{{ $childoc }}</a> |
59 | 62 | @endforeach |
|
75 | 78 | <tr> |
76 | 79 | <td> |
77 | 80 | <ul class="ps-3" style="list-style-type: square;"> |
78 | | - @foreach ($o->getMustAttrs(TRUE) as $oo) |
| 81 | + @foreach($o->getMustAttrs(TRUE) as $oo) |
79 | 82 | <li>{{ $oo->name }} @if($oo->source !== $o->name)[<strong><a class="objectclass" id="{{ strtolower($oo->source) }}" href="#{{ strtolower($oo->source) }}">{{ $oo->source }}</a></strong>]@endif</li> |
80 | 83 | @endforeach |
81 | 84 | </ul> |
|
97 | 100 | <tr> |
98 | 101 | <td> |
99 | 102 | <ul class="ps-3" style="list-style-type: square;"> |
100 | | - @foreach ($o->getMayAttrs(TRUE) as $oo) |
| 103 | + @foreach($o->getMayAttrs(TRUE) as $oo) |
101 | 104 | <li>{{ $oo->name }} @if($oo->source !== $o->name)[<strong><a class="objectclass" id="{{ strtolower($oo->source) }}" href="#{{ strtolower($oo->source) }}">{{ $oo->source }}</a></strong>]@endif</li> |
102 | 105 | @endforeach |
103 | 106 | </ul> |
|
0 commit comments