Textarea value control edited
This commit is contained in:
		| @@ -20,10 +20,6 @@ | ||||
|  | ||||
|         {{ Form::textareaGroup('address', trans('settings.company.address'), null, setting('company.address')) }} | ||||
|  | ||||
|         <div class="form-group col-md-12 d-none"> | ||||
|             <textarea name="address" class="form-control" rows="3">{{ setting('company.address') }}</textarea> | ||||
|         </div> | ||||
|  | ||||
|         {!! Form::hidden('_prefix', 'company') !!} | ||||
|     </div> | ||||
| {!! Form::close() !!} | ||||
|   | ||||
| @@ -21,10 +21,6 @@ | ||||
|  | ||||
|         {{ Form::textareaGroup('address', trans('general.address'), null, $customer->address) }} | ||||
|  | ||||
|         <div class="form-group col-md-12 d-none"> | ||||
|             <textarea name="address" class="form-control" rows="3">{{ $customer->address }}</textarea> | ||||
|         </div> | ||||
|  | ||||
|         {{ Form::hidden('type', 'customer') }} | ||||
|         {!! Form::hidden('enabled', '1', []) !!} | ||||
|     </div> | ||||
|   | ||||
| @@ -21,10 +21,6 @@ | ||||
|  | ||||
|         {{ Form::textareaGroup('address', trans('general.address'), null, $vendor->address) }} | ||||
|  | ||||
|         <div class="form-group col-md-12 d-none"> | ||||
|             <textarea name="address" class="form-control" rows="3">{{ $vendor->address }}</textarea> | ||||
|         </div> | ||||
|  | ||||
|         {{ Form::hidden('type', 'vendor') }} | ||||
|         {!! Form::hidden('enabled', '1', []) !!} | ||||
|     </div> | ||||
|   | ||||
| @@ -14,9 +14,8 @@ | ||||
|         {!! Form::textarea($name, $value, array_merge([ | ||||
|             'class' => 'form-control', | ||||
|             'data-name' => $name, | ||||
|             'data-value' => $value, | ||||
|             'placeholder' => trans('general.form.enter', ['field' => $text]), | ||||
|             'v-model' => !empty($attributes['v-model']) ? $attributes['v-model'] : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.'. $name : 'form.' . $name), | ||||
|             '@input' => !empty($attributes['v-model']) ? $attributes['v-model'] . ' = $event.target.value' : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.'. $name . ' = $event.target.value' : 'form.' . $name . ' = $event.target.value'), | ||||
|         ], $attributes)) !!} | ||||
|  | ||||
|         <div class="invalid-feedback d-block" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user