Added notes for FMCS scoping
This commit is contained in:
@@ -580,6 +580,10 @@ return [
|
||||
'system_default' => 'Use System Settings',
|
||||
'system_default_help' => 'This will reset your light/dark mode preferences to use the defaults set in your computer operating system preferences.',
|
||||
'theme' => 'Theme',
|
||||
'fmcs_select_note' => 'Full Multiple Company Support is enabled. Selections from other companies may not appear in this list.',
|
||||
'fmcs_location_select_note' => 'Full Multiple Company Support with location scoping is enabled. Only locations belonging to your company will appear in this list.',
|
||||
'fmcs_company_select_note' => 'Full Multiple Company Support is enabled. You can only assign companies you belong to.',
|
||||
'fmcs_company_select_superadmin_note' => 'Full Multiple Company Support is enabled. The company assigned here may affect visibility for non-superadmin users.',
|
||||
'error_user_company' => 'Checkout target company and asset company do not match',
|
||||
'error_user_company_multiple' => 'One or more of the checkout target company and asset company do not match',
|
||||
'error_user_company_accept_view' => 'An Asset assigned to you belongs to a different company so you can\'t accept nor deny it, please check with your manager',
|
||||
|
||||
@@ -48,5 +48,18 @@
|
||||
</div>
|
||||
@endunless
|
||||
|
||||
@if ($snipeSettings->full_multiple_companies_support == '1')
|
||||
@cannot('superadmin')
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_company_select_note') }}</p>
|
||||
</div>
|
||||
@endcannot
|
||||
@can('superadmin')
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_company_select_superadmin_note') }}</p>
|
||||
</div>
|
||||
@endcan
|
||||
@endif
|
||||
|
||||
{!! $errors->first($name, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}
|
||||
</div>
|
||||
|
||||
@@ -15,6 +15,14 @@
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
@if ($snipeSettings->full_multiple_companies_support == '1')
|
||||
@cannot('superadmin')
|
||||
<div class="col-md-7 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_select_note') }}</p>
|
||||
</div>
|
||||
@endcannot
|
||||
@endif
|
||||
|
||||
{!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg"><i class="fas fa-times"></i> :message</span></div>') !!}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -37,6 +37,14 @@
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
@if ($snipeSettings->full_multiple_companies_support == '1')
|
||||
@cannot('superadmin')
|
||||
<div class="col-md-7 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_select_note') }}</p>
|
||||
</div>
|
||||
@endcannot
|
||||
@endif
|
||||
|
||||
{!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -23,5 +23,18 @@
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
@if ($snipeSettings->full_multiple_companies_support == '1')
|
||||
@cannot('superadmin')
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_company_select_note') }}</p>
|
||||
</div>
|
||||
@endcannot
|
||||
@can('superadmin')
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_company_select_superadmin_note') }}</p>
|
||||
</div>
|
||||
@endcan
|
||||
@endif
|
||||
|
||||
{!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}
|
||||
</div>
|
||||
|
||||
@@ -15,6 +15,14 @@
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
@if ($snipeSettings->full_multiple_companies_support == '1')
|
||||
@cannot('superadmin')
|
||||
<div class="col-md-7 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_select_note') }}</p>
|
||||
</div>
|
||||
@endcannot
|
||||
@endif
|
||||
|
||||
{!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg"><i class="fas fa-times"></i> :message</span></div>') !!}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -15,6 +15,14 @@
|
||||
@endif
|
||||
</select>
|
||||
</div>
|
||||
@if ($snipeSettings->full_multiple_companies_support == '1')
|
||||
@cannot('superadmin')
|
||||
<div class="col-md-7 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_select_note') }}</p>
|
||||
</div>
|
||||
@endcannot
|
||||
@endif
|
||||
|
||||
{!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg"><i class="fas fa-times"></i> :message</span></div>') !!}
|
||||
|
||||
</div>
|
||||
|
||||
@@ -16,6 +16,14 @@
|
||||
|
||||
{!! $errors->first('location_id', '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}
|
||||
|
||||
@if ($snipeSettings->full_multiple_companies_support == '1' && $snipeSettings->scope_locations_fmcs == '1')
|
||||
@cannot('superadmin')
|
||||
<div class="col-md-8 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_location_select_note') }}</p>
|
||||
</div>
|
||||
@endcannot
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -29,6 +29,14 @@
|
||||
|
||||
{!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}
|
||||
|
||||
@if ($snipeSettings->full_multiple_companies_support == '1' && $snipeSettings->scope_locations_fmcs == '1')
|
||||
@cannot('superadmin')
|
||||
<div class="col-md-7 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_location_select_note') }}</p>
|
||||
</div>
|
||||
@endcannot
|
||||
@endif
|
||||
|
||||
@if (isset($help_text))
|
||||
<div class="col-md-7 col-sm-11 col-md-offset-3">
|
||||
<p class="help-block">{{ $help_text }}</p>
|
||||
|
||||
@@ -22,6 +22,14 @@
|
||||
@endcan
|
||||
</div>
|
||||
|
||||
@if ($snipeSettings->full_multiple_companies_support == '1')
|
||||
@cannot('superadmin')
|
||||
<div class="col-md-7 col-md-offset-3">
|
||||
<p class="help-block"><x-icon type="tip" /> {{ trans('general.fmcs_select_note') }}</p>
|
||||
</div>
|
||||
@endcannot
|
||||
@endif
|
||||
|
||||
{!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span></div>') !!}
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user