mirror of
https://github.com/snipe/snipe-it.git
synced 2026-08-18 11:15:42 +00:00
29 lines
1.7 KiB
PHP
29 lines
1.7 KiB
PHP
<div>
|
|
<label class="form-control{{ (!$is_tested || count($mismatched) > 0 ) ? ' form-control--disabled' : '' }}">
|
|
<input type="checkbox" name="scope_locations_fmcs" value="1"
|
|
@checked(old('scope_locations_fmcs', $setting->scope_locations_fmcs)) aria-label="scope_locations_fmcs" {{ (!$is_tested || count($mismatched) > 0) ? ' disabled' : '' }}/>
|
|
{{ trans('admin/settings/general.scope_locations_fmcs_support_text') }}
|
|
</label>
|
|
<p class="help-block">
|
|
{{ trans('admin/settings/general.scope_locations_fmcs_support_help_text') }}
|
|
<strong>{{ ($is_tested && count($mismatched) > 0) ? trans('admin/settings/general.scope_locations_fmcs_support_disabled_text', ['count' => count($mismatched)]) : '' }}</strong>
|
|
@if(!$is_tested)
|
|
<strong>{{ trans('admin/settings/general.scope_locations_fmcs_test_needed') }}</strong>
|
|
@endif
|
|
</p>
|
|
<button class="btn btn-sm btn-theme" wire:click.prevent="check_locations">{{ trans('admin/settings/general.scope_locations_fmcs_check_button') }}</button>
|
|
|
|
{{-- Download-full-report link. Shown only after the enable-check
|
|
has run AND found mismatches. The endpoint runs the full walk of
|
|
Helper::test_locations_fmcs and streams a CSV, so expect it to
|
|
take longer than the enable-check on large datasets since it
|
|
doesn't early-bail. --}}
|
|
@if ($is_tested && count($mismatched) > 0)
|
|
<a href="{{ route('settings.general.location_scoping_report') }}"
|
|
class="btn btn-sm btn-default"
|
|
style="margin-left: 6px;">
|
|
<x-icon type="download"/>
|
|
{{ trans('admin/settings/general.scope_locations_fmcs_download_report') }}
|
|
</a>
|
|
@endif
|
|
</div> |