Skip to content

Commit d19681d

Browse files
committed
Merge remote-tracking branch 'origin/develop'
Signed-off-by: snipe <[email protected]>
2 parents bf2299d + ddd4065 commit d19681d

File tree

11 files changed

+413
-369
lines changed

11 files changed

+413
-369
lines changed

app/Console/Commands/TestLocationsFMCS.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TestLocationsFMCS extends Command
2727
public function handle()
2828
{
2929
$this->info('This script checks for company ID inconsistencies if Full Multiple Company Support with scoped locations will be used.');
30-
$this->info('This could take few moments if have a very large dataset.');
30+
$this->info('This could take a few moments if have a very large dataset.');
3131
$this->newLine();
3232

3333
// if parameter location_id is set, only test this location

app/Http/Controllers/SettingsController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ public function index() : View
290290
public function getSettings() : View
291291
{
292292
$setting = Setting::getSettings();
293-
294-
return view('settings/general', compact('setting'));
293+
$total_locations = count(Helper::test_locations_fmcs(false));
294+
return view('settings/general', compact('setting'))->with('total_locations', $total_locations);
295295
}
296296

297297
/**

public/css/build/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/build/overrides.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/css/dist/all.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/mix-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"/js/build/app.js": "/js/build/app.js?id=f69d05a80165b5bbf6b0f4691edfd24e",
33
"/css/dist/skins/skin-black-dark.css": "/css/dist/skins/skin-black-dark.css?id=d34ae2483cbe2c77478c45f4006eba55",
44
"/css/dist/skins/_all-skins.css": "/css/dist/skins/_all-skins.css?id=6bf62cdec2477f3176df196fd0c99662",
5-
"/css/build/overrides.css": "/css/build/overrides.css?id=fcf94ab9bcac240ccc403f10e0c04d42",
6-
"/css/build/app.css": "/css/build/app.css?id=c7f113795ddc22294edd5b04243adcf0",
5+
"/css/build/overrides.css": "/css/build/overrides.css?id=569dc248b0dc3dbb01610b034300f2f2",
6+
"/css/build/app.css": "/css/build/app.css?id=ed8cabf3efad21ed89d18d6582d2885f",
77
"/css/build/AdminLTE.css": "/css/build/AdminLTE.css?id=a67bd93bed52e6a29967fe472de66d6c",
88
"/css/dist/skins/skin-yellow.css": "/css/dist/skins/skin-yellow.css?id=fc7adb943668ac69fe4b646625a7571f",
99
"/css/dist/skins/skin-yellow-dark.css": "/css/dist/skins/skin-yellow-dark.css?id=53edc92eb2d272744bc7404ec259930e",
@@ -19,7 +19,7 @@
1919
"/css/dist/skins/skin-blue.css": "/css/dist/skins/skin-blue.css?id=091d9625203be910caca3e229afe438f",
2020
"/css/dist/skins/skin-blue-dark.css": "/css/dist/skins/skin-blue-dark.css?id=18787b3f00a3be7be38ee4e26cbd2a07",
2121
"/css/dist/skins/skin-black.css": "/css/dist/skins/skin-black.css?id=1f33ca3d860461c1127ec465ab3ebb6b",
22-
"/css/dist/all.css": "/css/dist/all.css?id=a943cce39a70d6fbe8722ecf501780ae",
22+
"/css/dist/all.css": "/css/dist/all.css?id=2b91d3aa2262b202a452de9cc7f1ab9b",
2323
"/css/dist/signature-pad.css": "/css/dist/signature-pad.css?id=6a89d3cd901305e66ced1cf5f13147f7",
2424
"/css/dist/signature-pad.min.css": "/css/dist/signature-pad.min.css?id=6a89d3cd901305e66ced1cf5f13147f7",
2525
"/js/select2/i18n/af.js": "/js/select2/i18n/af.js?id=4f6fcd73488ce79fae1b7a90aceaecde",

resources/assets/less/overrides.less

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,3 +1187,21 @@ code.single-line {
11871187
p.monospace, span.monospace {
11881188
font-family: monospace, monospace;
11891189
}
1190+
1191+
legend.highlight {
1192+
background: repeating-linear-gradient(
1193+
45deg,
1194+
#222d32,
1195+
#222d32 10px,
1196+
#444 10px,
1197+
#444 11px
1198+
);
1199+
1200+
color: #fff;
1201+
font-size: 18px;
1202+
padding: 6px;
1203+
}
1204+
1205+
fieldset.bottom-padded {
1206+
padding-bottom: 20px;
1207+
}

resources/lang/en-US/admin/settings/general.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@
151151
'full_multiple_companies_support_help_text' => 'Restricting users (including admins) assigned to companies to their company\'s assets.',
152152
'full_multiple_companies_support_text' => 'Full Multiple Companies Support',
153153
'scope_locations_fmcs_support_text' => 'Scope Locations with Full Multiple Companies Support',
154-
'scope_locations_fmcs_support_help_text' => 'In previous versions, locations were not restricted to a particular company. If this setting is disabled, this preserves backward compatibility with older versions and locations can be used across multiple companies. If this setting is enabled, locations are restricted to their selected company.',
154+
'scope_locations_fmcs_support_help_text' => 'Restrict locations to their selected company.',
155+
'scope_locations_fmcs_support_disabled_text' => 'This option is disabled because you have conflicting locations set for :count or more items.',
155156
'show_in_model_list' => 'Show in Model Dropdowns',
156157
'optional' => 'optional',
157158
'per_page' => 'Results Per Page',
@@ -451,6 +452,19 @@
451452
],
452453

453454

455+
'legends' => [
456+
'scoping' => 'Scoping',
457+
'formats' => 'Default Formats',
458+
'profiles' => 'User Profiles',
459+
'eula' => 'EULA &amp; Acceptance Preferences',
460+
'misc_display' => 'Miscellaneous Display Options',
461+
'email' => 'Email Preferences',
462+
'checkin' => 'Checkin Preferences',
463+
'dashboard' => 'Login & Dashboard Preferences',
464+
'misc' => 'Miscellaneous',
465+
466+
],
467+
454468

455469
/* Keywords for settings overview help */
456470
'keywords' => [

resources/views/hardware/quickscan-checkin.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
if (data.status == 'success') {
148148
$('#checkedin tbody').prepend("<tr class='success'><td>" + data.payload.asset_tag + "</td><td>" + data.payload.model + "</td><td>" + data.payload.model_number + "</td><td>" + data.messages + "</td><td><i class='fas fa-check text-success'></i></td></tr>");
149149
150-
@if ($user->enable_sounds)
150+
@if ($user?->enable_sounds)
151151
var audio = new Audio('{{ config('app.url') }}/sounds/success.mp3');
152152
audio.play()
153153
@endif
@@ -172,7 +172,7 @@
172172
173173
function handlecheckinFail (data) {
174174
175-
@if ($user->enable_sounds)
175+
@if ($user?->enable_sounds)
176176
var audio = new Audio('{{ config('app.url') }}/sounds/error.mp3');
177177
audio.play()
178178
@endif

0 commit comments

Comments
 (0)