mirror of
https://github.com/snipe/snipe-it.git
synced 2026-08-18 11:15:42 +00:00
Added route and base livewire blade
TODO: Remove the old route once this is vetted and finalized
This commit is contained in:
@ -209,7 +209,7 @@
|
||||
<div class="admin box box-default">
|
||||
<div class="box-body text-center">
|
||||
<h5>
|
||||
<a href="{{ route('settings.ldap.index') }}" class="settings_button">
|
||||
<a href="{{ route('settings.ldap.wizard') }}" class="settings_button">
|
||||
<x-icon type="ldap" class="fa-4x"/>
|
||||
<br><br>
|
||||
<span class="name">{{ trans('admin/settings/general.ldap') }}</span>
|
||||
|
||||
16
resources/views/settings/ldap-wizard.blade.php
Normal file
16
resources/views/settings/ldap-wizard.blade.php
Normal file
@ -0,0 +1,16 @@
|
||||
@extends('layouts/default')
|
||||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
{{ trans('admin/settings/general.ldap_ad') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
{{-- Page content --}}
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2">
|
||||
<livewire:ldap-settings />
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@ -240,6 +240,14 @@ Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'authorize:superuser
|
||||
Route::post('ldap', [SettingsController::class, 'postLdapSettings'])
|
||||
->name('settings.ldap.save');
|
||||
|
||||
// Livewire wizard version of the LDAP settings screen. Lives at its
|
||||
// own URL for now; the legacy form stays in place until the wizard
|
||||
// has been tested end-to-end.
|
||||
Route::view('ldap-wizard', 'settings.ldap-wizard')
|
||||
->name('settings.ldap.wizard')
|
||||
->breadcrumbs(fn (Trail $trail) => $trail->parent('settings.index')
|
||||
->push(trans('admin/settings/general.ldap_ad'), route('settings.ldap.wizard')));
|
||||
|
||||
Route::get('phpinfo', [SettingsController::class, 'getPhpInfo'])
|
||||
->name('settings.phpinfo.index')
|
||||
->breadcrumbs(fn (Trail $trail) => $trail->parent('settings.index')
|
||||
|
||||
Reference in New Issue
Block a user