@@ -19,6 +19,7 @@ var contactDict = {
19
19
email : "Email" ,
20
20
cell : "Cell" ,
21
21
includeDetails : "Share information I enter about my tenancy" ,
22
+ subscribe : "Subscribe to newsletters from Housing Now!" ,
22
23
disclaimer : "Any information you share is kept confidential and is only used to assist you with your case." ,
23
24
submitText : "Connect with us" ,
24
25
} ,
@@ -30,6 +31,7 @@ var contactDict = {
30
31
email : "Correo Electrónico" ,
31
32
cell : "Celular" ,
32
33
includeDetails : "Compartir información que ingreso sobre mi arrendamiento" ,
34
+ subscribe : "suscribirse a boletines de Housing Now!" ,
33
35
disclaimer : "Cualquier información que comparta se mantiene confidencial y solo se utiliza para ayudarlo con su caso." ,
34
36
submitText : "Conéctate con nosotros" ,
35
37
}
@@ -47,6 +49,7 @@ class QuickContactForm extends React.Component {
47
49
cell : "" ,
48
50
email : "" ,
49
51
includeDetails : true ,
52
+ subscribe : false ,
50
53
submitText : props . submitText ,
51
54
dict : contactDict ,
52
55
} ;
@@ -60,8 +63,8 @@ class QuickContactForm extends React.Component {
60
63
} )
61
64
. then ( ( ) => {
62
65
const quickFormSubmit = true ;
63
- const { includeDetails, firstName, lastName, email, cell } = this . state ;
64
- updateContext ( { quickFormSubmit, includeDetails, firstName, lastName, email, cell } ) ;
66
+ const { includeDetails, subscribe , firstName, lastName, email, cell } = this . state ;
67
+ updateContext ( { quickFormSubmit, includeDetails, subscribe , firstName, lastName, email, cell } ) ;
65
68
66
69
if ( this . state . submitDestination ) {
67
70
navigate ( this . state . submitDestination ) ;
@@ -73,7 +76,7 @@ class QuickContactForm extends React.Component {
73
76
74
77
} ;
75
78
76
- checkBoxes = { "includeDetails" : true } ;
79
+ checkBoxes = { "includeDetails" : true , "subscribe" : true } ;
77
80
78
81
handleChange = e => {
79
82
var value = e . target . value ;
@@ -84,7 +87,7 @@ class QuickContactForm extends React.Component {
84
87
} ;
85
88
86
89
render ( ) {
87
- const { firstName, lastName, cell, email, includeDetails, submitText, dict, autohide } = this . state ;
90
+ const { firstName, lastName, cell, email, includeDetails, subscribe , submitText, dict, autohide } = this . state ;
88
91
return (
89
92
< AppContext . Consumer >
90
93
{ ( { appCtx, updateContext } ) => (
@@ -105,8 +108,11 @@ class QuickContactForm extends React.Component {
105
108
< fieldset >
106
109
< label className = "form-control" > < input type = "checkbox" name = "includeDetails" checked = { includeDetails } onChange = { this . handleChange } /> { dict [ appCtx . lang ] . includeDetails } </ label >
107
110
</ fieldset >
111
+ < fieldset >
112
+ < label className = "form-control" > < input type = "checkbox" name = "subscribe" checked = { subscribe } onChange = { this . handleChange } /> { dict [ appCtx . lang ] . subscribe } </ label >
113
+ </ fieldset >
108
114
< p className = "disclaimer" > { dict [ appCtx . lang ] . disclaimer } </ p >
109
-
115
+
110
116
< button type = "submit" > { submitText ? submitText : dict [ appCtx . lang ] . submitText } </ button >
111
117
</ form >
112
118
</ div >
@@ -281,4 +287,4 @@ class FullContactForm extends React.Component {
281
287
}
282
288
283
289
export default QuickContactForm ;
284
- export { QuickContactForm , FullContactForm } ;
290
+ export { QuickContactForm , FullContactForm } ;
0 commit comments