Commit 436448036ff44530b3e287f77d6cf005de56be0d

Authored by Jarrett Jordaan
1 parent 0eb60618

PT-2280465: Updated Registration page of install wizard.

Committed by: Jarrett Jordaan

Reviewed by: Megan Watson
setup/wizard/steps/registration.php
... ... @@ -90,10 +90,12 @@ class registration extends Step
90 90 $this->temp_variables['first_name'] = $this->getPostSafe($reg['first_name']);
91 91 $this->temp_variables['last_name'] = $this->getPostSafe($reg['last_name']);
92 92 $this->temp_variables['email_address'] = $this->getPostSafe($reg['email_address']);
  93 + $this->temp_variables['reasons'] = $this->getPostSafe($reg['reasons']);;
93 94 $this->temp_variables['sel_country'] = $this->getPostSafe($reg['sel_country']);
94 95 $this->temp_variables['sel_industry'] = $this->getPostSafe($reg['sel_industry']);
95 96 $this->temp_variables['sel_organization_size'] = $this->getPostSafe($reg['sel_organization_size']);
96 97 $this->temp_variables['installation_guid'] = $this->getPostSafe($reg['installation_guid']);
  98 + $this->temp_variables['opt_in'] = $this->getPostSafe($reg['opt_in']);;
97 99 }
98 100  
99 101 /**
... ... @@ -113,11 +115,13 @@ class registration extends Step
113 115 $this->temp_variables['first_name'] = $_POST['submitted']['first_name'];
114 116 $this->temp_variables['last_name'] = $_POST['submitted']['last_name'];
115 117 $this->temp_variables['email_address'] = $_POST['submitted']['email_address'];
  118 + $this->temp_variables['reasons'] = $_POST['submitted']['reasons'];
116 119 $this->temp_variables['sel_country'] = $_POST['submitted']['country'];
117 120 $this->temp_variables['sel_industry'] = $_POST['submitted']['industry'];
118 121 $this->temp_variables['sel_organization_size'] = $_POST['submitted']['organization_size'];
119 122 // System GUID, comes from session or db, not POST
120 123 $this->temp_variables['installation_guid'] = $this->util->getSystemIdentifier(false);
  124 + $this->temp_variables['opt_in'] = $_POST['submitted']['opt_in'];
121 125 }
122 126  
123 127 /**
... ...
setup/wizard/templates/registration.tpl
... ... @@ -22,7 +22,7 @@
22 22 <br/>
23 23 <div id="step_content_<?php echo $step_name; ?>" class="step">
24 24 <span class="error" id="reg_error"></span>
25   - <?php $rowspan = "6";?>
  25 + <?php $rowspan = "8";?>
26 26 <?php if(WINDOWS_OS) $input_width = 40; else { $input_width = 28; } ?>
27 27 <table class="registration_template">
28 28 <tr>
... ... @@ -41,6 +41,10 @@
41 41 <td><input value="<?php echo $email_address; ?>" name='submitted[email_address]' id='email' size='<?php echo $input_width; ?>' style="float:left;"/></td>
42 42 </tr>
43 43 <tr>
  44 + <td><label for='email'>Reasons</label></td>
  45 + <td><input value="<?php echo $reasons; ?>" name='submitted[reasons]' id='reasons' size='<?php echo $input_width; ?>' style="float:left;"/></td>
  46 + </tr>
  47 + <tr>
44 48 <td><label for='country'>Country</label></td>
45 49 <td>
46 50 <select id='country' class="registration_select" name='submitted[country]'>
... ... @@ -96,6 +100,11 @@
96 100 </select>
97 101 </td>
98 102 </tr>
  103 + <tr>
  104 + <td><label for='opt_in'>Commumity updates</label></td>
  105 + <td><input type='checkbox' id="opt_in" name='opt_in' value='enable' checked style="float:right;"/></td>
  106 +
  107 + </tr>
99 108 </table>
100 109 <input type='hidden' name='form_id' value='webform_client_form_242' />
101 110 <input type='hidden' name='op' value='Submit' />
... ...