mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
added generic error handling to recurly processing and required fields
This commit is contained in:
@@ -37,7 +37,6 @@ block content
|
||||
hr
|
||||
|
||||
form
|
||||
|
||||
.row
|
||||
.col-md-9
|
||||
h2 {{planName}}
|
||||
@@ -55,6 +54,9 @@ block content
|
||||
label.radio-inline Paypal
|
||||
input(type="radio", value="paypal", ng-model="paymentMethod")
|
||||
|
||||
.alert.alert-warning.small(ng-show="genericError")
|
||||
strong {{genericError}}
|
||||
|
||||
.div(ng-hide="paymentMethod == 'paypal'")
|
||||
.row
|
||||
.col-md-12
|
||||
@@ -105,11 +107,11 @@ block content
|
||||
.col-md-6
|
||||
.form-group
|
||||
label #{translate("first_name")}
|
||||
input.form-control(type='text', value='', maxlength='255', tabindex='1', onkeyup='', data-recurly="first_name", ng-model="data.first_name")
|
||||
input.form-control(type='text', value='', maxlength='255', tabindex='1', onkeyup='', data-recurly="first_name", ng-model="data.first_name", required)
|
||||
.col-md-6
|
||||
.form-group
|
||||
label #{translate("last_name")}
|
||||
input.form-control(type='text', value='', maxlength='255', tabindex='1', onkeyup='', data-recurly="last_name", ng-model="data.last_name")
|
||||
input.form-control(type='text', value='', maxlength='255', tabindex='1', onkeyup='', data-recurly="last_name", ng-model="data.last_name", required)
|
||||
.form-group
|
||||
label #{translate("address")}
|
||||
input.form-control(type='text', value='', maxlength='255', tabindex='1', onkeyup='', ng-model="data.address1")
|
||||
@@ -126,7 +128,7 @@ block content
|
||||
|
||||
.form-group
|
||||
label #{translate("country")}
|
||||
select.form-control(data-recurly="country", ng-model="data.country")
|
||||
select.form-control(data-recurly="country", ng-model="data.country", required)
|
||||
mixin countries_options()
|
||||
|
||||
.form-group
|
||||
|
||||
Reference in New Issue
Block a user