When viewing the schema, highlight Structural and non-Structural classes
Some checks failed
Create Docker Image / Test Application (x86_64) (push) Has been cancelled
Create Docker Image / Build Docker Image (arm64) (push) Has been cancelled
Create Docker Image / Build Docker Image (x86_64) (push) Has been cancelled
Create Docker Image / Final Docker Image Manifest (push) Has been cancelled

This commit is contained in:
Deon George 2025-04-10 16:09:53 +10:00
parent f0eaff7d42
commit 8b0af505a1

View File

@ -2,14 +2,17 @@
<div class="col-12 col-xl-3"> <div class="col-12 col-xl-3">
<select id="objectclass" class="form-control"> <select id="objectclass" class="form-control">
<option value="-all-">-all-</option> <option value="-all-">-all-</option>
@foreach ($objectclasses as $o) @foreach($objectclasses->groupBy(fn($item)=>$item->isStructural()) as $oo)
<option value="{{ $o->name_lc }}">{{ $o->name }}</option> <optgroup label="{{ __($oo->first()->isStructural() ? 'Structural' : 'Auxillary') }} Object Class"></optgroup>
@foreach($oo as $o)
<option value="{{ $o->name_lc }}">{{ $o->name }}</option>
@endforeach
@endforeach @endforeach
</select> </select>
</div> </div>
<div class="col-12 col-xl-9"> <div class="col-12 col-xl-9">
@foreach ($objectclasses as $o) @foreach($objectclasses as $o)
<span id="oc-{{ $o->name_lc }}"> <span id="oc-{{ $o->name_lc }}">
<table class="schema table table-sm table-bordered table-striped"> <table class="schema table table-sm table-bordered table-striped">
<thead> <thead>
@ -32,10 +35,10 @@
<td>@lang('Inherits from')</td> <td>@lang('Inherits from')</td>
<td colspan="3"> <td colspan="3">
<strong> <strong>
@if ($o->sup->count() === 0) @if($o->sup->count() === 0)
@lang('(none)') @lang('(none)')
@else @else
@foreach ($o->sup as $sup) @foreach($o->sup as $sup)
@if($loop->index)</strong> <strong>@endif @if($loop->index)</strong> <strong>@endif
<a class="objectclass" id="{{ strtolower($sup) }}" href="#{{ strtolower($sup) }}">{{ $sup }}</a> <a class="objectclass" id="{{ strtolower($sup) }}" href="#{{ strtolower($sup) }}">{{ $sup }}</a>
@endforeach @endforeach
@ -48,12 +51,12 @@
<td>@lang('Parent to')</td> <td>@lang('Parent to')</td>
<td colspan="3"> <td colspan="3">
<strong> <strong>
@if (strtolower($o->name) === 'top') @if(strtolower($o->name) === 'top')
<a class="objectclass" id="-all-">(all)</a> <a class="objectclass" id="-all-">(all)</a>
@elseif (! $o->getChildObjectClasses()->count()) @elseif(! $o->getChildObjectClasses()->count())
@lang('(none)') @lang('(none)')
@else @else
@foreach ($o->getChildObjectClasses() as $childoc) @foreach($o->getChildObjectClasses() as $childoc)
@if($loop->index)</strong> <strong>@endif @if($loop->index)</strong> <strong>@endif
<a class="objectclass" id="{{ strtolower($childoc) }}" href="#{{ strtolower($childoc) }}">{{ $childoc }}</a> <a class="objectclass" id="{{ strtolower($childoc) }}" href="#{{ strtolower($childoc) }}">{{ $childoc }}</a>
@endforeach @endforeach
@ -75,7 +78,7 @@
<tr> <tr>
<td> <td>
<ul class="ps-3" style="list-style-type: square;"> <ul class="ps-3" style="list-style-type: square;">
@foreach ($o->getMustAttrs(TRUE) as $oo) @foreach($o->getMustAttrs(TRUE) as $oo)
<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> <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>
@endforeach @endforeach
</ul> </ul>
@ -97,7 +100,7 @@
<tr> <tr>
<td> <td>
<ul class="ps-3" style="list-style-type: square;"> <ul class="ps-3" style="list-style-type: square;">
@foreach ($o->getMayAttrs(TRUE) as $oo) @foreach($o->getMayAttrs(TRUE) as $oo)
<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> <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>
@endforeach @endforeach
</ul> </ul>