mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Hide the "Add default values" checkbox if no fieldset selected
This commit is contained in:
parent
9a73311a99
commit
51d63d57c6
|
@ -9,14 +9,16 @@
|
|||
{!! $errors->first('custom_fieldset', '<span class="alert-msg" aria-hidden="true"><br><i class="fas fa-times"></i> :message</span>') !!}
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
@if ($fieldset_id)
|
||||
<label class="form-control">
|
||||
{{ Form::checkbox('add_default_values', 1, old('add_default_values', $add_default_values), ['data-livewire-component' => $this->getId(), 'id' => 'add_default_values', 'wire:model.live' => 'add_default_values', 'disabled' => $this->fields->isEmpty()]) }}
|
||||
{{ trans('admin/models/general.add_default_values') }}
|
||||
</label>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($add_default_values )
|
||||
@if ($add_default_values)
|
||||
@if ($this->fields)
|
||||
|
||||
@foreach ($this->fields as $field)
|
||||
|
|
Loading…
Reference in a new issue