Skip to content

Commit c683c0c

Browse files
snitin315kushthedude
authored andcommitted
fix: add missing validations in wizard (#3831)
* add country field validation for basic-details-step * add microlocation validation in session-speaker step
1 parent 47d5817 commit c683c0c

File tree

4 files changed

+38
-2
lines changed

4 files changed

+38
-2
lines changed

app/components/forms/wizard/basic-details-step.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,15 @@ export default Component.extend(FormMixin, EventWizardMixin, {
353353
prompt : this.l10n.t('Please enter a valid url')
354354
}
355355
]
356+
},
357+
paymentCountry: {
358+
identifier : 'payment_country',
359+
rules : [
360+
{
361+
type : 'empty',
362+
prompt : this.l10n.t('Please select your country')
363+
}
364+
]
356365
}
357366
}
358367
};

app/components/forms/wizard/sessions-speakers-step.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,24 @@ export default Component.extend(EventWizardMixin, FormMixin, {
8686
prompt : this.l10n.t('Please give an end time')
8787
}
8888
]
89+
},
90+
microlocation: {
91+
identifier : 'microlocation',
92+
rules : [
93+
{
94+
type : 'empty',
95+
prompt : this.l10n.t('Please enter name for microlocation')
96+
}
97+
]
98+
},
99+
microlocationFloor: {
100+
identifier : 'microlocation_floor',
101+
rules : [
102+
{
103+
type : 'empty',
104+
prompt : this.l10n.t('Please enter floor for microlocation')
105+
}
106+
]
89107
}
90108
}
91109
};

app/components/modals/tax-info-modal.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ export default ModalBase.extend(FormMixin, {
104104
prompt : this.l10n.t('Please provide a zip code')
105105
}
106106
]
107+
},
108+
taxCountry: {
109+
identifier : 'tax_country',
110+
rules : [
111+
{
112+
type : 'empty',
113+
prompt : this.l10n.t('Please select your country')
114+
}
115+
]
107116
}
108117
}
109118
};

app/templates/components/forms/wizard/sessions-speakers-step.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
{{#each microlocations as |microlocation|}}
6262
<div class="{{if device.isMobile 'grouped'}} fields">
6363
<div class="{{unless device.isMobile 'three wide'}} field">
64-
{{input type='text' value=microlocation.name placeholder='Name'}}
64+
{{input type='text' id="microlocation" value=microlocation.name placeholder='Name'}}
6565
</div>
6666
<div class="{{unless device.isMobile 'four wide'}} field">
6767
<div class="ui action input fluid">
68-
{{input type='number' name='microlocation' value=microlocation.floor placeholder='Floor'}}
68+
{{input type='number' id='microlocation_floor' value=microlocation.floor placeholder='Floor'}}
6969
{{#if (gt microlocations.length 1)}}
7070
<button class="ui icon red button" type="button" {{action 'removeItem' microlocation}}>
7171
<i class="minus icon"></i>

0 commit comments

Comments
 (0)