mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Added localized strings for admin/settings
This commit is contained in:
parent
6917d59185
commit
9164daf5bc
|
@ -10,7 +10,10 @@ return [
|
|||
'admin_cc_email' => 'CC Email',
|
||||
'admin_cc_email_help' => 'If you would like to send a copy of checkin/checkout emails that are sent to users to an additional email account, enter it here. Otherwise leave this field blank.',
|
||||
'is_ad' => 'This is an Active Directory server',
|
||||
'alerts' => 'Alerts',
|
||||
'alert_title' => 'Update Alert Settings',
|
||||
'alert_email' => 'Send alerts to',
|
||||
'alert_email_help' => 'Email addresses or distribution lists you want alerts to be sent to, comma separated',
|
||||
'alerts_enabled' => 'Email Alerts Enabled',
|
||||
'alert_interval' => 'Expiring Alerts Threshold (in days)',
|
||||
'alert_inv_threshold' => 'Inventory Alert Threshold',
|
||||
|
@ -25,6 +28,7 @@ return [
|
|||
'auto_increment_prefix' => 'Prefix (optional)',
|
||||
'auto_incrementing_help' => 'Enable auto-incrementing asset IDs first to set this',
|
||||
'backups' => 'Backups',
|
||||
'backups_help' => 'Download files & Data',
|
||||
'barcode_settings' => 'Barcode Settings',
|
||||
'confirm_purge' => 'Confirm Purge',
|
||||
'confirm_purge_help' => 'Enter the text "DELETE" in the box below to purge your deleted records. This action cannot be undone and will PERMANENTLY delete all soft-deleted items and users. (You should make a backup first, just to be safe.)',
|
||||
|
@ -55,12 +59,17 @@ return [
|
|||
'footer_text' => 'Additional Footer Text ',
|
||||
'footer_text_help' => 'This text will appear in the right-side footer. Links are allowed using <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>. Line breaks, headers, images, etc may result in unpredictable results.',
|
||||
'general_settings' => 'General Settings',
|
||||
'general_settings_keywords' => 'company support, signature, acceptance, email format, username format, images, per page, thumbnail, eula, tos, dashboard, privacy',
|
||||
'general_settings_help' => 'Default EULA and more',
|
||||
'generate_backup' => 'Generate Backup',
|
||||
'header_color' => 'Header Color',
|
||||
'info' => 'These settings let you customize certain aspects of your installation.',
|
||||
'label_logo' => 'Label Logo',
|
||||
'label_logo_size' => 'Square logos look best - will be displayed in the top right of each asset label. ',
|
||||
'laravel' => 'Laravel Version',
|
||||
'ldap' => 'LDAP',
|
||||
'ldap_help' => 'LDAP/Active Directory',
|
||||
'ldap_client_tls_key' => 'LDAP Client TLS Key',
|
||||
'ldap_client_tls_cert' => 'LDAP Client-Side TLS Certificate',
|
||||
'ldap_enabled' => 'LDAP enabled',
|
||||
'ldap_integration' => 'LDAP Integration',
|
||||
|
@ -93,9 +102,17 @@ return [
|
|||
'ldap_activated_flag_help' => 'This flag is used to determine whether a user can login to Snipe-IT and does not affect the ability to check items in or out to them.',
|
||||
'ldap_emp_num' => 'LDAP Employee Number',
|
||||
'ldap_email' => 'LDAP Email',
|
||||
'ldap_test' => 'Test LDAP',
|
||||
'ldap_test_sync' => 'Test LDAP Synchronization',
|
||||
'license' => 'Software License',
|
||||
'load_remote_text' => 'Remote Scripts',
|
||||
'load_remote_help_text' => 'This Snipe-IT install can load scripts from the outside world.',
|
||||
'login' => 'Login Attempts',
|
||||
'login_attempt' => 'Login Attempt',
|
||||
'login_ip' => 'IP Address',
|
||||
'login_success' => 'Success?',
|
||||
'login_user_agent' => 'User Agent',
|
||||
'login_help' => 'List of attempted logins',
|
||||
'login_note' => 'Login Note',
|
||||
'login_note_help' => 'Optionally include a few sentences on your login screen, for example to assist people who have found a lost or stolen device. This field accepts <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>',
|
||||
'login_remote_user_text' => 'Remote User login options',
|
||||
|
@ -116,16 +133,28 @@ return [
|
|||
'optional' => 'optional',
|
||||
'per_page' => 'Results Per Page',
|
||||
'php' => 'PHP Version',
|
||||
'php_info' => 'PHP Info',
|
||||
'php_overview' => 'PHP',
|
||||
'php_overview_keywords' => 'phpinfo, system, info',
|
||||
'php_overview_help' => 'PHP System info',
|
||||
'php_gd_info' => 'You must install php-gd to display QR codes, see install instructions.',
|
||||
'php_gd_warning' => 'PHP Image Processing and GD plugin is NOT installed.',
|
||||
'pwd_secure_complexity' => 'Password Complexity',
|
||||
'pwd_secure_complexity_help' => 'Select whichever password complexity rules you wish to enforce.',
|
||||
'pwd_secure_complexity_disallow_same_pwd_as_user_fields' => 'Password cannot be the same as first name, last name, email, or username',
|
||||
'pwd_secure_complexity_letters' => 'Require at least one letter',
|
||||
'pwd_secure_complexity_numbers' => 'Require at least one number',
|
||||
'pwd_secure_complexity_symbols' => 'Require at least one symbol',
|
||||
'pwd_secure_complexity_case_diff' => 'Require at least one uppercase and one lowercase',
|
||||
'pwd_secure_min' => 'Password minimum characters',
|
||||
'pwd_secure_min_help' => 'Minimum permitted value is 8',
|
||||
'pwd_secure_uncommon' => 'Prevent common passwords',
|
||||
'pwd_secure_uncommon_help' => 'This will disallow users from using common passwords from the top 10,000 passwords reported in breaches.',
|
||||
'qr_help' => 'Enable QR Codes first to set this',
|
||||
'qr_text' => 'QR Code Text',
|
||||
'saml' => 'SAML',
|
||||
'saml_title' => 'Update SAML settings',
|
||||
'saml_help' => 'SAML settings',
|
||||
'saml_enabled' => 'SAML enabled',
|
||||
'saml_integration' => 'SAML Integration',
|
||||
'saml_sp_entityid' => 'Entity ID',
|
||||
|
@ -145,6 +174,7 @@ return [
|
|||
'saml_slo_help' => 'This will cause the user to be first redirected to the IdP on logout. Leave unchecked if the IdP doesn\'t correctly support SP-initiated SAML SLO.',
|
||||
'saml_custom_settings' => 'SAML Custom Settings',
|
||||
'saml_custom_settings_help' => 'You can specify additional settings to the onelogin/php-saml library. Use at your own risk.',
|
||||
'saml_download' => 'Download Metadata',
|
||||
'setting' => 'Setting',
|
||||
'settings' => 'Settings',
|
||||
'show_alerts_in_menu' => 'Show alerts in top menu',
|
||||
|
@ -155,6 +185,9 @@ return [
|
|||
'show_images_in_email' => 'Show images in emails',
|
||||
'show_images_in_email_help' => 'Uncheck this box if your Snipe-IT installation is behind a VPN or closed network and users outside the network will not be able to load images served from this installation in their emails.',
|
||||
'site_name' => 'Site Name',
|
||||
'slack' => 'Slack',
|
||||
'slack_title' => 'Update Slack Settings',
|
||||
'slack_help' => 'Slack settings',
|
||||
'slack_botname' => 'Slack Botname',
|
||||
'slack_channel' => 'Slack Channel',
|
||||
'slack_endpoint' => 'Slack Endpoint',
|
||||
|
@ -171,6 +204,8 @@ return [
|
|||
'update' => 'Update Settings',
|
||||
'value' => 'Value',
|
||||
'brand' => 'Branding',
|
||||
'brand_keywords' => 'footer, logo, print, theme, skin, header, colors, color, css',
|
||||
'brand_help' => 'Logo, Site Name',
|
||||
'web_brand' => 'Web Branding Type',
|
||||
'about_settings_title' => 'About Settings',
|
||||
'about_settings_text' => 'These settings let you customize certain aspects of your installation.',
|
||||
|
@ -182,6 +217,7 @@ return [
|
|||
'privacy_policy' => 'Privacy Policy',
|
||||
'privacy_policy_link_help' => 'If a url is included here, a link to your privacy policy will be included in the app footer and in any emails that the system sends out, in compliance with GDPR. ',
|
||||
'purge' => 'Purge Deleted Records',
|
||||
'purge_deleted' => 'Purge Deleted ',
|
||||
'labels_display_bgutter' => 'Label bottom gutter',
|
||||
'labels_display_sgutter' => 'Label side gutter',
|
||||
'labels_fontsize' => 'Label font size',
|
||||
|
@ -227,4 +263,58 @@ return [
|
|||
'unique_serial_help_text' => 'Checking this box will enforce a uniqueness constraint on asset serials',
|
||||
'zerofill_count' => 'Length of asset tags, including zerofill',
|
||||
'username_format_help' => 'This setting will only be used by the import process if a username is not provided and we have to generate a username for you.',
|
||||
'oauth_title' => 'OAuth API Settings',
|
||||
'oauth' => 'OAuth',
|
||||
'oauth_help' => 'Oauth Endpoint Settings',
|
||||
'asset_tag_title' => 'Update Asset Tag Settings',
|
||||
'backup_upload' => 'Upload Backup',
|
||||
'backup_files_path' => '<p>Backup files on the server are stored in: <code>:path</code></p>',
|
||||
'backup_restore' => 'Restoring from Backup',
|
||||
'backup_restore_info' => ' <p>
|
||||
Use the restore button <small><span class="btn btn-xs btn-warning"><i class="text-white fas fa-retweet" aria-hidden="true"></i></span></small> to
|
||||
restore from a previous backup. (This does not currently with with S3 file storage.)</p>
|
||||
|
||||
<p>Your <strong>entire :app database and any uploaded files will be completely replaced</strong> by what is in the backup file.
|
||||
</p>
|
||||
|
||||
<p class="text-danger" style="font-weight: bold; font-size: 120%;">
|
||||
You will be logged out once your restore is complete.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Very large backups may time out on the restore attempt and may still need to be run via command line.
|
||||
</p>',
|
||||
'barcode_title' => 'Update Barcode Settings',
|
||||
'barcodes' => 'Barcodes',
|
||||
'barcodes_help_overview' => 'Barcode & QR settings',
|
||||
'barcodes_help' => 'This will attempt to delete cached barcodes. This would typically only be used if your barcode settings have changed, or if your Snipe-IT URL has changed. Barcodes will be re-generated when accessed next.',
|
||||
'barcodes_spinner' => 'Attempting to delete files...',
|
||||
'barcode_delete_cache' => 'Delete Barcode Cache',
|
||||
'branding_title' => 'Update Branding Settings',
|
||||
'general_title' => 'Update General Settings',
|
||||
'mail_test' => 'Send Test',
|
||||
'mail_test_help' => 'This will attempt to send a test mail to :replyto.',
|
||||
'filter_by_keyword' => 'Filter by setting keyword',
|
||||
'security' => 'Security',
|
||||
'security_title' => 'Update Security Settings',
|
||||
'security_keywords' => 'password, passwords, requirements, two factor, two-factor, common passwords, remote login, logout, authentication',
|
||||
'security_help' => 'Two-factor, Password Restrictions',
|
||||
'groups_keywords' => 'permissions, permission groups, authorization',
|
||||
'groups_help' => 'Account permission groups',
|
||||
'localization' => 'Localization',
|
||||
'localization_title' => 'Update Localization Settings',
|
||||
'localization_keywords' => 'localization, currency, local, locale, time zone, timezone, international, internatinalization, language, languages, translation',
|
||||
'localization_help' => 'Language, date display',
|
||||
'notifications' => 'Notifications',
|
||||
'notifications_help' => 'Email alerts, audit settings',
|
||||
'asset_tags_help' => 'Incrementing and prefixes',
|
||||
'labels' => 'Labels',
|
||||
'labels_title' => 'Update Label Settings',
|
||||
'labels_help' => 'Label sizes & settings',
|
||||
'purge' => 'Purge',
|
||||
'purge_keywords' => 'permanently delete',
|
||||
'purge_help' => 'Purge Deleted Records',
|
||||
'ldap_extension_warning' => 'It does not look like the LDAP extension is installed or enabled on this server. You can still save your settings, but you will need to enable the LDAP extension for PHP before LDAP syncing or login will work.',
|
||||
'ldap_ad' => 'LDAP/AD',
|
||||
'employee_number' => 'Employee Number',
|
||||
];
|
||||
|
|
|
@ -11,11 +11,32 @@ return [
|
|||
'file_deleted' => 'The backup file was successfully deleted. ',
|
||||
'generated' => 'A new backup file was successfully created.',
|
||||
'file_not_found' => 'That backup file could not be found on the server.',
|
||||
'restore_warning' => 'Yes, restore it. I acknowledge that this will overwrite any existing data currently in the database. This will also log out all of your existing users (including you).',
|
||||
'restore_confirm' => 'Are you sure you wish to restore your database from :filename?'
|
||||
],
|
||||
'purge' => [
|
||||
'error' => 'An error has occurred while purging. ',
|
||||
'validation_failed' => 'Your purge confirmation is incorrect. Please type the word "DELETE" in the confirmation box.',
|
||||
'success' => 'Deleted records successfully purged.',
|
||||
],
|
||||
|
||||
'mail' => [
|
||||
'sending' => 'Sending Test Email...',
|
||||
'success' => 'Mail sent!',
|
||||
'error' => 'Mail could not be sent.',
|
||||
'additional' => 'No additional error message provided. Check your mail settings and your app log.'
|
||||
],
|
||||
'ldap' => [
|
||||
'testing' => 'Testing LDAP Connection, Binding & Query ...',
|
||||
'500' => '500 Server Error. Please check your server logs for more information.',
|
||||
'error' => 'Something went wrong :(',
|
||||
'sync_success' => 'A sample of 10 users returned from the LDAP server based on your settings:',
|
||||
'testing_authentication' => 'Testing LDAP Authentication...',
|
||||
'authentication_success' => 'User authenticated against LDAP successfully!'
|
||||
],
|
||||
'slack' => [
|
||||
'sending' => 'Sending Slack test message...',
|
||||
'success_pt1' => 'Success! Check the ',
|
||||
'success_pt2' => ' channel for your test message, and be sure to click SAVE below to store your settings.',
|
||||
'500' => '500 Server Error.'
|
||||
]
|
||||
];
|
||||
|
|
6
resources/lang/en/admin/settings/table.php
Normal file
6
resources/lang/en/admin/settings/table.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'created' => 'Created',
|
||||
'size' => 'Size',
|
||||
];
|
|
@ -19,6 +19,7 @@
|
|||
'asset' => 'Asset',
|
||||
'asset_report' => 'Asset Report',
|
||||
'asset_tag' => 'Asset Tag',
|
||||
'asset_tags' => 'Asset Tags',
|
||||
'assets_available' => 'Assets available',
|
||||
'accept_assets' => 'Accept Assets :name',
|
||||
'accept_assets_menu' => 'Accept Assets',
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Update Alert Settings
|
||||
{{ trans('admin/settings/general.alert_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -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> Alerts
|
||||
<i class="fas fa-bell"></i> {{ trans('admin/settings/general.alerts') }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
@ -73,7 +73,7 @@
|
|||
{{ Form::text('alert_email', old('alert_email', $setting->alert_email), array('class' => 'form-control','placeholder' => 'admin@yourcompany.com')) }}
|
||||
{!! $errors->first('alert_email', '<span class="alert-msg" aria-hidden="true">:message</span><br>') !!}
|
||||
|
||||
<p class="help-block">Email addresses or distribution lists you want alerts to be sent to, comma separated</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.alert_email_help') }}</p>
|
||||
|
||||
|
||||
</div>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
OAuth API Settings
|
||||
{{ trans('admin/settings/general.oauth_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Update Asset Tag Settings
|
||||
{{ trans('admin/settings/general.asset_tag_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
<div class="panel box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">
|
||||
<i class="fas fa-list-ol"></i> Asset Tags
|
||||
<i class="fas fa-list-ol"></i> {{ trans('general.asset_tags') }}
|
||||
</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
|
|
@ -45,10 +45,10 @@
|
|||
class="table table-striped snipe-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-sortable="true">File</th>
|
||||
<th data-sortable="true" data-field="modified_display" data-sort-name="modified_value">Created</th>
|
||||
<th data-sortable="true">{{ trans('general.file_name') }}</th>
|
||||
<th data-sortable="true" data-field="modified_display" data-sort-name="modified_value">{{ trans('admin/settings/table.created') }}</th>
|
||||
<th data-field="modified_value" data-visible="false"></th>
|
||||
<th data-sortable="true">Size</th>
|
||||
<th data-sortable="true">{{ trans('admin/settings/table.created') }}</th>
|
||||
<th><span class="sr-only">{{ trans('general.delete') }}</span></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -67,14 +67,24 @@
|
|||
|
||||
@can('superadmin')
|
||||
<a data-html="false"
|
||||
class="btn delete-asset btn-danger btn-sm {{ (config('app.lock_passwords')) ? ' disabled': '' }}" data-toggle="modal" href="{{ route('settings.backups.destroy', $file['filename']) }}" data-content="{{ trans('admin/settings/message.backup.delete_confirm') }}" data-title="{{ trans('general.delete') }} {{ e($file['filename']) }} ?" onClick="return false;">
|
||||
class="btn delete-asset btn-danger btn-sm {{ (config('app.lock_passwords')) ? ' disabled': '' }}"
|
||||
data-toggle="modal" href="{{ route('settings.backups.destroy', $file['filename']) }}"
|
||||
data-content="{{ trans('admin/settings/message.backup.delete_confirm') }}"
|
||||
data-title="{{ trans('general.delete') }} {{ e($file['filename']) }} ?"
|
||||
onClick="return false;">
|
||||
<i class="fas fa-trash icon-white" aria-hidden="true"></i>
|
||||
<span class="sr-only">{{ trans('general.delete') }}</span>
|
||||
</a>
|
||||
|
||||
<a data-html="true" href="{{ route('settings.backups.restore', $file['filename']) }}" class="btn btn-warning btn-sm restore-asset {{ (config('app.lock_passwords')) ? ' disabled': '' }}" data-toggle="modal" data-content="Yes, restore it. I acknowledge that this will overwrite any existing data currently in the database. This will also log out all of your existing users (including you)." data-title="Are you sure you wish to restore your database from {{ e($file['filename']) }}?" onClick="return false;">
|
||||
<a data-html="true"
|
||||
href="{{ route('settings.backups.restore', $file['filename']) }}"
|
||||
class="btn btn-warning btn-sm restore-asset {{ (config('app.lock_passwords')) ? ' disabled': '' }}"
|
||||
data-toggle="modal"
|
||||
data-content="{{ trans('admin/settings/message.backup.restore_warning') }}"
|
||||
data-title="{{ trans('admin/settings/message.backup.restore_confirm', array('filename' => e($file['filename']))) }}"
|
||||
onClick="return false;">
|
||||
<i class="fas fa-retweet" aria-hidden="true"></i>
|
||||
<span class="sr-only">Restore</span>
|
||||
<span class="sr-only">{{ trans('general.restore') }}</span>
|
||||
</a>
|
||||
|
||||
@endcan
|
||||
|
@ -95,14 +105,14 @@
|
|||
<div class="box-header with-border">
|
||||
<h2 class="box-title">
|
||||
<i class="far fa-file-archive" aria-hidden="true"></i>
|
||||
Upload Backup</h2>
|
||||
{{ trans('admin/settings/general.backup_upload') }}</h2>
|
||||
<div class="box-tools pull-right">
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
|
||||
<div class="box-body">
|
||||
|
||||
<p>Backup files on the server are stored in: <code>{{ $path }}</code></p>
|
||||
{!! trans('admin/settings/general.backup_files_path', array('path' => $path)) !!}
|
||||
|
||||
@if (config('app.lock_passwords')===true)
|
||||
<p class="alert alert-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
|
||||
|
@ -139,7 +149,7 @@
|
|||
|
||||
</div>
|
||||
<div class="col-md-4 col-xs-4">
|
||||
<button class="btn btn-primary col-md-12 col-xs-12" id="uploadButton" disabled>Upload</button>
|
||||
<button class="btn btn-primary col-md-12 col-xs-12" id="uploadButton" disabled>{{ trans('button.upload') }}</button>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
|
||||
|
@ -161,26 +171,13 @@
|
|||
<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> Restoring from Backup</h2>
|
||||
<i class="fas fa-exclamation-triangle text-orange" aria-hidden="true"></i> {{ trans('admin/settings/general.backup_restore') }} </h2>
|
||||
<div class="box-tools pull-right">
|
||||
</div>
|
||||
</div><!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
|
||||
<p>
|
||||
Use the restore button <small><span class="btn btn-xs btn-warning"><i class="text-white fas fa-retweet" aria-hidden="true"></i></span></small> to
|
||||
restore from a previous backup. (This does not currently with with S3 file storage.)</p>
|
||||
|
||||
<p>Your <strong>entire {{ config('app.name') }} database and any uploaded files will be completely replaced</strong> by what's in the backup file.
|
||||
</p>
|
||||
|
||||
<p class="text-danger" style="font-weight: bold; font-size: 120%;">
|
||||
You will be logged out once your restore is complete.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Very large backups may time out on the restore attempt and may still need to be run via command line.
|
||||
</p>
|
||||
{!! trans('admin/settings/general.backup_restore_info', array('app' => config('app.name'))) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Update Barcode Settings
|
||||
{{ trans('admin/settings/general.barcode_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
<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> Barcodes
|
||||
<i class="fas fa-barcode" aria-hidden="true"></i> {{ trans('admin/settings/general.barcodes') }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
@ -119,7 +119,7 @@
|
|||
</div>
|
||||
<div class="col-md-9" id="purgebarcodesrow">
|
||||
<a class="btn btn-default btn-sm pull-left" id="purgebarcodes" style="margin-right: 10px;">
|
||||
Delete Barcode Cache</a>
|
||||
{{ trans('admin/settings/general.barcode_delete_cache') }}</a>
|
||||
<span id="purgebarcodesicon"></span>
|
||||
<span id="purgebarcodesresult"></span>
|
||||
<span id="purgebarcodesstatus"></span>
|
||||
|
@ -128,7 +128,7 @@
|
|||
<div id="purgebarcodesstatus-error" class="text-danger"></div>
|
||||
</div>
|
||||
<div class="col-md-9 col-md-offset-3">
|
||||
<p class="help-block">This will attempt to delete cached barcodes. This would typically only be used if your barcode settings have changed, or if your Snipe-IT URL has changed. Barcodes will be re-generated when accessed next.</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.barcodes_help') }}</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -164,7 +164,7 @@
|
|||
$("#purgebarcodesicon").html('');
|
||||
$("#purgebarcodesstatus").html('');
|
||||
$('#purgebarcodesstatus-error').html('');
|
||||
$("#purgebarcodesicon").html('<i class="fas fa-spinner spin"></i> Attempting to delete files...');
|
||||
$("#purgebarcodesicon").html('<i class="fas fa-spinner spin"></i> {{ trans('admin/settings/general.barcodes_spinner') }}');
|
||||
$.ajax({
|
||||
url: '{{ route('api.settings.purgebarcodes') }}',
|
||||
type: 'POST',
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Update Branding Settings
|
||||
{{ trans('admin/settings/general.branding_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
<div class="panel box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">
|
||||
<i class="fas fa-copyright"></i> Branding
|
||||
<i class="fas fa-copyright"></i> {{ trans('admin/settings/general.brand') }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Update General Settings
|
||||
{{ trans('admin/settings/general.general_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -206,7 +206,7 @@
|
|||
</div>
|
||||
<div class="col-md-9" id="mailtestrow">
|
||||
<a class="btn btn-default btn-sm pull-left" id="mailtest" style="margin-right: 10px;">
|
||||
Send Test</a>
|
||||
{{ trans('admin/settings/general.mail_test') }}</a>
|
||||
<span id="mailtesticon"></span>
|
||||
<span id="mailtestresult"></span>
|
||||
<span id="mailteststatus"></span>
|
||||
|
@ -215,7 +215,7 @@
|
|||
<div id="mailteststatus-error" class="text-danger"></div>
|
||||
</div>
|
||||
<div class="col-md-9 col-md-offset-3">
|
||||
<p class="help-block">This will attempt to send a test mail to {{ config('mail.reply_to.address') }}.</p>
|
||||
<div class="help-block"> {{ trans('admin/settings/general.mail_test_help', array('replyto' => config('mail.reply_to.address'))) }}</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -366,7 +366,7 @@
|
|||
$("#mailtesticon").html('');
|
||||
$("#mailteststatus").html('');
|
||||
$('#mailteststatus-error').html('');
|
||||
$("#mailtesticon").html('<i class="fas fa-spinner spin"></i> Sending Test Email...');
|
||||
$("#mailtesticon").html('<i class="fas fa-spinner spin"></i> {{ trans('admin/settings/message.mail.sending') }}');
|
||||
$.ajax({
|
||||
url: '{{ route('api.settings.mailtest') }}',
|
||||
type: 'POST',
|
||||
|
@ -387,7 +387,7 @@
|
|||
if (data.message) {
|
||||
$("#mailteststatus").html('<i class="fas fa-check text-success"></i> ' + data.message);
|
||||
} else {
|
||||
$("#mailteststatus").html('<i class="fas fa-check text-success"></i> Mail sent!');
|
||||
$("#mailteststatus").html('<i class="fas fa-check text-success"></i> {{ trans('admin/settings/message.mail.success') }}');
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -399,12 +399,12 @@
|
|||
$("#mailteststatus").removeClass('text-success');
|
||||
$("#mailteststatus").addClass('text-danger');
|
||||
$("#mailtesticon").html('<i class="fas fa-exclamation-triangle text-danger"></i>');
|
||||
$('#mailteststatus').html('Mail could not be sent.');
|
||||
$('#mailteststatus').html('{{ trans('admin/settings/message.mail.error') }}');
|
||||
if (data.responseJSON) {
|
||||
if (data.responseJSON.messages) {
|
||||
$('#mailteststatus-error').html('Error: ' + data.responseJSON.messages);
|
||||
} else {
|
||||
$('#mailteststatus-error').html('No additional error message provided. Check your mail settings and your app log.');
|
||||
$('#mailteststatus-error').html('{{ trans('admin/settings/message.mail.additional') }}');
|
||||
}
|
||||
} else {
|
||||
console.dir(data);
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<div class="col-md-3 col-md-offset-9 form-group">
|
||||
<form onsubmit="return false;">
|
||||
<div class="btn-group">
|
||||
<input id="searchinput" name="search" type="search" class="search form-control" placeholder="Filter by setting keyword">
|
||||
<input id="searchinput" name="search" type="search" class="search form-control" placeholder="{{ trans('admin/settings/general.filter_by_keyword') }}">
|
||||
<span id="searchclear" class="fas fa-times" aria-hidden="true"></span>
|
||||
<button type="submit" disabled style="display: none" aria-hidden="true"></button>
|
||||
</div>
|
||||
|
@ -53,11 +53,11 @@
|
|||
<a href="{{ route('settings.branding.index') }}">
|
||||
<i class="fas fa-copyright fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Branding</span>
|
||||
<span class="keywords" aria-hidden="true" style="display:none">footer, logo, print, theme, skin, header, colors, color, css</span>
|
||||
<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>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Logo, Site Name</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.brand_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -70,11 +70,11 @@
|
|||
<a href="{{ route('settings.general.index') }}">
|
||||
<i class="fas fa-wrench fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name"> General Settings</span>
|
||||
<span class="keywords" aria-hidden="true" style="display:none">company support, signature, acceptance, email format, username format, images, per page, thumbnail, eula, tos, dashboard, privacy</span>
|
||||
<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>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Default EULA and more</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.general_settings_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -87,11 +87,11 @@
|
|||
<a href="{{ route('settings.security.index') }}">
|
||||
<i class="fas fa-lock fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Security</span>
|
||||
<span class="keywords" aria-hidden="true" style="display:none">password, passwords, requirements, two factor, two-factor, common passwords, remote login, logout, authentication</span>
|
||||
<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>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Two-factor, Password Restrictions</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.security_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -103,11 +103,11 @@
|
|||
<a href="{{ route('groups.index') }}">
|
||||
<i class="fas fa-user-friends fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Groups</span>
|
||||
<span class="keywords" aria-hidden="true" style="display:none">permissions, permission groups, authorization</span>
|
||||
<span class="name">{{ trans('general.groups') }}</span>
|
||||
<span class="keywords" aria-hidden="true" style="display:none"> {{ trans('admin/settings/general.groups_keywords') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Account permission groups</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.groups_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -120,11 +120,11 @@
|
|||
<a href="{{ route('settings.localization.index') }}">
|
||||
<i class="fas fa-globe-americas fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Localization</span>
|
||||
<span class="keywords" aria-hidden="true" style="display:none">localization, currency, local, locale, time zone, timezone, international, internatinalization, language, languages, translation</span>
|
||||
<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>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Language, date display</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.localization_help') }}</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -138,11 +138,11 @@
|
|||
<a href="{{ route('settings.alerts.index') }}">
|
||||
<i class="fas fa-bell fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Notifications</span>
|
||||
<span class="name">{{ trans('admin/settings/general.notifications') }}</span>
|
||||
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Email alerts, audit settings</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.notifications_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -154,10 +154,10 @@
|
|||
<a href="{{ route('settings.slack.index') }}">
|
||||
<i class="fab fa-slack fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Slack</span>
|
||||
<span class="name">{{ trans('admin/settings/general.slack') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Slack settings</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.slack_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -169,10 +169,10 @@
|
|||
<a href="{{ route('settings.asset_tags.index') }}">
|
||||
<i class="fas fa-list-ol fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Asset Tags</span>
|
||||
<span class="name">{{ trans('general.asset_tags') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Incrementing and prefixes</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.asset_tags_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -184,10 +184,10 @@
|
|||
<a href="{{ route('settings.barcodes.index') }}">
|
||||
<i class="fas fa-barcode fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Barcodes</span>
|
||||
<span class="name">{{ trans('admin/settings/general.barcodes') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Barcode & QR settings</p>
|
||||
<p class="help-block">{!! trans('admin/settings/general.barcodes_help_overview') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -199,10 +199,10 @@
|
|||
<a href="{{ route('settings.labels.index') }}">
|
||||
<i class="fas fa-tags fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Labels</span>
|
||||
<span class="name">{{ trans('admin/settings/general.labels') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Label sizes & settings</p>
|
||||
<p class="help-block">{!! trans('admin/settings/general.labels_help') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -215,10 +215,10 @@
|
|||
<a href="{{ route('settings.ldap.index') }}">
|
||||
<i class="fas fa-sitemap fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">LDAP</span>
|
||||
<span class="name">{{ trans('admin/settings/general.ldap') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">LDAP/Active Directory</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.ldap_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -230,10 +230,10 @@
|
|||
<a href="{{ route('settings.saml.index') }}">
|
||||
<i class="fas fa-sign-in-alt fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">SAML</span>
|
||||
<span class="name">{{ trans('admin/settings/general.saml') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">SAML settings</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.saml_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -245,10 +245,10 @@
|
|||
<a href="{{ route('settings.backups.index') }}">
|
||||
<i class="fas fa-file-archive fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Backups</span>
|
||||
<span class="name">{{ trans('admin/settings/general.backups') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Download files & Data</p>
|
||||
<p class="help-block">{!! trans('admin/settings/general.backups_help') !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -261,10 +261,10 @@
|
|||
<a href="{{ route('settings.logins.index') }}">
|
||||
<i class="fas fa-crosshairs fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Login Attempts</span>
|
||||
<span class="name">{{ trans('admin/settings/general.login') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">List of attempted logins </p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.login_help') }} </p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -276,10 +276,10 @@
|
|||
<a href="{{ route('settings.oauth.index') }}">
|
||||
<i class="fas fa-user-secret fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">OAuth</span>
|
||||
<span class="name">{{ trans('admin/settings/general.oauth') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Oauth Endpoint Settings</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.oauth_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -292,11 +292,11 @@
|
|||
<a href="{{ route('settings.phpinfo.index') }}">
|
||||
<i class="fab fa-php fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">PHP</span>
|
||||
<span class="keywords" aria-hidden="true" style="display:none">phpinfo, system, info</span>
|
||||
<span class="name">{{ trans('admin/settings/general.php_overview') }}</span>
|
||||
<span class="keywords" aria-hidden="true" style="display:none">{{ trans('admin/settings/general.php_overview_keywords') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">PHP System Info</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.php_overview_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -309,11 +309,11 @@
|
|||
<a href="{{ route('settings.purge.index') }}">
|
||||
<i class="fas fa-trash fa-4x" aria-hidden="true"></i>
|
||||
<br><br>
|
||||
<span class="name">Purge</span>
|
||||
<span class="keywords" aria-hidden="true" style="display:none">permanently delete</span>
|
||||
<span class="name">{{ trans('admin/settings/general.purge') }}</span>
|
||||
<span class="keywords" aria-hidden="true" style="display:none">{{ trans('admin/settings/general.purge_keywords') }}</span>
|
||||
</a>
|
||||
</h5>
|
||||
<p class="help-block">Purge Deleted Records</p>
|
||||
<p class="help-block">{{ trans('admin/settings/general.purge_help') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Update Label Settings
|
||||
{{ trans('admin/settings/general.labels_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
<div class="panel box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">
|
||||
<i class="fas fa-tags"></i> Labels
|
||||
<i class="fas fa-tags"></i> {{ trans('admin/settings/general.labels') }}
|
||||
</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<div class="col-md-12">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-danger">
|
||||
It doesn't look like the LDAP extension is installed or enabled on this server. You can still save your settings, but you will need to enable the LDAP extension for PHP before LDAP syncing or login will work.
|
||||
{{ trans('admin/settings/general.ldap_extension_warning') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -49,7 +49,7 @@
|
|||
<div class="panel box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">
|
||||
<i class="fas fa-sitemap"></i> LDAP/AD
|
||||
<i class="fas fa-sitemap"></i> {{ trans('admin/settings/general.ldap_ad') }}
|
||||
</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
@ -447,7 +447,7 @@
|
|||
{{ Form::label('test_ldap_sync', 'Test LDAP Sync') }}
|
||||
</div>
|
||||
<div class="col-md-9" id="ldaptestrow">
|
||||
<a {{ $setting->demoMode }} class="btn btn-default btn-sm pull-left" id="ldaptest" style="margin-right: 10px;">Test LDAP Synchronization</a>
|
||||
<a {{ $setting->demoMode }} class="btn btn-default btn-sm pull-left" id="ldaptest" style="margin-right: 10px;">{{ trans('admin/settings/general.ldap_test_sync') }}</a>
|
||||
</div>
|
||||
<div class="col-md-9 col-md-offset-3">
|
||||
<br />
|
||||
|
@ -476,7 +476,7 @@
|
|||
<input type="password" name="ldaptest_password" id="ldaptest_password" class="form-control" placeholder="LDAP password">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<a class="btn btn-default btn-sm" id="ldaptestlogin" style="margin-right: 10px;">Test LDAP</a>
|
||||
<a class="btn btn-default btn-sm" id="ldaptestlogin" style="margin-right: 10px;">{{ trans('admin/settings/general.ldap_test') }}</a>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -562,7 +562,7 @@
|
|||
$("#ldaptest").click(function () {
|
||||
$("#ldapad_test_results").removeClass('hidden text-success text-danger');
|
||||
$("#ldapad_test_results").html('');
|
||||
$("#ldapad_test_results").html('<i class="fas fa-spinner spin"></i> Testing LDAP Connection, Binding & Query ...');
|
||||
$("#ldapad_test_results").html('<i class="fas fa-spinner spin"></i> {{ trans('admin/settings/message.ldap.testing') }}');
|
||||
$.ajax({
|
||||
url: '{{ route('api.settings.ldaptest') }}',
|
||||
type: 'GET',
|
||||
|
@ -586,7 +586,7 @@
|
|||
$("#ldapad_test_results").addClass('text-danger');
|
||||
let errorIcon = '<i class="fas fa-exclamation-triangle text-danger"></i>' + ' ';
|
||||
if (data.status == 500) {
|
||||
$('#ldapad_test_results').html(errorIcon + '500 Server Error. Please check your server logs for more information.');
|
||||
$('#ldapad_test_results').html(errorIcon + '{{ trans('admin/settings/message.ldap.500') }}');
|
||||
} else if (data.status == 400) {
|
||||
let errorMessage = '';
|
||||
if( typeof data.responseJSON.user_sync !== 'undefined') {
|
||||
|
@ -597,7 +597,7 @@
|
|||
}
|
||||
$('#ldapad_test_results').html(errorIcon + errorMessage);
|
||||
} else {
|
||||
$('#ldapad_test_results').html('Something went wrong :( ');
|
||||
$('#ldapad_test_results').html('{{ trans('admin/settings/message.ldap.error') }}');
|
||||
// $('#ldapad_test_results').html(errorIcon + data.responseText.message);
|
||||
}
|
||||
}
|
||||
|
@ -614,7 +614,7 @@
|
|||
html += '<li class="text-success"><i class="fas fa-check" aria-hidden="true"></i> ' + results.login.message + ' </li>'
|
||||
html += '<li class="text-success"><i class="fas fa-check" aria-hidden="true"></i> ' + results.bind.message + ' </li>'
|
||||
html += '</ul>'
|
||||
html += '<div>A sample of 10 users returned from the LDAP server based on your settings:</div>'
|
||||
html += '<div>{{ trans('admin/settings/message.ldap.sync_success') }}</div>'
|
||||
html += '<table class="table table-bordered table-condensed" style="background-color: #fff">'
|
||||
html += buildLdapResultsTableHeader()
|
||||
html += buildLdapResultsTableBody(results.user_sync.users)
|
||||
|
@ -624,7 +624,13 @@
|
|||
|
||||
function buildLdapResultsTableHeader(user)
|
||||
{
|
||||
var keys = ['Employee Number', 'Username', 'First Name', 'Last Name','Email']
|
||||
var keys = [
|
||||
'{{ trans('admin/settings/general.employee_number') }}',
|
||||
'{{ trans('mail.username') }}',
|
||||
'{{ trans('general.first_name') }}',
|
||||
'{{ trans('general.last_name') }}',
|
||||
'{{ trans('general.email') }}'
|
||||
]
|
||||
let header = '<thead><tr>'
|
||||
for (var i in keys) {
|
||||
header += '<th>' + keys[i] + '</th>'
|
||||
|
@ -648,7 +654,7 @@
|
|||
$("#ldaptestloginrow").removeClass('text-danger');
|
||||
$("#ldaptestloginstatus").removeClass('text-danger');
|
||||
$("#ldaptestloginstatus").html('');
|
||||
$("#ldaptestloginicon").html('<i class="fas fa-spinner spin"></i> Testing LDAP Authentication...');
|
||||
$("#ldaptestloginicon").html('<i class="fas fa-spinner spin"></i> {{ trans('admin/settings/message.ldap.testing_authentication') }}');
|
||||
$.ajax({
|
||||
url: '{{ route('api.settings.ldaptestlogin') }}',
|
||||
type: 'POST',
|
||||
|
@ -667,7 +673,7 @@
|
|||
$("#ldaptestloginicon").html('');
|
||||
$("#ldaptestloginrow").addClass('text-success');
|
||||
$("#ldaptestloginstatus").addClass('text-success');
|
||||
$("#ldaptestloginstatus").html('<i class="fas fa-check text-success"></i> User authenticated against LDAP successfully!');
|
||||
$("#ldaptestloginstatus").html('<i class="fas fa-check text-success"></i> {{ trans('admin/settings/message.ldap.authentication_success') }}');
|
||||
},
|
||||
|
||||
error: function (data) {
|
||||
|
@ -685,7 +691,7 @@
|
|||
$("#ldaptestloginicon").html('<i class="fas fa-exclamation-triangle text-danger"></i>');
|
||||
|
||||
if (data.status == 500) {
|
||||
$('#ldaptestloginstatus').html('500 Server Error');
|
||||
$('#ldaptestloginstatus').html('{{ trans('admin/settings/message.ldap.500') }}');
|
||||
} else if (data.status == 400) {
|
||||
|
||||
if (typeof errors !='string') {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Update Localization Settings
|
||||
{{ trans('admin/settings/general.localization_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
<div class="panel box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">
|
||||
<i class="fas fa-globe-americas" aria-hidden="true"></i> Localization
|
||||
<i class="fas fa-globe-americas" aria-hidden="true"></i> {{ trans('admin/settings/general.localization') }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
|
|
@ -34,11 +34,11 @@
|
|||
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-sm-2" data-field="username" data-visible="true" data-sortable="true">Username</th>
|
||||
<th class="col-sm-2" data-field="created_at" data-visible="true" data-sortable="true" data-formatter="dateDisplayFormatter">Login Attempt</th>
|
||||
<th class="col-sm-2" data-field="user_agent" data-visible="true" data-sortable="true">User Agent</th>
|
||||
<th class="col-sm-2" data-field="remote_ip" data-visible="true" data-sortable="true">IP</th>
|
||||
<th class="col-sm-2" data-field="successful" data-visible="true" data-formatter="trueFalseFormatter" data-sortable="true">Success</th>
|
||||
<th class="col-sm-2" data-field="username" data-visible="true" data-sortable="true">{{ trans('mail.username') }}</th>
|
||||
<th class="col-sm-2" data-field="created_at" data-visible="true" data-sortable="true" data-formatter="dateDisplayFormatter">{{ trans('admin/settings/general.login_attempt') }}</th>
|
||||
<th class="col-sm-2" data-field="user_agent" data-visible="true" data-sortable="true">{{ trans('admin/settings/general.login_user_agent') }}</th>
|
||||
<th class="col-sm-2" data-field="remote_ip" data-visible="true" data-sortable="true">{{ trans('admin/settings/general.login_ip') }}</th>
|
||||
<th class="col-sm-2" data-field="successful" data-visible="true" data-formatter="trueFalseFormatter" data-sortable="true">{{ trans('admin/settings/general.login_success') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
PHP Info
|
||||
{{ trans('admin/settings/general.php_info') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
|||
<div class="col-md-12">
|
||||
<div class="box box-default">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">PHP Info</h2>
|
||||
<h2 class="box-title">{{ trans('admin/settings/general.php_info') }}</h2>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Purge Deleted
|
||||
{{ trans('admin/settings/general.purge_deleted') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Update SAML Settings
|
||||
{{ trans('admin/settings/general.saml_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
|||
<div class="panel box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">
|
||||
<i class="fas fa-sign-in-alt"></i> SAML
|
||||
<i class="fas fa-sign-in-alt"></i> {{ trans('admin/settings/general.saml') }}
|
||||
</h4>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
@ -88,7 +88,7 @@
|
|||
{{ Form::text('saml_sp_metadata_url', route('saml.metadata'), ['class' => 'form-control', 'readonly']) }}
|
||||
<br>
|
||||
<p class="help-block">
|
||||
<a href="{{ route('saml.metadata') }}" target="_blank" class="btn btn-default" style="margin-right: 5px;">Download Metadata</a>
|
||||
<a href="{{ route('saml.metadata') }}" target="_blank" class="btn btn-default" style="margin-right: 5px;">{{ trans('admin/settings/general.saml_download') }}</a>
|
||||
</p>
|
||||
@endif
|
||||
{!! $errors->first('saml_enabled', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Update Security Settings
|
||||
{{ trans('admin/settings/general.security_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
|||
<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> Security
|
||||
<i class="fas fa-lock" aria-hidden="true"></i> {{ trans('admin/settings/general.security') }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
@ -100,20 +100,20 @@
|
|||
<div class="col-md-9">
|
||||
|
||||
{{ Form::checkbox("pwd_secure_complexity['disallow_same_pwd_as_user_fields']", 'disallow_same_pwd_as_user_fields', old('disallow_same_pwd_as_user_fields', strpos($setting->pwd_secure_complexity, 'disallow_same_pwd_as_user_fields')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }}
|
||||
Password cannot be the same as first name, last name, email, or username<br>
|
||||
{{ trans('admin/settings/general.pwd_secure_complexity_disallow_same_pwd_as_user_fields') }}<br>
|
||||
|
||||
|
||||
{{ Form::checkbox("pwd_secure_complexity['letters']", 'letters', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'letters')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }}
|
||||
Require at least one letter <br>
|
||||
{{ trans('admin/settings/general.pwd_secure_complexity_letters') }}<br>
|
||||
|
||||
{{ Form::checkbox("pwd_secure_complexity['numbers']", 'numbers', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'numbers')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }}
|
||||
Require at least one number<br>
|
||||
{{ trans('admin/settings/general.pwd_secure_complexity_numbers') }}<br>
|
||||
|
||||
{{ Form::checkbox("pwd_secure_complexity['symbols']", 'symbols', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'symbols')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }}
|
||||
Require at least one symbol<br>
|
||||
{{ trans('admin/settings/general.pwd_secure_complexity_symbols') }}<br>
|
||||
|
||||
{{ Form::checkbox("pwd_secure_complexity['case_diff']", 'case_diff', old('pwd_secure_uncommon', strpos($setting->pwd_secure_complexity, 'case_diff')!==false), array('class' => 'minimal', 'aria-label'=>'pwd_secure_complexity')) }}
|
||||
Require at least one uppercase and one lowercase
|
||||
{{ trans('admin/settings/general.pwd_secure_complexity_case_diff') }}
|
||||
|
||||
<p class="help-block">
|
||||
{{ trans('admin/settings/general.pwd_secure_complexity_help') }}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
{{-- Page title --}}
|
||||
@section('title')
|
||||
Update Slack Settings
|
||||
{{ trans('admin/settings/general.slack_title') }}
|
||||
@parent
|
||||
@stop
|
||||
|
||||
|
@ -32,7 +32,7 @@
|
|||
<div class="panel box box-default">
|
||||
<div class="box-header with-border">
|
||||
<h2 class="box-title">
|
||||
<i class="fab fa-slack"></i> Slack
|
||||
<i class="fab fa-slack"></i> {{ trans('admin/settings/general.slack') }}
|
||||
</h2>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
|
@ -165,7 +165,7 @@
|
|||
$("#slacktestrow").removeClass('text-danger');
|
||||
$("#slackteststatus").removeClass('text-danger');
|
||||
$("#slackteststatus").html('');
|
||||
$("#slacktesticon").html('<i class="fas fa-spinner spin"></i> Sending Slack test message...');
|
||||
$("#slacktesticon").html('<i class="fas fa-spinner spin"></i> {{ trans('admin/settings/message.slack.sending') }}');
|
||||
$.ajax({
|
||||
url: '{{ route('api.settings.slacktest') }}',
|
||||
type: 'POST',
|
||||
|
@ -187,7 +187,8 @@
|
|||
$("#slacktesticon").html('');
|
||||
$("#slacktestrow").addClass('text-success');
|
||||
$("#slackteststatus").addClass('text-success');
|
||||
$("#slackteststatus").html('<i class="fas fa-check text-success"></i> Success! Check the ' + $('#slack_channel').val() + ' channel for your test message, and be sure to click SAVE below to store your settings.');
|
||||
//TODO: This is a bit hacky...Might need some cleanup
|
||||
$("#slackteststatus").html('<i class="fas fa-check text-success"></i> {{ trans('admin/settings/message.slack.success_pt1') }} ' + $('#slack_channel').val() + '{{ trans('admin/settings/message.slack.success_pt2') }}');
|
||||
},
|
||||
|
||||
error: function (data) {
|
||||
|
@ -207,7 +208,7 @@
|
|||
$("#slacktesticon").html('<i class="fas fa-exclamation-triangle text-danger"></i>');
|
||||
|
||||
if (data.status == 500) {
|
||||
$('#slackteststatus').html('500 Server Error');
|
||||
$('#slackteststatus').html('{{ trans('admin/settings/message.slack.500') }}');
|
||||
} else if (data.status == 400) {
|
||||
|
||||
if (typeof errors != 'string') {
|
||||
|
|
Loading…
Reference in a new issue