mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Improve property name
This commit is contained in:
parent
f6c1642bf2
commit
038e86954b
|
@ -13,7 +13,6 @@ class CustomFieldSetDefaultValuesForModel extends Component
|
||||||
public $add_default_values;
|
public $add_default_values;
|
||||||
|
|
||||||
public $fieldset_id;
|
public $fieldset_id;
|
||||||
public $fields;
|
|
||||||
public $model_id;
|
public $model_id;
|
||||||
|
|
||||||
public function mount($model_id = null)
|
public function mount($model_id = null)
|
||||||
|
@ -30,7 +29,7 @@ class CustomFieldSetDefaultValuesForModel extends Component
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Computed]
|
#[Computed]
|
||||||
public function customFields()
|
public function fields()
|
||||||
{
|
{
|
||||||
return CustomFieldset::find($this->fieldset_id)?->fields;
|
return CustomFieldset::find($this->fieldset_id)?->fields;
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,9 +17,9 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@if ($add_default_values ) {{-- 'if the checkbox is enabled *AND* there are more than 0 fields in the fieldsset' --}}
|
@if ($add_default_values ) {{-- 'if the checkbox is enabled *AND* there are more than 0 fields in the fieldsset' --}}
|
||||||
@if ($this->customFields)
|
@if ($this->fields)
|
||||||
|
|
||||||
@foreach ($this->customFields as $field)
|
@foreach ($this->fields as $field)
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
||||||
<label class="col-md-3 control-label{{ $errors->has($field->name) ? ' has-error' : '' }}">{{ $field->name }}</label>
|
<label class="col-md-3 control-label{{ $errors->has($field->name) ? ' has-error' : '' }}">{{ $field->name }}</label>
|
||||||
|
|
Loading…
Reference in a new issue