|
|
@ -4,12 +4,17 @@ |
|
|
|
<div class="form-group row mb-0"> |
|
|
|
<div class="form-group row mb-0"> |
|
|
|
<div class="col-12"> |
|
|
|
<div class="col-12"> |
|
|
|
<h1>Donate</h1> |
|
|
|
<h1>Donate</h1> |
|
|
|
<p>Özgür Yazılım Derneği is a registered association in İstanbul, Turkey with the number 34-242-113</p> |
|
|
|
<p> |
|
|
|
|
|
|
|
Özgür Yazılım Derneği is a registered association in İstanbul, |
|
|
|
|
|
|
|
Turkey with the number 34-242-113 |
|
|
|
|
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<form method="POST" action="/make-donation"> |
|
|
|
<form method="POST" action="/make-donation"> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="currency" class="col-md-4 col-form-label text-md-right">Donation currency</label> |
|
|
|
<label for="currency" class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>Donation currency</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-8"> |
|
|
|
<div class="col-md-8"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
@ -21,15 +26,22 @@ |
|
|
|
<button |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
type="button" |
|
|
|
class="btn btn-block mb-2" |
|
|
|
class="btn btn-block mb-2" |
|
|
|
:class="{'btn-primary':currency==currencyItem.code, 'btn-outline-primary':currency!=currencyItem.code}" |
|
|
|
:class="{ |
|
|
|
@click="currency=currencyItem.code" |
|
|
|
'btn-primary': currency == currencyItem.code, |
|
|
|
>{{currencyItem.symbol}} | {{currencyItem.name}}</button> |
|
|
|
'btn-outline-primary': currency != currencyItem.code, |
|
|
|
|
|
|
|
}" |
|
|
|
|
|
|
|
@click="currency = currencyItem.code" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ currencyItem.symbol }} | {{ currencyItem.name }} |
|
|
|
|
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="frequency" class="col-md-4 col-form-label text-md-right">Donation frequency</label> |
|
|
|
<label for="frequency" class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>Donation frequency</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-8"> |
|
|
|
<div class="col-md-8"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
@ -41,15 +53,24 @@ |
|
|
|
<button |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
type="button" |
|
|
|
class="btn btn-block mb-2" |
|
|
|
class="btn btn-block mb-2" |
|
|
|
:class="{'btn-primary':frequency==frequencyItem.code, 'btn-outline-primary':frequency!=frequencyItem.code}" |
|
|
|
:class="{ |
|
|
|
|
|
|
|
'btn-primary': frequency == frequencyItem.code, |
|
|
|
|
|
|
|
'btn-outline-primary': frequency != frequencyItem.code, |
|
|
|
|
|
|
|
}" |
|
|
|
@click="setFrequency(frequencyItem.code)" |
|
|
|
@click="setFrequency(frequencyItem.code)" |
|
|
|
>{{frequencyItem.name}}</button> |
|
|
|
> |
|
|
|
|
|
|
|
{{ frequencyItem.name }} |
|
|
|
|
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="donationPackage" class="col-md-4 col-form-label text-md-right">Donation amount</label> |
|
|
|
<label |
|
|
|
|
|
|
|
for="donationPackage" |
|
|
|
|
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>Donation amount</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-8"> |
|
|
|
<div class="col-md-8"> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
@ -61,25 +82,36 @@ |
|
|
|
<button |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
type="button" |
|
|
|
class="btn btn-block mb-2" |
|
|
|
class="btn btn-block mb-2" |
|
|
|
:class="{'btn-primary':donationPackage==donationPackageItem.id, 'btn-outline-primary':donationPackage!=donationPackageItem.id}" |
|
|
|
:class="{ |
|
|
|
|
|
|
|
'btn-primary': donationPackage == donationPackageItem.id, |
|
|
|
|
|
|
|
'btn-outline-primary': |
|
|
|
|
|
|
|
donationPackage != donationPackageItem.id, |
|
|
|
|
|
|
|
}" |
|
|
|
@click="setDonationPackage(donationPackageItem.id)" |
|
|
|
@click="setDonationPackage(donationPackageItem.id)" |
|
|
|
> |
|
|
|
> |
|
|
|
<span>{{activeCurrency.symbol}}</span> |
|
|
|
<span>{{ activeCurrency.symbol }}</span> |
|
|
|
<span v-if="frequency=='once'">{{donationPackageItem.once_amount}}</span> |
|
|
|
<span v-if="frequency == 'once'">{{ |
|
|
|
<span v-else-if="frequency=='monthly'">{{donationPackageItem.monthly_amount}} /mo</span> |
|
|
|
donationPackageItem.once_amount |
|
|
|
<span |
|
|
|
}}</span> |
|
|
|
v-else-if="frequency=='annually'" |
|
|
|
<span v-else-if="frequency == 'monthly'" |
|
|
|
>{{donationPackageItem.annually_amount}} /yr</span> |
|
|
|
>{{ donationPackageItem.monthly_amount }} /mo</span |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<span v-else-if="frequency == 'annually'" |
|
|
|
|
|
|
|
>{{ donationPackageItem.annually_amount }} /yr</span |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<br /> |
|
|
|
<br /> |
|
|
|
<small>{{donationPackageItem.name}}</small> |
|
|
|
<small>{{ donationPackageItem.name }}</small> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-12 col-md-6"> |
|
|
|
<div class="col-12 col-md-6"> |
|
|
|
<button |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
type="button" |
|
|
|
class="btn btn-block mb-2" |
|
|
|
class="btn btn-block mb-2" |
|
|
|
:class="{'btn-primary':donationPackage==null, 'btn-outline-primary':donationPackage!=null}" |
|
|
|
:class="{ |
|
|
|
|
|
|
|
'btn-primary': donationPackage == null, |
|
|
|
|
|
|
|
'btn-outline-primary': donationPackage != null, |
|
|
|
|
|
|
|
}" |
|
|
|
@click="setDonationPackage(null)" |
|
|
|
@click="setDonationPackage(null)" |
|
|
|
> |
|
|
|
> |
|
|
|
<small>other</small> |
|
|
|
<small>other</small> |
|
|
@ -87,7 +119,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
<div class="input-group mb-3"> |
|
|
|
<div class="input-group mb-3"> |
|
|
|
<div class="input-group-prepend"> |
|
|
|
<div class="input-group-prepend"> |
|
|
|
<span class="input-group-text">{{activeCurrency.symbol}}</span> |
|
|
|
<span class="input-group-text">{{ |
|
|
|
|
|
|
|
activeCurrency.symbol |
|
|
|
|
|
|
|
}}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<input |
|
|
|
<input |
|
|
|
type="number" |
|
|
|
type="number" |
|
|
@ -98,10 +132,18 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div |
|
|
|
<div |
|
|
|
class="input-group-append" |
|
|
|
class="input-group-append" |
|
|
|
v-if="frequency=='monthly' || frequency=='annually'" |
|
|
|
v-if="frequency == 'monthly' || frequency == 'annually'" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<span |
|
|
|
|
|
|
|
v-if="frequency == 'monthly'" |
|
|
|
|
|
|
|
class="input-group-text" |
|
|
|
|
|
|
|
>/mo</span |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<span |
|
|
|
|
|
|
|
v-else-if="frequency == 'annually'" |
|
|
|
|
|
|
|
class="input-group-text" |
|
|
|
|
|
|
|
>/yr</span |
|
|
|
> |
|
|
|
> |
|
|
|
<span v-if="frequency=='monthly'" class="input-group-text">/mo</span> |
|
|
|
|
|
|
|
<span v-else-if="frequency=='annually'" class="input-group-text">/yr</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</button> |
|
|
|
</button> |
|
|
@ -116,35 +158,39 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="first_name" class="col-md-4 col-form-label text-md-right">First Name</label> |
|
|
|
<label for="first_name" class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>First Name</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<input |
|
|
|
<input |
|
|
|
id="first_name" |
|
|
|
id="first_name" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="first_name" |
|
|
|
name="first_name" |
|
|
|
required |
|
|
|
required |
|
|
|
/> |
|
|
|
/> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1==0"> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1 == 0"> |
|
|
|
<strong>Sample error</strong> |
|
|
|
<strong>Sample error</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="last_name" class="col-md-4 col-form-label text-md-right">Last Name</label> |
|
|
|
<label for="last_name" class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>Last Name</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<input |
|
|
|
<input |
|
|
|
id="last_name" |
|
|
|
id="last_name" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="last_name" |
|
|
|
name="last_name" |
|
|
|
required |
|
|
|
required |
|
|
|
/> |
|
|
|
/> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1==0"> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1 == 0"> |
|
|
|
<strong>Sample error</strong> |
|
|
|
<strong>Sample error</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -159,12 +205,16 @@ |
|
|
|
id="show_name" |
|
|
|
id="show_name" |
|
|
|
value="1" |
|
|
|
value="1" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<label class="form-check-label" for="show_name">Show my name on donors list</label> |
|
|
|
<label class="form-check-label" for="show_name" |
|
|
|
|
|
|
|
>Show my name on donors list</label |
|
|
|
|
|
|
|
> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="email" class="col-md-4 col-form-label text-md-right">E-Mail Address</label> |
|
|
|
<label for="email" class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>E-Mail Address</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<input |
|
|
|
<input |
|
|
@ -187,31 +237,34 @@ |
|
|
|
<label |
|
|
|
<label |
|
|
|
for="card_holder_name" |
|
|
|
for="card_holder_name" |
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
>Card Holder Name</label> |
|
|
|
>Card Holder Name</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<input |
|
|
|
<input |
|
|
|
id="card_holder_name" |
|
|
|
id="card_holder_name" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="card_holder_name" |
|
|
|
name="card_holder_name" |
|
|
|
required |
|
|
|
required |
|
|
|
/> |
|
|
|
/> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1==0"> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1 == 0"> |
|
|
|
<strong>Sample error</strong> |
|
|
|
<strong>Sample error</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="card_number" class="col-md-4 col-form-label text-md-right">Credit Card Number</label> |
|
|
|
<label for="card_number" class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>Credit Card Number</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<input |
|
|
|
<input |
|
|
|
id="card_number" |
|
|
|
id="card_number" |
|
|
|
type="tel" |
|
|
|
type="tel" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="card_number" |
|
|
|
name="card_number" |
|
|
|
required |
|
|
|
required |
|
|
|
minlength="15" |
|
|
|
minlength="15" |
|
|
@ -220,7 +273,7 @@ |
|
|
|
placeholder="################" |
|
|
|
placeholder="################" |
|
|
|
v-cardformat:restrictNumeric |
|
|
|
v-cardformat:restrictNumeric |
|
|
|
/> |
|
|
|
/> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1==0"> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1 == 0"> |
|
|
|
<strong>Sample error</strong> |
|
|
|
<strong>Sample error</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -229,14 +282,15 @@ |
|
|
|
<label |
|
|
|
<label |
|
|
|
for="card_expire_month" |
|
|
|
for="card_expire_month" |
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
>Credit Card Expiration</label> |
|
|
|
>Credit Card Expiration</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-3"> |
|
|
|
<div class="col-3"> |
|
|
|
<input |
|
|
|
<input |
|
|
|
id="card_expire_month" |
|
|
|
id="card_expire_month" |
|
|
|
type="tel" |
|
|
|
type="tel" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="card_expire_month" |
|
|
|
name="card_expire_month" |
|
|
|
required |
|
|
|
required |
|
|
|
autocomplete="card_expire_month" |
|
|
|
autocomplete="card_expire_month" |
|
|
@ -251,7 +305,7 @@ |
|
|
|
id="card_expire_year" |
|
|
|
id="card_expire_year" |
|
|
|
type="tel" |
|
|
|
type="tel" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="card_expire_year" |
|
|
|
name="card_expire_year" |
|
|
|
required |
|
|
|
required |
|
|
|
autocomplete="card_expire_year" |
|
|
|
autocomplete="card_expire_year" |
|
|
@ -263,14 +317,16 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="card_cvc" class="col-md-4 col-form-label text-md-right">Credit Card CVC</label> |
|
|
|
<label for="card_cvc" class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>Credit Card CVC</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-3"> |
|
|
|
<div class="col-3"> |
|
|
|
<input |
|
|
|
<input |
|
|
|
id="card_cvc" |
|
|
|
id="card_cvc" |
|
|
|
type="tel" |
|
|
|
type="tel" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="card_cvc" |
|
|
|
name="card_cvc" |
|
|
|
required |
|
|
|
required |
|
|
|
autocomplete="card_cvc" |
|
|
|
autocomplete="card_cvc" |
|
|
@ -291,75 +347,91 @@ |
|
|
|
<label |
|
|
|
<label |
|
|
|
for="billing_contact_name" |
|
|
|
for="billing_contact_name" |
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
>Contact Name</label> |
|
|
|
>Contact Name</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<input |
|
|
|
<input |
|
|
|
id="billing_contact_name" |
|
|
|
id="billing_contact_name" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="billing_contact_name" |
|
|
|
name="billing_contact_name" |
|
|
|
required |
|
|
|
required |
|
|
|
/> |
|
|
|
/> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1==0"> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1 == 0"> |
|
|
|
<strong>Sample error</strong> |
|
|
|
<strong>Sample error</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="billing_address" class="col-md-4 col-form-label text-md-right">Address</label> |
|
|
|
<label |
|
|
|
|
|
|
|
for="billing_address" |
|
|
|
|
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>Address</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<input |
|
|
|
<input |
|
|
|
id="billing_address" |
|
|
|
id="billing_address" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="billing_address" |
|
|
|
name="billing_address" |
|
|
|
required |
|
|
|
required |
|
|
|
/> |
|
|
|
/> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1==0"> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1 == 0"> |
|
|
|
<strong>Sample error</strong> |
|
|
|
<strong>Sample error</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="billing_city" class="col-md-4 col-form-label text-md-right">City</label> |
|
|
|
<label |
|
|
|
|
|
|
|
for="billing_city" |
|
|
|
|
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>City</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<input |
|
|
|
<input |
|
|
|
id="billing_city" |
|
|
|
id="billing_city" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="billing_city" |
|
|
|
name="billing_city" |
|
|
|
required |
|
|
|
required |
|
|
|
/> |
|
|
|
/> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1==0"> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1 == 0"> |
|
|
|
<strong>Sample error</strong> |
|
|
|
<strong>Sample error</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="billing_country" class="col-md-4 col-form-label text-md-right">Country</label> |
|
|
|
<label |
|
|
|
|
|
|
|
for="billing_country" |
|
|
|
|
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
>Country</label |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-6"> |
|
|
|
<div class="col-md-6"> |
|
|
|
<input |
|
|
|
<input |
|
|
|
id="billing_country" |
|
|
|
id="billing_country" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="billing_country" |
|
|
|
name="billing_country" |
|
|
|
required |
|
|
|
required |
|
|
|
/> |
|
|
|
/> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1==0"> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1 == 0"> |
|
|
|
<strong>Sample error</strong> |
|
|
|
<strong>Sample error</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="form-group row"> |
|
|
|
<div class="form-group row"> |
|
|
|
<label for="billing_zipcode" class="col-md-4 col-form-label text-md-right"> |
|
|
|
<label |
|
|
|
|
|
|
|
for="billing_zipcode" |
|
|
|
|
|
|
|
class="col-md-4 col-form-label text-md-right" |
|
|
|
|
|
|
|
> |
|
|
|
Zip Code |
|
|
|
Zip Code |
|
|
|
<small>optional</small> |
|
|
|
<small>optional</small> |
|
|
|
</label> |
|
|
|
</label> |
|
|
@ -369,18 +441,39 @@ |
|
|
|
id="billing_zipcode" |
|
|
|
id="billing_zipcode" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
class="form-control" |
|
|
|
class="form-control" |
|
|
|
:class="{'is-invalid':1==0}" |
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
name="billing_zipcode" |
|
|
|
name="billing_zipcode" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1==0"> |
|
|
|
<span class="invalid-feedback" role="alert" v-if="1 == 0"> |
|
|
|
<strong>Sample error</strong> |
|
|
|
<strong>Sample error</strong> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form-group row"> |
|
|
|
|
|
|
|
<label for="captcha" class="col-md-4 col-form-label text-md-right"> |
|
|
|
|
|
|
|
<img :src="captcha_src" /> |
|
|
|
|
|
|
|
</label> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-md-3"> |
|
|
|
|
|
|
|
<input |
|
|
|
|
|
|
|
id="captcha" |
|
|
|
|
|
|
|
type="text" |
|
|
|
|
|
|
|
placeholder="Captcha" |
|
|
|
|
|
|
|
class="form-control" |
|
|
|
|
|
|
|
:class="{ 'is-invalid': 1 == 0 }" |
|
|
|
|
|
|
|
name="captcha" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<input type="hidden" name="captcha_key" :value="captcha_key" /> |
|
|
|
|
|
|
|
<span class="invalid-feedback" role="alert" v-if="1 == 0"> |
|
|
|
|
|
|
|
<strong>Sample error</strong> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="form-group row mb-0"> |
|
|
|
<div class="form-group row mb-0"> |
|
|
|
<div class="col-md-8 offset-md-4"> |
|
|
|
<div class="col-md-8 offset-md-4"> |
|
|
|
<button type="submit" class="btn btn-primary btn-lg">Donate {{amountText}}</button> |
|
|
|
<button type="submit" class="btn btn-primary btn-lg"> |
|
|
|
|
|
|
|
Donate {{ amountText }} |
|
|
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <a class="btn btn-link" href="#">Forgot Your Password?</a> --> |
|
|
|
<!-- <a class="btn btn-link" href="#">Forgot Your Password?</a> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -398,6 +491,8 @@ |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
captcha_src: null, |
|
|
|
|
|
|
|
captcha_key: null, |
|
|
|
card_number: null, |
|
|
|
card_number: null, |
|
|
|
card_expire_month: null, |
|
|
|
card_expire_month: null, |
|
|
|
card_expire_year: null, |
|
|
|
card_expire_year: null, |
|
|
@ -408,12 +503,12 @@ export default { |
|
|
|
currencies: [ |
|
|
|
currencies: [ |
|
|
|
{ name: "USD", code: "USD", symbol: "$" }, |
|
|
|
{ name: "USD", code: "USD", symbol: "$" }, |
|
|
|
{ name: "EUR", code: "EUR", symbol: "€" }, |
|
|
|
{ name: "EUR", code: "EUR", symbol: "€" }, |
|
|
|
{ name: "TRY", code: "TL", symbol: "₺" } |
|
|
|
{ name: "TRY", code: "TL", symbol: "₺" }, |
|
|
|
], |
|
|
|
], |
|
|
|
frequencies: [ |
|
|
|
frequencies: [ |
|
|
|
{ name: "once", code: "once" }, |
|
|
|
{ name: "once", code: "once" }, |
|
|
|
{ name: "monthly", code: "monthly" }, |
|
|
|
{ name: "monthly", code: "monthly" }, |
|
|
|
{ name: "annually", code: "annually" } |
|
|
|
{ name: "annually", code: "annually" }, |
|
|
|
], |
|
|
|
], |
|
|
|
donationPackages: [ |
|
|
|
donationPackages: [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -421,50 +516,50 @@ export default { |
|
|
|
name: "Super Major Donor", |
|
|
|
name: "Super Major Donor", |
|
|
|
once_amount: 2500, |
|
|
|
once_amount: 2500, |
|
|
|
monthly_amount: 250, |
|
|
|
monthly_amount: 250, |
|
|
|
annually_amount: 2500 |
|
|
|
annually_amount: 2500, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 2, |
|
|
|
id: 2, |
|
|
|
name: "Major Donor", |
|
|
|
name: "Major Donor", |
|
|
|
once_amount: 1000, |
|
|
|
once_amount: 1000, |
|
|
|
monthly_amount: 100, |
|
|
|
monthly_amount: 100, |
|
|
|
annually_amount: 1000 |
|
|
|
annually_amount: 1000, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 3, |
|
|
|
id: 3, |
|
|
|
name: "Rare Earths Level", |
|
|
|
name: "Rare Earths Level", |
|
|
|
once_amount: 500, |
|
|
|
once_amount: 500, |
|
|
|
monthly_amount: 50, |
|
|
|
monthly_amount: 50, |
|
|
|
annually_amount: 500 |
|
|
|
annually_amount: 500, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 4, |
|
|
|
id: 4, |
|
|
|
name: "Titanium Level", |
|
|
|
name: "Titanium Level", |
|
|
|
once_amount: 250, |
|
|
|
once_amount: 250, |
|
|
|
monthly_amount: 25, |
|
|
|
monthly_amount: 25, |
|
|
|
annually_amount: 250 |
|
|
|
annually_amount: 250, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 5, |
|
|
|
id: 5, |
|
|
|
name: "Gold Level", |
|
|
|
name: "Gold Level", |
|
|
|
once_amount: 100, |
|
|
|
once_amount: 100, |
|
|
|
monthly_amount: 20, |
|
|
|
monthly_amount: 20, |
|
|
|
annually_amount: 100 |
|
|
|
annually_amount: 100, |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 6, |
|
|
|
id: 6, |
|
|
|
name: "Copper Level", |
|
|
|
name: "Copper Level", |
|
|
|
once_amount: 50, |
|
|
|
once_amount: 50, |
|
|
|
monthly_amount: 10, |
|
|
|
monthly_amount: 10, |
|
|
|
annually_amount: 50 |
|
|
|
annually_amount: 50, |
|
|
|
} |
|
|
|
}, |
|
|
|
] |
|
|
|
], |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
activeCurrency() { |
|
|
|
activeCurrency() { |
|
|
|
const itemIndex = this.currencies.findIndex( |
|
|
|
const itemIndex = this.currencies.findIndex( |
|
|
|
item => item.code === this.currency |
|
|
|
(item) => item.code === this.currency |
|
|
|
); |
|
|
|
); |
|
|
|
if (itemIndex === -1) return false; |
|
|
|
if (itemIndex === -1) return false; |
|
|
|
return this.currencies[itemIndex]; |
|
|
|
return this.currencies[itemIndex]; |
|
|
@ -482,7 +577,7 @@ export default { |
|
|
|
return document |
|
|
|
return document |
|
|
|
.querySelector('meta[name="csrf-token"]') |
|
|
|
.querySelector('meta[name="csrf-token"]') |
|
|
|
.getAttribute("content"); |
|
|
|
.getAttribute("content"); |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
setFrequency(code) { |
|
|
|
setFrequency(code) { |
|
|
@ -495,7 +590,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
setAmountByPackage() { |
|
|
|
setAmountByPackage() { |
|
|
|
const itemIndex = this.donationPackages.findIndex( |
|
|
|
const itemIndex = this.donationPackages.findIndex( |
|
|
|
item => item.id === this.donationPackage |
|
|
|
(item) => item.id === this.donationPackage |
|
|
|
); |
|
|
|
); |
|
|
|
if (itemIndex !== -1) { |
|
|
|
if (itemIndex !== -1) { |
|
|
|
if (this.frequency == "once") { |
|
|
|
if (this.frequency == "once") { |
|
|
@ -514,14 +609,20 @@ export default { |
|
|
|
// 46 is dot |
|
|
|
// 46 is dot |
|
|
|
$event.preventDefault(); |
|
|
|
$event.preventDefault(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
amount() { |
|
|
|
amount() { |
|
|
|
if (this.amount < 1) { |
|
|
|
if (this.amount < 1) { |
|
|
|
this.amount = 5; |
|
|
|
this.amount = 5; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
axios.get("/captcha/api/math").then((response) => { |
|
|
|
|
|
|
|
this.captcha_src = response.data.img; |
|
|
|
|
|
|
|
this.captcha_key = response.data.key; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|