File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
packages/Webkul/Admin/src/Resources/views/leads/common Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1414 < x- admin:: form .control - group .label class = " required" >
1515 @lang (' admin::app.leads.common.contact.name' )
1616 < / x- admin:: form .control - group .label >
17-
17+
1818 < x- admin:: lookup
1919 :: src= " src"
2020 name= " person[id]"
2121 :: params= " params"
22- rules= " required "
22+ :: rules= " nameValidationRule "
2323 :: value= " {id: person.id, name: person.name}"
2424 : placeholder= " trans('admin::app.leads.common.contact.name')"
2525 @on - selected= " addPerson"
2626 : can- add- new = " true"
2727 / >
28-
28+
2929 < x- admin:: form .control - group .control
3030 type= " hidden"
3131 name= " person[name]"
3232 v- model= " person.name"
3333 v- if = " person.name"
3434 rules= " required"
3535 / >
36-
36+
3737 < x- admin:: form .control - group .error control- name= " person[id]" / >
3838 < / x- admin:: form .control - group>
3939
4444 < / x- admin:: form .control - group .label >
4545
4646 < x- admin:: attributes .edit .email / >
47-
47+
4848 < v- email- component
4949 : attribute= " {'code': 'person[emails]', 'name': 'Email'}"
5050 validations= " required"
121121 query: this .person [' name' ]
122122 }
123123 }
124+ },
125+
126+ nameValidationRule () {
127+ return this .person .name ? ' ' : ' required' ;
124128 }
125129 },
126130
You can’t perform that action at this time.
0 commit comments