From f686e86afbf25aed8d09cf42b6ba8f3d6eb6287a Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 22 Apr 2025 23:50:21 +0100 Subject: [PATCH] Refactored setting page Signed-off-by: snipe --- resources/views/settings/general.blade.php | 744 +++++++++++---------- 1 file changed, 385 insertions(+), 359 deletions(-) diff --git a/resources/views/settings/general.blade.php b/resources/views/settings/general.blade.php index fa1e3e383..879a2e45d 100644 --- a/resources/views/settings/general.blade.php +++ b/resources/views/settings/general.blade.php @@ -14,7 +14,27 @@ {{-- Page content --}} @section('content') + @@ -36,403 +56,409 @@
-
+
- -
-
- {{ trans('admin/settings/general.full_multiple_companies_support_text') }} -
-
- - {!! $errors->first('full_multiple_companies_support', '') !!} -

- {{ trans('admin/settings/general.full_multiple_companies_support_help_text') }} -

-
-
- +
+ Scoping + +
+
+ + {!! $errors->first('full_multiple_companies_support', '') !!} +

+ {{ trans('admin/settings/general.full_multiple_companies_support_help_text') }} +

+
+
+ - -
-
- {{ Form::label('scope_locations_fmcs', trans('admin/settings/general.scope_locations_fmcs_support_text')) }} -
-
- - {!! $errors->first('scope_locations_fmcs', '') !!} -

- {{ trans('admin/settings/general.scope_locations_fmcs_support_help_text') }} -

-
-
- - - -
-
- {{ trans('admin/settings/general.require_accept_signature') }} -
-
- - {!! $errors->first('require_accept_signature', '') !!} -

{{ trans('admin/settings/general.require_accept_signature_help_text') }}

-
-
- + +
+
+ - -
-
- -
-
- - {{ trans('general.email_domain_help') }} - {!! $errors->first('email_domain', '') !!} -
-
+ {!! $errors->first('scope_locations_fmcs', '') !!} +

+ {{ trans('admin/settings/general.scope_locations_fmcs_support_help_text') }} + {{ ($total_locations > 0) ? trans('admin/settings/general.scope_locations_fmcs_support_disabled_text', ['count' => $total_locations]) : '' }} + +

+
+
+ - -
-
- -
-
- {!! Form::email_format('email_format', old('email_format', $setting->email_format), 'select2') !!} - {!! $errors->first('email_format', '') !!} -
-
+
- -
-
- -
-
- {!! Form::username_format('username_format', old('username_format', $setting->username_format), 'select2') !!} - {!! $errors->first('username_format', '') !!} +
+ Formats -

- {{ trans('admin/settings/general.username_format_help') }} -

-
-
- - -
-
- -
-
- - -
-
- - -
-
- {{ trans('admin/settings/general.show_images_in_email') }} -
-
- - -
-
- - - -
-
- {{ trans('admin/settings/general.unique_serial') }} -
-
- - -

- {{ trans('admin/settings/general.unique_serial_help_text') }} -

-
-
- - -
-
- {{ trans('admin/settings/general.shortcuts_enabled') }} -
-
- - {!! $errors->first('shortcuts_enabled', '') !!} -

{!!trans('admin/settings/general.shortcuts_help_text') !!}

-
-
- - - -
-
- -
-
- - {!! $errors->first('per_page', '') !!} -
-
- - -
-
- -
-
- -

{{ trans('admin/settings/general.thumbnail_max_h_help') }}

- {!! $errors->first('thumbnail_max_h', '') !!} -
-
- - -
-
- -
-
- - {!! $errors->first('default_eula_text', '') !!} -

{{ trans('admin/settings/general.default_eula_help_text') }}

-

{!! trans('admin/settings/general.eula_markdown') !!}

-
-
- - -
-
- -
-
- -

{{ trans('admin/settings/general.require_checkinout_notes_help_text') }}

-
-
- - - - -
-
- -
-
- @if (config('app.lock_passwords')) - - - {!! $errors->first('login_note', '') !!} -

{{ trans('general.feature_disabled') }}

- @else - - {!! $errors->first('login_note', '') !!} - @endif -

{!! trans('admin/settings/general.login_note_help') !!}

-
-
- - -
-
- -
- -
-
-
-
-
-

{{ trans('admin/settings/general.mail_test_help', array('replyto' => config('mail.reply_to.address'))) }}

+ +
+
+ +
+
+ + {{ trans('general.email_domain_help') }} + {!! $errors->first('email_domain', '') !!}
-
- -
-
- + +
+
+ +
+
+ {!! Form::email_format('email_format', old('email_format', $setting->email_format), 'select2') !!} + {!! $errors->first('email_format', '') !!} +
-
- @if (config('app.lock_passwords')) - - {!! $errors->first('dashboard_message', '') !!} -

{{ trans('general.feature_disabled') }}

- @else - - {!! $errors->first('dashboard_message', '') !!} - @endif -

- {{ trans('admin/settings/general.dashboard_message_help') }} - {!! trans('general.github_markdown') !!}

+ +
+
+ +
+
+ {!! Form::username_format('username_format', old('username_format', $setting->username_format), 'select2') !!} + {!! $errors->first('username_format', '') !!} + +

+ {{ trans('admin/settings/general.username_format_help') }} +

+
-
+ - -
-
- +
+ User Profiles + +
+
+ + +
-
+
+
+ EULA & Acceptance Preferences + + +
+
+ + {!! $errors->first('require_accept_signature', '') !!} +

{{ trans('admin/settings/general.require_accept_signature_help_text') }}

+
+
+ + + +
+
+ +
+
+ + {!! $errors->first('default_eula_text', '') !!} +

{{ trans('admin/settings/general.default_eula_help_text') }}

+

{!! trans('admin/settings/general.eula_markdown') !!}

+
+
+ +
+ +
+ Misc Display Preferences + + +
+
+ +
+
+ +

{{ trans('admin/settings/general.thumbnail_max_h_help') }}

+ {!! $errors->first('thumbnail_max_h', '') !!} +
+
+ + +
+
+ {{ trans('admin/settings/general.show_in_model_list') }} +
+
+ + + + +
+
+ + + +
+
+ + {!! $errors->first('shortcuts_enabled', '') !!} +

{!!trans('admin/settings/general.shortcuts_help_text') !!}

+
+
+ + + +
+
{!! $errors->first('show_archived_in_list', '') !!} -
-
- - -
-
- +
-
- -

{{ trans('admin/settings/general.show_assigned_assets_help') }}

- {!! $errors->first('show_assigned_assets', ':message') !!} + + +
+
+ +

{{ trans('admin/settings/general.show_assigned_assets_help') }}

+ {!! $errors->first('show_assigned_assets', ':message') !!} +
-
- - -
-
- {{ trans('admin/settings/general.show_in_model_list') }} -
-
- - - - -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - - -
-
- -
-
- @if (config('app.lock_passwords')) - - @else - - - @endif +
- {{ trans('admin/settings/general.privacy_policy_link_help') }} - {!! $errors->first('privacy_policy_link', '') !!} +
- @if (config('app.lock_passwords')===true) -

{{ trans('general.feature_disabled') }}

- @endif + {{ trans('general.email') }} + + +
+
+ +
+ +
+
+
+
+
+

{{ trans('admin/settings/general.mail_test_help', array('replyto' => config('mail.reply_to.address'))) }}

+
+
-
-
+ +
+
+ +
+
+ + @if (config('app.lock_passwords')) + + @else + + + @endif + + {{ trans('admin/settings/general.privacy_policy_link_help') }} + {!! $errors->first('privacy_policy_link', '') !!} + + @if (config('app.lock_passwords')===true) +

{{ trans('general.feature_disabled') }}

+ @endif + +
+
+ + + +
+
+ + +
+
+ + + + +
+ Checkin Preferences + + +
+ +
+ +

{{ trans('admin/settings/general.require_checkinout_notes_help_text') }}

+
+
+ +
+ + + +
+ Login & Dashboard Preferences + + +
+
+ +
+
+ @if (config('app.lock_passwords')) + + + {!! $errors->first('login_note', '') !!} +

{{ trans('general.feature_disabled') }}

+ @else + + {!! $errors->first('login_note', '') !!} + @endif +

{!! trans('admin/settings/general.login_note_help') !!}

+
+
+ + +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ @if (config('app.lock_passwords')) + + + {!! $errors->first('dashboard_message', '') !!} +

{{ trans('general.feature_disabled') }}

+ @else + + {!! $errors->first('dashboard_message', '') !!} + @endif +

+ {{ trans('admin/settings/general.dashboard_message_help') }} + {!! trans('general.github_markdown') !!}

+
+
+
+ + +
+ Miscellaneous + + +
+
+ +
+
+ +
+
+ + + +
+
+ + +

+ {{ trans('admin/settings/general.unique_serial_help_text') }} +

+
+
+ +
+ + +