Merge branch 'cc-2425-tweak-phone-home' into devel

This commit is contained in:
James 2011-06-26 00:45:30 -04:00
commit a936212355
3 changed files with 52 additions and 19 deletions

View file

@ -136,6 +136,13 @@ class Application_Form_RegisterAirtime extends Zend_Form
'ViewHelper'
)
));
// checkbox for privacy policy
$checkboxPrivacy = new Zend_Form_Element_Checkbox("Privacy");
$checkboxPrivacy->setLabel("By checking this box, I agree to Sourcefabric's <a id=\"link_to_privacy\" href=\"\">privacy policy</a>.")
->setDecorators(array('ViewHelper'))
->setValue(1);
$this->addElement($checkboxPrivacy);
}
}

View file

@ -161,5 +161,12 @@
</dl>
</fieldset>
</div>
<div>
<br>
<label class="optional" for="Privacy">
<?php echo $this->element->getElement('Privacy') ?>
<?php echo $this->element->getElement('Privacy')->getLabel() ?>
</label>
</div>
</form>
</div>