phpldapadmin/resources/views/home.blade.php

100 lines
3.0 KiB
PHP
Raw Normal View History

2020-08-20 12:33:13 +00:00
@extends('adminlte::layouts.app')
@section('htmlheader_title')
2020-08-22 12:26:06 +00:00
Home
2020-08-20 12:33:13 +00:00
@endsection
@section('contentheader_title')
2020-08-22 12:26:06 +00:00
Home
2020-08-20 12:33:13 +00:00
@endsection
@section('contentheader_description')
@endsection
@section('main-content')
2020-08-22 12:26:06 +00:00
<div class="card card-solid">
<div class="card-body">
<div class="row">
2020-08-23 02:30:18 +00:00
<div class="col-12 col-sm-4">
2020-08-22 12:26:06 +00:00
<h3 class="d-inline-block d-sm-none">phpLDAPadmin</h3>
<img src="img/logo.png" class="logo-image col-12" alt="PLA Logo">
2020-08-22 12:26:06 +00:00
</div>
2020-08-23 02:30:18 +00:00
<div class="col-12 col-sm-8">
2020-08-23 01:37:08 +00:00
<h3 class="mb-1">Welcome to phpLDAPadmin</h3>
<h4 class="mb-3"><small>{{ config('app.version') }}</small></h4>
2020-08-22 12:26:06 +00:00
<p>phpLDAPadmin (or PLA for short) is an LDAP data management tool for administrators.</p>
2020-08-31 14:13:27 +00:00
<p>PLA aims to adhere to the LDAP standards so that it can interact with any LDAP server that implements those standards.</p>
2020-08-23 02:30:18 +00:00
</div>
</div>
<div class="row">
<div class="col-12">
2020-08-22 12:26:06 +00:00
<hr>
<p>Version 2 is a complete re-write of PLA, leveraging the advancements and modernisation of web tools and methods, libraries since version 1 was released.</p>
<p>You can support this application by letting us know which LDAP server you use (including version and platform).</p>
</div>
</div>
</div>
</div>
2020-08-20 12:33:13 +00:00
@endsection
@section('page-scripts')
@js('https://code.jquery.com/ui/1.12.1/jquery-ui.min.js','jquery-ui')
@js('https://cdnjs.cloudflare.com/ajax/libs/jquery.fancytree/2.36.1/jquery.fancytree-all.min.js','fancytree-js-all')
2020-08-31 14:13:27 +00:00
@css('https://cdnjs.cloudflare.com/ajax/libs/jquery.fancytree/2.36.1/skin-xp/ui.fancytree.min.css','fancytree-css')
<script type="text/javascript">
function expandChildren(node) {
if (node.data.autoExpand && !node.isExpanded()) {
node.setExpanded(true);
}
2020-08-31 14:13:27 +00:00
if (node.children && node.children.length > 0) {
try {
node.children.forEach(expandChildren);
} catch (error) {
}
}
2020-08-31 14:13:27 +00:00
}
$(document).ready(function() {
// Attach the fancytree widget to an existing <div id="tree"> element
// and pass the tree options as an argument to the fancytree() function:
$('#tree').fancytree({
clickFolderMode: 3,
extensions: ['glyph'],
autoCollapse: true, // Automatically collapse all siblings, when a node is expanded.
autoScroll: true, // Automatically scroll nodes into visible area.
focusOnSelect: true, // Set focus when node is checked by a mouse click
click: function(event, data) {
if (data.targetType == 'title')
return false;
},
init: function(event, data) {
expandChildren(data.tree.rootNode);
},
source: {
url: "{{ url('api/bases') }}"
},
lazyLoad: function(event,data) {
data.result = {
url: "{{ url('api/query') }}",
data: {key: data.node.data.item,depth: 1}
};
expandChildren(data.tree.rootNode);
},
keydown: function(event, data){
switch( $.ui.fancytree.eventToString(data.originalEvent) ) {
case "return":
case "space":
data.node.toggleExpanded();
break;
}
}
});
});
</script>
@append