universal 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c71d8acc116820555b8101bee77db5eaeda8af9e74abcc3fce9511cdc1745e14
4
- data.tar.gz: 4fa17d9c456c00ff65dae1074f3a0a4c36dfdc69c808f330b4046a34389682d2
3
+ metadata.gz: 2b5180c93a04014d404961deaa9e524c2aa3970c386fd985a66160d1dfe84d00
4
+ data.tar.gz: 79cdf0a3c8015d7d6a9a4da9c377fce3416bc8f09757df5962b3878f1bde281b
5
5
  SHA512:
6
- metadata.gz: d6f4261e69c3ef8b11b09fb8590d6cd1afb95d100b46c9299220cde8ae29518518886f0d5cd4b7d9e4341ee8a3468ebcddfa99724dcbb4632dea71c77fc3e527
7
- data.tar.gz: a1b144dc9e097ae692e262169776a3300fa843c759e7b9033465506854ead5e707c775574a566b3124c0cb783e38ac794de0d44c054aaced4251f1c80cc03f05
6
+ metadata.gz: b5013e2b46a89f15c86a32ef753f3fc6f902c84a7b4e33a24bb991a8299ee83a755329240924bf4c2dd49a6b647ae3b9c6db423384d0563514769250fcdf4948
7
+ data.tar.gz: d49d7321344c7cc224530a422ee260e720dc57d2c4c8d8e39ae6e6f8e4458f32aacf001910fb6ef52b9f74b35d066a917236095c59845bd088c83b9b4e5dd385
@@ -32,14 +32,14 @@
32
32
  <div class="row">
33
33
  <div class="col-sm-6">
34
34
  <div class="form-group">
35
- <label for="firstname">Prénom</label>
36
- <input type="text" class="form-control" id="firstname">
35
+ <label for="firstname">Prénom<span style="color:red">*</span></label>
36
+ <input type="text" class="form-control" id="firstname" required>
37
37
  </div>
38
38
  </div>
39
39
  <div class="col-sm-6">
40
40
  <div class="form-group">
41
- <label for="lastname">Nom</label>
42
- <input type="text" class="form-control" id="lastname">
41
+ <label for="lastname">Nom<span style="color:red">*</span></label>
42
+ <input type="text" class="form-control" id="lastname" required>
43
43
  </div>
44
44
  </div>
45
45
  </div>
@@ -84,8 +84,8 @@
84
84
  <div class="row">
85
85
  <div class="col-sm-6">
86
86
  <div class="form-group">
87
- <label for="country">Pays</label>
88
- <input type="text" class="form-control" id="country">
87
+ <label for="country">Pays<span style="color:red">*</span></label>
88
+ <input type="text" class="form-control" id="country" required>
89
89
  </div>
90
90
  </div>
91
91
  </div>
@@ -176,6 +176,7 @@
176
176
  <br>
177
177
  <div class="row">
178
178
  <div class="col-md-12">
179
+ <div class="alert alert-info" role="alert" id="process" style="display:none">Votre paiement est en cours de traitement, veuillez patienter quelques instants</div>
179
180
  <div class="alert alert-success" role="alert" id="success" style="display:none">Félicitations ! Vous recevrez un email de confirmation dans quelques minutes, ainsi qu'un formulaire vous permettant de personnaliser les informations de votre site.</div>
180
181
  <div class="alert alert-warning" role="alert" id="warning" style="display:none">Veillez à remplir tous les champs obligatoires</div>
181
182
  <div class="alert alert-danger" role="alert" id="fail" style="display:none">Aie ! Une erreur est survenue pendant votre achat, vous n'avez pas été débité.</div>
@@ -38,13 +38,16 @@ function hostingshow() {
38
38
  }
39
39
 
40
40
  function setOutcome(result) {
41
- var successElement = document.getElementById('success');
41
+ var successElement = document.getElementById('success');
42
+ var processElement = document.getElementById('process');
42
43
  var warningElement = document.getElementById('warning');
43
44
  warningElement.style.display = 'none';
44
- var errorElement = document.getElementById('fail');
45
+ var errorElement = document.getElementById('fail');
46
+ errorElement.style.display = 'none';
45
47
 
46
- if (result.token) {
47
-
48
+ if (result.token) {
49
+
50
+ processElement.style.display = '';
48
51
  Stamplay.init('parsiweb');
49
52
 
50
53
  var userData = {
@@ -77,34 +80,41 @@ function setOutcome(result) {
77
80
  })
78
81
  .then(function(res) {
79
82
  // success
83
+ processElement.style.display = 'none';
80
84
  successElement.style.display = ''
81
85
  }, function(err) {
82
86
  // error
87
+ processElement.style.display = 'none';
83
88
  errorElement.style.display = ''
84
89
  cb("unable to send form data")
85
90
  })
86
91
  }, function(err) {
87
92
  // error
93
+ processElement.style.display = 'none';
88
94
  errorElement.style.display = ''
89
95
  cb("unable to create customer")
90
96
  })
91
97
  }, function(err){
92
98
  // error
99
+ processElement.style.display = 'none';
93
100
  errorElement.style.display = ''
94
101
  cb("unable to create card")
95
102
  })
96
103
  }, function(err) {
97
104
  // error
105
+ processElement.style.display = 'none';
98
106
  errorElement.style.display = ''
99
107
  cb("unable to login user")
100
108
  })
101
109
  }, function(err) {
102
110
  // error
111
+ processElement.style.display = 'none';
103
112
  errorElement.style.display = ''
104
113
  cb("unable to signup user")
105
114
  })
106
115
 
107
- } else if (result.error) {
116
+ } else if (result.error) {
117
+ processElement.style.display = 'none';
108
118
  errorElement.style.display = ''
109
119
  }
110
120
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: universal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondrej Svestka