Commit c33d9fed authored by Korko's avatar Korko
Browse files

Disable sms temporarly and fix phoneUsed/emailUsed boolean value

parent 6293ae99
This diff is collapsed.
......@@ -125,7 +125,7 @@ window.app = new VueAjax({
emailUsed: function() {
var used = false;
for(var i in this.participants) {
used = used || this.participants[i].email;
used = used || !!this.participants[i].email;
}
return used;
},
......@@ -133,7 +133,7 @@ window.app = new VueAjax({
phoneUsed: function() {
var used = false;
for(var i in this.participants) {
used = used || this.participants[i].phone;
used = used || !!this.participants[i].phone;
}
return used;
},
......
......@@ -15,7 +15,7 @@
<td class="row border-right">
<div class="input-group">
<span class="input-group-addon lang" lang="fr">(+33)</span>
<input type='tel' pattern='0?[67]\s?(\d\s?){8}' :maxlength="(phone[0] === undefined || phone[0] === '0') ? 10 : 9" :name="'phone['+idx+']'" placeholder="@lang('form.phone.placeholder')" v-model="phone" class="form-control participant-phone" :required="(idx < 3 || name !== '') && !email" />
<input type='tel' disabled="disabled" pattern='0?[67]\s?(\d\s?){8}' :maxlength="(phone[0] === undefined || phone[0] === '0') ? 10 : 9" :name="'phone['+idx+']'" placeholder="@lang('form.phone.placeholder')" v-model="phone" class="form-control participant-phone" :required="(idx < 3 || name !== '') && !email" />
</div>
</td>
<td class="row border-right text-left participant-exclusions-wrapper">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment