Move frames/schema items to fragment/schema
This commit is contained in:
@@ -1,153 +0,0 @@
|
||||
<div class="row">
|
||||
|
||||
<div class="col-12 col-xl-3">
|
||||
<select id="attributetype" class="form-control">
|
||||
<option value="-all-">-all-</option>
|
||||
@foreach ($attributetypes as $o)
|
||||
<option value="{{ $o->name_lc }}">{{ $o->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-xl-9">
|
||||
@foreach ($attributetypes as $o)
|
||||
<span id="at-{{ $o->name_lc }}">
|
||||
<table class="schema table table-sm table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="table-dark" colspan="2">{{ $o->name }}<span class="float-end"><abbr title="{{ $o->line }}"><i class="fas fa-fw fa-file-contract"></i></abbr></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="w-25">@lang('Description')</td><td><strong>{{ $o->description ?: __('(no description)')}}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><abbr title="@lang('Object Identifier')">OID</abbr></td><td><strong>{{ $o->oid }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Obsolete')</td><td><strong>@lang($o->is_obsolete ? 'Yes' : 'No')</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Inherits from')</td>
|
||||
<td><strong>@if ($o->sup_attribute)<a class="attributetype" id="{{ strtolower($o->sup_attribute) }}" href="#{{ strtolower($o->sup_attribute) }}">{{ $o->sup_attribute }}</a>@else @lang('(none)')@endif</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Parent to')</td>
|
||||
<td>
|
||||
<strong>
|
||||
@if (! $o->children->count())
|
||||
@lang('(none)')
|
||||
@else
|
||||
@foreach ($o->children->sort() as $child)
|
||||
@if($loop->index)</strong> <strong>@endif
|
||||
<a class="attributetype" id="{{ strtolower($child) }}" href="#{{ strtolower($child) }}">{{ $child }}</a>
|
||||
@endforeach
|
||||
@endif
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Equality')</td><td><strong>{{ $o->equality ?: __('(not specified)') }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Ordering')</td><td><strong>{{ $o->ordering ?: __('(not specified)') }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Substring Rule')</td><td><strong>{{ $o->sub_str_rule ?: __('(not specified)') }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Syntax')</td><td><strong>{{ ($o->syntax_oid && $x=$server->schemaSyntaxName($o->syntax_oid)) ? $x->description : __('(unknown syntax)') }} @if($o->syntax_oid)({{ $o->syntax_oid }})@endif</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Single Valued')</td><td><strong>@lang($o->is_single_value ? 'Yes' : 'No')</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Collective')</td><td><strong>@lang($o->is_collective ? 'Yes' : 'No')</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('User Modification')</td><td><strong>@lang($o->is_no_user_modification ? 'Yes' : 'No')</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Usage')</td><td><strong>{{ $o->usage ?: __('(not specified)') }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Maximum Length')</td><td><strong>{{ is_null($o->max_length) ? __('(not applicable)') : sprintf('%s %s',number_format($o->max_length),Str::plural('character',$o->max_length)) }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Aliases')</td>
|
||||
<td><strong>
|
||||
@if ($o->aliases->count())
|
||||
@foreach ($o->aliases as $alias)
|
||||
@if ($loop->index)</strong> <strong>@endif
|
||||
<a class="attributetype" id="{{ strtolower($alias) }}" href="#{{ strtolower($alias) }}">{{ $alias }}</a>
|
||||
@endforeach
|
||||
@else
|
||||
@lang('(none)')
|
||||
@endif
|
||||
</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Used by ObjectClasses')</td>
|
||||
<td><strong>
|
||||
@if ($o->used_in_object_classes->count())
|
||||
@foreach ($o->used_in_object_classes as $class)
|
||||
@if ($loop->index)</strong> <strong>@endif
|
||||
<a class="objectclass" id="{{ strtolower($class) }}" href="#{{ strtolower($class) }}">{{ $class }}</a>
|
||||
@endforeach
|
||||
@else
|
||||
@lang('(none)')
|
||||
@endif
|
||||
</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Force as MAY by config')</td><td><strong>@lang($o->forced_as_may ? 'Yes' : 'No')</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
<!-- Links to object class -->
|
||||
$('.objectclass')
|
||||
.on('click',function(item) {
|
||||
$('.nav-item a[href="#objectclasses"]').tab('show');
|
||||
|
||||
$('#objectclass').val(item.target.id).trigger('change');
|
||||
});
|
||||
|
||||
<!-- Handle our parent to/inherits from fields -->
|
||||
$('.attributetype')
|
||||
.on('click',function(item) {
|
||||
$('.nav-item a[href="#attributetypes"]').tab('show');
|
||||
$('#attributetype').val(item.target.id).trigger('change');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
<!-- Handle our select list -->
|
||||
$('#attributetype')
|
||||
.select2({width: '100%'})
|
||||
.on('change',function(item) {
|
||||
if (item.target.value === '-all-') {
|
||||
$('#attributetypes span').each(function() { $(this).show(); });
|
||||
|
||||
} else {
|
||||
$('#attributetypes span').each(function() {
|
||||
if ($(this)[0].id.match(/select2/) || (! $(this)[0].id))
|
||||
return;
|
||||
|
||||
if ('at-'+item.target.value === $(this)[0].id)
|
||||
$(this).show();
|
||||
else
|
||||
$(this).hide();
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
@@ -1,29 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-5 m-auto">
|
||||
<table class="schema table table-sm table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="table-dark">@lang('Description')</th>
|
||||
<th class="table-dark">OID</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($ldapsyntaxes as $o)
|
||||
<tr>
|
||||
<td>
|
||||
<abbr title="{{ $o->line }}">{{ $o->description }}</abbr>
|
||||
@if ($o->binary_transfer_required)
|
||||
<span class="float-end"><i class="fas fa-fw fa-file-download"></i></span>
|
||||
@endif
|
||||
@if ($o->is_not_human_readable)
|
||||
<span class="float-end"><i class="fas fa-fw fa-tools"></i></span>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ $o->oid }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
@@ -1,101 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-12 col-xl-3">
|
||||
<select id="matchingrule" class="form-control">
|
||||
<option value="-all-">-all-</option>
|
||||
@foreach ($matchingrules as $o)
|
||||
<option value="{{ $o->name_lc }}">{{ $o->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-xl-9">
|
||||
@foreach ($matchingrules as $o)
|
||||
<span id="me-{{ $o->name_lc }}">
|
||||
<table class="schema table table-sm table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="table-dark" colspan="2">{{ $o->name }}<span class="float-end"><abbr title="{{ $o->line }}"><i class="fas fa-fw fa-file-contract"></i></abbr></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="w-25">@lang('Description')</td><td><strong>{{ $o->description ?: __('(no description)') }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="w-25"><abbr title="@lang('Object Identifier')">OID</abbr></td><td><strong>{{ $o->oid }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="w-25">@lang('Syntax')</td><td><strong>{{ $o->syntax }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Used by Attributes')</td>
|
||||
<td>
|
||||
<strong>
|
||||
@if ($o->used_by_attrs->count() === 0)
|
||||
@lang('(none)')
|
||||
@else
|
||||
@foreach ($o->used_by_attrs as $attr)
|
||||
@if($loop->index)</strong> <strong>@endif
|
||||
<a class="attributetype" id="{{ strtolower($attr) }}" href="#at-{{ strtolower($attr) }}">{{ $attr }}</a>
|
||||
@endforeach
|
||||
@endif
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function hl_attribute(item,count) {
|
||||
if ((count < 50) && (! loaded['attributetypes'])) {
|
||||
setTimeout(hl_attribute,250,item,++count);
|
||||
} else if (count >= 50) {
|
||||
return false;
|
||||
} else {
|
||||
$('#attributetype').val(item.target.id).trigger('change');
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.attributetype')
|
||||
.on('click',function(item) {
|
||||
$('.nav-item a[href="#attributetypes"]').tab('show');
|
||||
|
||||
return hl_attribute(item,0);
|
||||
});
|
||||
|
||||
<!-- Handle our parent to/inherits from fields -->
|
||||
$('.matchingrule')
|
||||
.on('click',function(item) {
|
||||
$('#matchingrule').val(item.target.id).trigger('change');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
<!-- Handle our select list -->
|
||||
$('#matchingrule')
|
||||
.select2({width: '100%'})
|
||||
.on('change',function(item) {
|
||||
if (item.target.value === '-all-') {
|
||||
$('#matchingrules span').each(function() { $(this).show(); });
|
||||
|
||||
} else {
|
||||
$('#matchingrules span').each(function() {
|
||||
if ($(this)[0].id.match(/select2/) || (! $(this)[0].id))
|
||||
return;
|
||||
|
||||
if ('me-'+item.target.value === $(this)[0].id)
|
||||
$(this).show();
|
||||
else
|
||||
$(this).hide();
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
@@ -1,147 +0,0 @@
|
||||
<div class="row">
|
||||
<div class="col-12 col-xl-3">
|
||||
<select id="objectclass" class="form-control">
|
||||
<option value="-all-">-all-</option>
|
||||
@foreach ($objectclasses as $o)
|
||||
<option value="{{ $o->name_lc }}">{{ $o->name }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-xl-9">
|
||||
@foreach ($objectclasses as $o)
|
||||
<span id="oc-{{ $o->name_lc }}">
|
||||
<table class="schema table table-sm table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="table-dark" colspan="4">{{ $o->name }}<span class="float-end"><abbr title="{{ $o->line }}"><i class="fas fa-fw fa-file-contract"></i></abbr></span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="w-25">@lang('Description')</td><td colspan="3"><strong>{{ $o->description ?: __('(no description)') }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="w-25"><abbr title="@lang('Object Identifier')">OID</abbr></td><td colspan="3"><strong>{{ $o->oid }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Type')</td><td colspan="3"><strong>{{ $o->type_name }}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>@lang('Inherits from')</td>
|
||||
<td colspan="3">
|
||||
<strong>
|
||||
@if ($o->sup->count() === 0)
|
||||
@lang('(none)')
|
||||
@else
|
||||
@foreach ($o->sup as $sup)
|
||||
@if($loop->index)</strong> <strong>@endif
|
||||
<a class="objectclass" id="{{ strtolower($sup) }}" href="#{{ strtolower($sup) }}">{{ $sup }}</a>
|
||||
@endforeach
|
||||
@endif
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>@lang('Parent to')</td>
|
||||
<td colspan="3">
|
||||
<strong>
|
||||
@if (strtolower($o->name) === 'top')
|
||||
<a class="objectclass" id="-all-">(all)</a>
|
||||
@elseif (! $o->getChildObjectClasses()->count())
|
||||
@lang('(none)')
|
||||
@else
|
||||
@foreach ($o->getChildObjectClasses() as $childoc)
|
||||
@if($loop->index)</strong> <strong>@endif
|
||||
<a class="objectclass" id="{{ strtolower($childoc) }}" href="#{{ strtolower($childoc) }}">{{ $childoc }}</a>
|
||||
@endforeach
|
||||
@endif
|
||||
</strong>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="align-top w-50" colspan="2">
|
||||
<table class="clearfix table table-sm table-borderless">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="table-primary">@lang('Required Attributes')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<ul class="ps-3" style="list-style-type: square;">
|
||||
@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>
|
||||
@endforeach
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
|
||||
<td class="align-top w-50" colspan="2">
|
||||
<table class="clearfix table table-sm table-borderless">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="table-primary">@lang('Optional Attributes')</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<ul class="ps-3" style="list-style-type: square;">
|
||||
@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>
|
||||
@endforeach
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</span>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
<!-- Handle our parent to/inherits from fields -->
|
||||
$('.objectclass')
|
||||
.on('click',function(item) {
|
||||
$('#objectclass').val(item.target.id).trigger('change');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
<!-- Handle our select list -->
|
||||
$('#objectclass')
|
||||
.select2({width: '100%'})
|
||||
.on('change',function(item) {
|
||||
if (item.target.value === '-all-') {
|
||||
$('#objectclasses span').each(function() { $(this).show(); });
|
||||
|
||||
} else {
|
||||
$('#objectclasses span').each(function() {
|
||||
if ($(this)[0].id.match(/select2/) || (! $(this)[0].id))
|
||||
return;
|
||||
|
||||
if ('oc-'+item.target.value === $(this)[0].id)
|
||||
$(this).show();
|
||||
else
|
||||
$(this).hide();
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
Reference in New Issue
Block a user