Merge pull request #129 from gabrielbazan7/feat/NewsEmail
Feat/news email
This commit is contained in:
commit
8a2db79345
4 changed files with 56 additions and 11 deletions
|
|
@ -9,13 +9,14 @@ angular.module('copayApp.controllers').controller('collectEmailController', func
|
|||
|
||||
var wallet = profileService.getWallet($stateParams.walletId);
|
||||
var walletId = wallet.credentials.walletId;
|
||||
$scope.data = {};
|
||||
$scope.data.accept = false;
|
||||
|
||||
$scope.save = function() {
|
||||
var opts = {
|
||||
emailFor: {}
|
||||
};
|
||||
opts.emailFor[walletId] = $scope.email;
|
||||
|
||||
walletService.updateRemotePreferences(wallet, {
|
||||
email: $scope.email,
|
||||
}, function(err) {
|
||||
|
|
|
|||
|
|
@ -47,18 +47,59 @@
|
|||
z-index: 5;
|
||||
margin-top: 0;
|
||||
width: 100%;
|
||||
label {
|
||||
background: rgba(200, 200, 200, 0.20);
|
||||
height: 3rem;
|
||||
margin-top:0;
|
||||
i {
|
||||
position: absolute;
|
||||
right: 3%;
|
||||
top: 1rem;
|
||||
form {
|
||||
label {
|
||||
background: rgba(200, 200, 200, 0.20);
|
||||
height: 3rem;
|
||||
margin-top:0;
|
||||
i {
|
||||
position: absolute;
|
||||
right: 3%;
|
||||
top: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.item {
|
||||
border: none;
|
||||
label{
|
||||
background: none;
|
||||
}
|
||||
.checkbox input:before,
|
||||
.checkbox .checkbox-icon:before {
|
||||
border-radius: 50% !important;
|
||||
background: none;
|
||||
border-width: 2px;
|
||||
padding: .9rem;
|
||||
position: relative;
|
||||
left: -7px;
|
||||
top: -8px;
|
||||
}
|
||||
.checkbox input:checked:after,
|
||||
input:checked + .checkbox-icon:after {
|
||||
border-color: rgb(19, 229, 182);
|
||||
top:20%;
|
||||
left:11%;
|
||||
}
|
||||
.item-content {
|
||||
width: 90%;
|
||||
margin-left: 10%;
|
||||
}
|
||||
}
|
||||
.item-checkbox .checkbox {
|
||||
margin-left: 10%;
|
||||
top: 55%;
|
||||
}
|
||||
.checkbox input:before,
|
||||
.checkbox .checkbox-icon:before{
|
||||
border-color:$soft-blue;
|
||||
}
|
||||
.checkbox input:checked:before,
|
||||
.checkbox input:checked + .checkbox-icon:before {
|
||||
border-color: rgb(19, 229, 182);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1000px){
|
||||
#onboarding-collect-email{
|
||||
#collect-email{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue