Last active
August 29, 2015 14:04
-
-
Save nathanbrauer/dd7ee6240e43bb4e1b0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ContactPage_Controller extends Page_Controller{ | |
private static $allowed_actions = array('ContactForm'); | |
public function ContactForm(){ | |
return BootstrapForm::create( | |
$this, | |
"ContactForm", | |
FieldList::create(TextField::create("Name")->addHelpText('Enter some text above')), | |
FieldList::create(FormAction::create("doStuff","Click this!")->setStyle("success")) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment