2023-02-14 10:38:42 +00:00
|
|
|
@extends('layouts.dn')
|
|
|
|
|
|
|
|
@section('page_title')
|
|
|
|
<table class="table table-borderless">
|
|
|
|
<tr>
|
|
|
|
<td style="border-radius: 5px;"><div class="page-title-icon f32"><i class="fas fa-fingerprint"></i></div></td>
|
2023-03-25 12:33:27 +00:00
|
|
|
<td class="top text-end align-text-top p-0 pt-2"><strong>{{ \App\Classes\LDAP\Server::schemaDN() }}</strong></td>
|
2023-02-14 10:38:42 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('main-content')
|
|
|
|
<div class="main-card mb-3 card">
|
2023-03-01 22:54:30 +00:00
|
|
|
<div class="card-body">
|
2023-04-02 12:41:06 +00:00
|
|
|
<h5 class="card-title">@lang('Schema Information')</h5>
|
2023-03-01 22:54:30 +00:00
|
|
|
|
2023-02-14 10:38:42 +00:00
|
|
|
<ul class="nav nav-tabs">
|
2023-04-02 12:41:06 +00:00
|
|
|
<li class="nav-item"><a data-bs-toggle="tab" href="#objectclasses" class="nav-link">@lang('Object Classes')</a></li>
|
|
|
|
<li class="nav-item"><a data-bs-toggle="tab" href="#attributetypes" class="nav-link">@lang('Attribute Types')</a></li>
|
|
|
|
<li class="nav-item"><a data-bs-toggle="tab" href="#ldapsyntaxes" class="nav-link">@lang('Syntaxes')</a></li>
|
|
|
|
<li class="nav-item"><a data-bs-toggle="tab" href="#matchingrules" class="nav-link">@lang('Matching Rules')</a></li>
|
2023-02-14 10:38:42 +00:00
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
<!-- Object Classes -->
|
|
|
|
<div class="tab-pane" id="objectclasses" role="tabpanel">
|
|
|
|
<div id="schema.objectclasses"><i class="fas fa-fw fa-spinner fa-pulse"></i></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Attribute Types -->
|
|
|
|
<div class="tab-pane" id="attributetypes" role="tabpanel">
|
|
|
|
<div id="schema.attributetypes"><i class="fas fa-fw fa-spinner fa-pulse"></i></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Syntaxes -->
|
|
|
|
<div class="tab-pane" id="ldapsyntaxes" role="tabpanel">
|
|
|
|
<div id="schema.ldapsyntaxes"><i class="fas fa-fw fa-spinner fa-pulse"></i></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Matching Rules -->
|
|
|
|
<div class="tab-pane" id="matchingrules" role="tabpanel">
|
|
|
|
<div id="schema.matchingrules"><i class="fas fa-fw fa-spinner fa-pulse"></i></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('page-scripts')
|
|
|
|
<script type="text/javascript">
|
|
|
|
var loaded = [];
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
2023-03-25 12:33:27 +00:00
|
|
|
$('a[data-bs-toggle="tab"]').on('shown.bs.tab', function (item) {
|
2023-02-14 10:38:42 +00:00
|
|
|
// activated tab
|
|
|
|
var type = $(item.target).attr('href').substring(1);
|
|
|
|
if (loaded[type])
|
|
|
|
return false;
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
url: '{{ url('api/schema/view') }}',
|
|
|
|
method: 'POST',
|
|
|
|
data: { type: type },
|
|
|
|
dataType: 'html',
|
|
|
|
|
|
|
|
}).done(function(html) {
|
|
|
|
$('div[id="schema.'+type+'"]').empty().append(html);
|
|
|
|
loaded[type] = true;
|
|
|
|
|
|
|
|
}).fail(function() {
|
|
|
|
alert('Failed');
|
|
|
|
});
|
|
|
|
|
|
|
|
item.stopPropagation();
|
|
|
|
});
|
|
|
|
|
|
|
|
// Open our objectclasses tab automatically
|
|
|
|
$('.nav-item a[href="#objectclasses"]').tab('show');
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@append
|