Update text.blade.php
This commit is contained in:
parent
8fb656ade5
commit
9662f095de
|
|
@ -5,15 +5,14 @@
|
|||
class="control"
|
||||
id="{{ $attribute->code }}"
|
||||
|
||||
{{-- To Do (@devansh-webkul): Need to handle from the backend. --}}
|
||||
@if ($attribute->code === 'sku')
|
||||
v-validate="{ required: true, regex: /^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/ }"
|
||||
@else
|
||||
v-validate="'{{ $validations }}'"
|
||||
@endif
|
||||
|
||||
data-vv-as=""{{ $attribute->admin_name }}""
|
||||
|
||||
{{-- To Do (@devansh-webkul): Need to handle from the backend. --}}
|
||||
{{ in_array($attribute->code, ['url_key']) ? 'v-slugify' : '' }}
|
||||
{{ $attribute->code == 'name' && ! $product->url_key ? 'v-slugify-target=\'url_key\'' : '' }}
|
||||
>
|
||||
|
|
|
|||
Loading…
Reference in New Issue