Skip to content

Commit

Permalink
fixed 1239
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhat-webkul committed Apr 10, 2024
1 parent 319d500 commit 691d4e7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,8 @@ class="control"
:name="'attributes[' + attribute.id + '][is_required]'"
:id="'is_required_' + attribute.id"
:checked="attribute.is_required"
:disabled="attribute.attribute.is_required ? true : false"
v-model="attribute.is_required"
/>

<label :for="'is_required_' + attribute.id" class="checkbox-view"></label>
Expand All @@ -335,6 +337,13 @@ class="control"
value="1"
v-if="attribute.is_required"
/>

<input
type="hidden"
:name="'attributes[' + attribute.id + '][is_required]'"
value="0"
v-else
/>
</td>

<td class="delete-icon" style="width: 40px">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ class="control"
:name="'attributes[' + attribute.id + '][is_required]'"
:id="'is_required_' + attribute.id"
:checked="attribute.is_required"
:disabled="attribute.is_required"
:disabled="attribute.attribute.is_required ? true : false"
v-model="attribute.is_required"
/>

<label :for="'is_required_' + attribute.id" class="checkbox-view"></label>
Expand All @@ -440,6 +441,13 @@ class="control"
value="1"
v-if="attribute.is_required"
/>

<input
type="hidden"
:name="'attributes[' + attribute.id + '][is_required]'"
value="0"
v-else
/>
</td>

<td class="delete-icon" style="width: 40px">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
class="control"
placeholder="{{ $attribute->placeholder }}"
id="{{ $fieldName }}"
{{ $parentAttribute->is_required ? 'required' : '' }}
{{ $attribute->is_required ? 'required' : '' }}
/>

@break;
Expand All @@ -104,7 +104,7 @@ class="control"
name="{{ $fieldName }}"
class="control"
id="{{ $fieldName }}"
{{ $parentAttribute->is_required ? 'required' : '' }}
{{ $attribute->is_required ? 'required' : '' }}
/>

@break;
Expand All @@ -114,7 +114,7 @@ class="control"
name="{{ $fieldName }}"
class="control"
id="{{ $fieldName }}"
{{ $parentAttribute->is_required ? 'required' : '' }}
{{ $attribute->is_required ? 'required' : '' }}
></textarea>

@break;
Expand All @@ -126,7 +126,7 @@ class="control"
class="control"
placeholder="{{ $attribute->placeholder }}"
id="{{ $fieldName }}"
{{ $parentAttribute->is_required ? 'required' : '' }}
{{ $attribute->is_required ? 'required' : '' }}
/>

<input
Expand All @@ -145,7 +145,7 @@ class="control"
class="control"
placeholder="{{ $attribute->placeholder }}"
id="{{ $fieldName }}"
{{ $parentAttribute->is_required ? 'required' : '' }}
{{ $attribute->is_required ? 'required' : '' }}
/>

<input
Expand All @@ -163,7 +163,7 @@ class="control"
class="control"
id="{{ $fieldName }}"
name="{{ $fieldName }}"
{{ $parentAttribute->is_required ? 'required' : '' }}
{{ $attribute->is_required ? 'required' : '' }}
>
@php
$options = $parentAttribute->lookup_type
Expand Down

0 comments on commit 691d4e7

Please sign in to comment.