Explorar o código

feat(webapp): sign-up: add outreach preference checkbox

Peter Thomassen %!s(int64=3) %!d(string=hai) anos
pai
achega
7de41c0bbc
Modificáronse 1 ficheiros con 23 adicións e 3 borrados
  1. 23 3
      www/webapp/src/views/SignUp.vue

+ 23 - 3
www/webapp/src/views/SignUp.vue

@@ -121,14 +121,30 @@
                 </v-row>
               </v-container>
 
+              <v-layout class="justify-center">
+                <v-checkbox
+                      v-model="outreach_preference"
+                      hide-details
+                      type="checkbox"
+                      :disabled="working"
+                      tabindex="5"
+                >
+                  <template slot="label">
+                    <v-flex>
+                      Tell me about deSEC developments. No ads. <small>(recommended)</small>
+                    </v-flex>
+                  </template>
+                </v-checkbox>
+              </v-layout>
+
               <v-layout class="justify-center">
                 <v-checkbox
                       v-model="terms"
+                      hide-details="auto"
                       type="checkbox"
-                      required
                       :disabled="working"
                       :rules="terms_rules"
-                      tabindex="5"
+                      tabindex="6"
                 >
                   <template slot="label">
                     <v-flex>
@@ -147,7 +163,7 @@
                       type="submit"
                       :disabled="working"
                       :loading="working"
-                      tabindex="6"
+                      tabindex="7"
               >Sign up</v-btn>
             </v-card-actions>
           </v-card>
@@ -195,6 +211,9 @@
       captcha_errors: [],
       captcha_kind: 'image',
 
+      /* outreach preference */
+      outreach_preference: true,
+
       /* terms field */
       terms: false,
       terms_rules: [v => !!v || 'You can only use our service if you agree with the terms'],
@@ -258,6 +277,7 @@
               solution: this.captchaSolution.toUpperCase(),
             },
             domain: domain,
+            outreach_preference: this.outreach_preference,
           });
           this.$router.push({name: 'welcome', params: domain !== '' ? {domain: domain} : {}});
         } catch (ex) {