Settings pages

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-08-19 14:48:12 +01:00
parent 08c3a25b39
commit be5f3f38f8
15 changed files with 71 additions and 32 deletions

View file

@ -147,6 +147,32 @@ class IconHelper
return 'fa-solid fa-print';
case 'checkin-and-delete':
return 'fa-solid fa-user-xmark';
case 'branding':
return 'fas fa-copyright';
case 'general-settings':
return 'fa-solid fa-list-check';
case 'groups':
return 'fa-solid fa-user-group';
case 'bell':
return 'fa-solid fa-bell';
case 'hashtag':
return 'fa-solid fa-hashtag';
case 'asset-tags':
return 'fas fa-list-ol';
case 'labels':
return 'fas fa-tags';
case 'ldap':
return 'fas fa-sitemap';
case 'google':
return 'fa-brands fa-google';
case 'saml':
return 'fas fa-sign-in-alt';
case 'backups':
return 'fas fa-file-archive';
case 'logins':
return 'fas fa-crosshairs';
case 'oauth':
return 'fas fa-user-secret';
}
}

View file

@ -3,6 +3,7 @@
<div class="box-header">
<h2 class="box-title">
<x-icon type="oauth"/>
{{ trans('admin/settings/general.oauth_clients') }}
</h2>
@if ($authorizationError)

View file

@ -32,7 +32,7 @@
<div class="panel box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fas fa-bell"></i> {{ trans('admin/settings/general.alerts') }}
<x-icon type="bell"/> {{ trans('admin/settings/general.alerts') }}
</h2>
</div>
<div class="box-body">

View file

@ -32,8 +32,8 @@
<div class="panel box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fas fa-list-ol"></i> {{ trans('general.asset_tags') }}
</h4>
<x-icon type="asset-tags"/> {{ trans('general.asset_tags') }}
</h2>
</div>
<div class="box-body">

View file

@ -113,7 +113,7 @@
<div class="box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="far fa-file-archive" aria-hidden="true"></i>
<x-icon type="backups"/>
{{ trans('admin/settings/general.backups_upload') }}
</h2>
<div class="box-tools pull-right">
@ -150,7 +150,10 @@
</label>
</div>
<div class="col-md-4 col-xs-4">
<button class="btn btn-primary col-md-12 col-xs-12" id="uploadButton" disabled>{{ trans('button.upload') }} <span id="uploadIcon"></span></button>
<button class="btn btn-primary col-md-12 col-xs-12" id="uploadButton" disabled>
{{ trans('button.upload') }}
<span id="uploadIcon"></span>
</button>
</div>
<div class="col-md-12">
@ -170,7 +173,8 @@
<div class="box box-warning">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fas fa-exclamation-triangle text-orange" aria-hidden="true"></i> {{ trans('admin/settings/general.backups_restoring') }}</h2>
<x-icon type="warning" class="text-orange"/> {{ trans('admin/settings/general.backups_restoring') }}
</h2>
<div class="box-tools pull-right">
</div>
</div><!-- /.box-header -->

View file

@ -32,7 +32,8 @@
<div class="panel box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fas fa-barcode" aria-hidden="true"></i> {{ trans('admin/settings/general.barcodes') }}
<x-icon type="assets"/>
{{ trans('admin/settings/general.barcodes') }}
</h2>
</div>
<div class="box-body">

View file

@ -32,7 +32,8 @@
<div class="panel box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fas fa-copyright"></i> {{ trans('admin/settings/general.brand') }}
<x-icon type="branding"/>
{{ trans('admin/settings/general.brand') }}
</h2>
</div>
<div class="box-body">

View file

@ -29,7 +29,7 @@
<div class="panel box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fas fa-wrench" aria-hidden="true"></i>
<x-icon type="general-settings"/>
{{ trans('admin/settings/general.general_settings') }}
</h2>
</div>

View file

@ -27,7 +27,8 @@
<div class="panel box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fa-brands fa-google"></i> {{ trans('admin/settings/general.google_login') }}
<x-icon type="google"/>
{{ trans('admin/settings/general.google_login') }}
</h2>
</div>
<div class="box-body">

View file

@ -61,7 +61,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.branding.index') }}" class="settings_button">
<i class="fas fa-copyright fa-4x" aria-hidden="true"></i>
<x-icon type="branding" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.brand') }}</span>
<span class="keywords" aria-hidden="true" style="display:none">{{ trans('admin/settings/general.brand_keywords') }}</span>
@ -78,7 +78,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.general.index') }}" class="settings_button">
<i class="fas fa-wrench fa-4x" aria-hidden="true"></i>
<x-icon type="general-settings" class="fa-4x"/>
<br><br>
<span class="name"> {{ trans('admin/settings/general.general_settings') }}</span>
<span class="keywords" aria-hidden="true" style="display:none">{{ trans('admin/settings/general.general_settings_keywords') }}</span>
@ -95,7 +95,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.security.index') }}" class="settings_button">
<i class="fas fa-lock fa-4x" aria-hidden="true"></i>
<x-icon type="locked" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.security') }}</span>
<span class="keywords" aria-hidden="true" style="display:none">{{ trans('admin/settings/general.security_keywords') }}</span>
@ -111,7 +111,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('groups.index') }}" class="settings_button">
<i class="fas fa-user-friends fa-4x" aria-hidden="true"></i>
<x-icon type="groups" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('general.groups') }}</span>
<span class="keywords" aria-hidden="true" style="display:none"> {{ trans('admin/settings/general.groups_keywords') }}</span>
@ -128,7 +128,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.localization.index') }}" class="settings_button">
<i class="fas fa-globe-americas fa-4x" aria-hidden="true"></i>
<x-icon type="globe-us" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.localization') }}</span>
<span class="keywords" aria-hidden="true" style="display:none"> {{ trans('admin/settings/general.localization_keywords') }}</span>
@ -146,7 +146,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.alerts.index') }}" class="settings_button">
<i class="fas fa-bell fa-4x" aria-hidden="true"></i>
<x-icon type="bell" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.notifications') }}</span>
@ -162,7 +162,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.slack.index') }}" class="settings_button">
<i class="fa-solid fa-hashtag fa-4x" aria-hidden="true"></i>
<x-icon type="hashtag" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.integrations') }}</span>
</a>
@ -177,7 +177,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.asset_tags.index') }}" class="settings_button">
<i class="fas fa-list-ol fa-4x" aria-hidden="true"></i>
<x-icon type="asset-tags" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('general.asset_tags') }}</span>
</a>
@ -192,7 +192,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.barcodes.index') }}" class="settings_button">
<i class="fas fa-barcode fa-4x" aria-hidden="true"></i>
<x-icon type="assets" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.barcodes') }}</span>
</a>
@ -207,7 +207,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.labels.index') }}" class="settings_button">
<i class="fas fa-tags fa-4x" aria-hidden="true"></i>
<x-icon type="labels" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.labels') }}</span>
</a>
@ -223,7 +223,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.ldap.index') }}" class="settings_button">
<i class="fas fa-sitemap fa-4x" aria-hidden="true"></i>
<x-icon type="ldap" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.ldap') }}</span>
</a>
@ -238,7 +238,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.google.index') }}" class="settings_button">
<i class="fa-brands fa-google fa-4x" aria-hidden="true"></i>
<x-icon type="google" class="fa-4x"/>
<br><br>
<span class="name">Google</span>
</a>
@ -253,7 +253,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.saml.index') }}" class="settings_button">
<i class="fas fa-sign-in-alt fa-4x" aria-hidden="true"></i>
<x-icon type="saml" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.saml') }}</span>
</a>
@ -268,7 +268,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.backups.index') }}" class="settings_button">
<i class="fas fa-file-archive fa-4x" aria-hidden="true"></i>
<x-icon type="backups" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.backups') }}</span>
</a>
@ -284,7 +284,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.logins.index') }}" class="settings_button">
<i class="fas fa-crosshairs fa-4x" aria-hidden="true"></i>
<x-icon type="logins" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.login') }}</span>
</a>
@ -299,7 +299,7 @@
<div class="box-body text-center">
<h5>
<a href="{{ route('settings.oauth.index') }}" class="settings_button">
<i class="fas fa-user-secret fa-4x" aria-hidden="true"></i>
<x-icon type="oauth" class="fa-4x"/>
<br><br>
<span class="name">{{ trans('admin/settings/general.oauth') }}</span>
</a>

View file

@ -27,11 +27,11 @@
<div class="row">
<div class="col-sm-10 col-sm-offset-1 col-md-10">
<div class="panel box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fas fa-tags"></i> {{ trans('admin/settings/general.labels') }}
<x-icon type="labels"/>
{{ trans('admin/settings/general.labels') }}
</h2>
</div>
<div class="box-body">

View file

@ -60,7 +60,8 @@
<div class="panel box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fas fa-sitemap"></i> {{ trans('admin/settings/general.ldap_ad') }}
<x-icon type="ldap"/>
{{ trans('admin/settings/general.ldap_ad') }}
</h4>
</div>
<div class="box-body">

View file

@ -18,7 +18,9 @@
<div class="col-md-8 col-md-offset-2">
<div class="box box-solid box-danger">
<div class="box-header with-border">
<h2 class="box-title"><i class="fas fa-exclamation-triangle"></i> {{ trans('admin/settings/general.purge') }}</h2>
<h2 class="box-title">
<x-icon type="warning"/>
{{ trans('admin/settings/general.purge') }}</h2>
</div>
{{ Form::open(['method' => 'POST', 'files' => false, 'autocomplete' => 'off', 'class' => 'form-horizontal', 'role' => 'form' ]) }}
<!-- CSRF Token -->

View file

@ -38,7 +38,8 @@
<div class="panel box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fas fa-sign-in-alt"></i> {{ trans('admin/settings/general.saml') }}
<x-icon type="saml"/>
{{ trans('admin/settings/general.saml') }}
</h2>
</div>
<div class="box-body">

View file

@ -27,7 +27,8 @@
<div class="panel box box-default">
<div class="box-header with-border">
<h2 class="box-title">
<i class="fas fa-lock" aria-hidden="true"></i> {{ trans('admin/settings/general.security') }}
<x-icon type="locked"/>
{{ trans('admin/settings/general.security') }}
</h2>
</div>
<div class="box-body">