Skip to content

Instantly share code, notes, and snippets.

@nathanbrauer
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanbrauer/dd7ee6240e43bb4e1b0a to your computer and use it in GitHub Desktop.
Save nathanbrauer/dd7ee6240e43bb4e1b0a to your computer and use it in GitHub Desktop.
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