mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-09 09:51:02 +01:00
radio styling
This commit is contained in:
parent
f944910975
commit
04da844b22
@ -45,11 +45,17 @@
|
|||||||
|
|
||||||
$scope.submit = function () {
|
$scope.submit = function () {
|
||||||
$scope.submitPromise = getPaymentToken($scope.card).then(function (token) {
|
$scope.submitPromise = getPaymentToken($scope.card).then(function (token) {
|
||||||
|
if (!token) {
|
||||||
|
throw 'No payment token.';
|
||||||
|
}
|
||||||
|
|
||||||
var request = {
|
var request = {
|
||||||
paymentToken: token
|
paymentToken: token
|
||||||
};
|
};
|
||||||
|
|
||||||
return apiService.accounts.putPayment(null, request).$promise;
|
return apiService.accounts.putPayment(null, request).$promise;
|
||||||
|
}, function (err) {
|
||||||
|
throw err;
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
$scope.card = null;
|
$scope.card = null;
|
||||||
if (existingPaymentMethod) {
|
if (existingPaymentMethod) {
|
||||||
@ -73,6 +79,8 @@
|
|||||||
if ($scope.paymentMethod === 'paypal') {
|
if ($scope.paymentMethod === 'paypal') {
|
||||||
return btInstance.requestPaymentMethod().then(function (payload) {
|
return btInstance.requestPaymentMethod().then(function (payload) {
|
||||||
return payload.nonce;
|
return payload.nonce;
|
||||||
|
}).catch(function (err) {
|
||||||
|
throw err.message;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -14,13 +14,13 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div ng-if="showPaymentOptions">
|
<div ng-if="showPaymentOptions">
|
||||||
<label class="radio-inline">
|
<label class="radio-inline radio-boxed">
|
||||||
<input type="radio" name="PaymentMethod" value="card" ng-model="paymentMethod"
|
<input type="radio" name="PaymentMethod" value="card" ng-model="paymentMethod"
|
||||||
ng-change="changePaymentMethod('card')"> Credit Card
|
ng-change="changePaymentMethod('card')"><i class="fa fa-fw fa-credit-card"></i> Credit Card
|
||||||
</label>
|
</label>
|
||||||
<label class="radio-inline">
|
<label class="radio-inline radio-boxed">
|
||||||
<input type="radio" name="PaymentMethod" value="paypal" ng-model="paymentMethod"
|
<input type="radio" name="PaymentMethod" value="paypal" ng-model="paymentMethod"
|
||||||
ng-change="changePaymentMethod('paypal')"> PayPal
|
ng-change="changePaymentMethod('paypal')"><i class="fa fa-fw fa-paypal"></i> PayPal
|
||||||
</label>
|
</label>
|
||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
||||||
|
@ -89,13 +89,13 @@
|
|||||||
<h3 class="box-title">Payment Information</h3>
|
<h3 class="box-title">Payment Information</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<label class="radio-inline">
|
<label class="radio-inline radio-lg radio-boxed">
|
||||||
<input type="radio" name="PaymentMethod" value="card" ng-model="paymentMethod"
|
<input type="radio" name="PaymentMethod" value="card" ng-model="paymentMethod"
|
||||||
ng-change="changePaymentMethod()"> Credit Card
|
ng-change="changePaymentMethod()"><i class="fa fa-fw fa-credit-card"></i> Credit Card
|
||||||
</label>
|
</label>
|
||||||
<label class="radio-inline">
|
<label class="radio-inline radio-lg radio-boxed">
|
||||||
<input type="radio" name="PaymentMethod" value="paypal" ng-model="paymentMethod"
|
<input type="radio" name="PaymentMethod" value="paypal" ng-model="paymentMethod"
|
||||||
ng-change="changePaymentMethod()"> PayPal
|
ng-change="changePaymentMethod()"><i class="fa fa-fw fa-paypal"></i> PayPal
|
||||||
</label>
|
</label>
|
||||||
<hr />
|
<hr />
|
||||||
<div ng-if="paymentMethod === 'paypal'">
|
<div ng-if="paymentMethod === 'paypal'">
|
||||||
|
@ -332,6 +332,26 @@ form .btn .loading-icon {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.radio-boxed {
|
||||||
|
border: 1px solid @table-border-color;
|
||||||
|
border-radius: 3px;
|
||||||
|
padding: 10px 10px 10px 30px;
|
||||||
|
|
||||||
|
@media (min-width: @screen-xs) {
|
||||||
|
padding: 10px 20px 10px 30px;
|
||||||
|
|
||||||
|
+ .radio-lg {
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.radio-lg {
|
||||||
|
@media (min-width: @screen-xs) {
|
||||||
|
font-size: @font-size-large;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Modals */
|
/* Modals */
|
||||||
|
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
@ -620,10 +640,24 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.braintree-placeholder {
|
.braintree-placeholder, .braintree-sheet__header {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.braintree-sheet__content--button {
|
||||||
|
text-align: left;
|
||||||
|
padding: 0;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.braintree-sheet__container {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.braintree-sheet {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
.clickable {
|
.clickable {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user