Commit 132ecd1c authored by Korko's avatar Korko
Browse files

Add more informations about the sms disabled and handle that through an env variable

parent 2ef153c2
Pipeline #91115 passed with stage
in 10 minutes and 33 seconds
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -76,6 +76,10 @@ window.app = new VueAjax({
dearsanta: {
type: Boolean,
default: false
},
smsdisabled: {
type: Boolean,
default: false
}
},
data: function() {
......
......@@ -166,6 +166,8 @@
:email="participant.email"
:phone="participant.phone"
@if(!env('SMS_ENABLED')):smsdisabled="true"@endif
:participants="participants"
:dearsanta="dearsanta"
:idx="idx"
......@@ -185,7 +187,10 @@
</fieldset>
<div class="alert alert-info" role="alert">
L'envoi de SMS a été temporairement désactivé car cette fonctionnalité coûte cher au développeur (environ 15€/jour fin novembre 2018).
@if(!env('SMS_ENABLED'))L'envoi de SMS a été temporairement désactivé car cette fonctionnalité coûte cher au développeur (environ 15€/jour fin novembre 2018).<br />@endif
Pour information, un tirage au sort classique pour 10 personnes coûte environ 1€.<br />
Pour que ce service continue à vivre gratuitement et sans aucune exploitation de vos données personnelles, penser à faire un don.<br />
{!! str_replace("\n", '', view('partials.paypalButton')) !!}
</div>
<fieldset>
......
......@@ -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' 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" />
<input type='tel' :disabled="smsdisabled" 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