Esempio n. 1
0
 public function ContactForm()
 {
     $form = BootstrapForm::create($this, __FUNCTION__, FieldList::create(TextField::create('FullName', 'Full Name'), TextField::create('Phone', 'Phone Number'), TextField::create('Email', 'Email Address'), TextAreaField::create('Message', 'Message')), Fieldlist::create(FormAction::create('sendContactForm', 'Send Message')->addExtraClass('square-btn')));
     return $form;
 }
Esempio n. 2
0
 public function NewsletterForm()
 {
     $form = BootstrapForm::create($this, __FUNCTION__, FieldList::create(EmailField::create('Email', '')->setAttribute('placeholder', 'Email Address')), Fieldlist::create(FormAction::create('sendNewsletterForm', 'Sign Up')->setStyle('primary')))->setLayout('inline');
     return $form;
 }
Esempio n. 3
0
 public function CommentForm()
 {
     $form = BootstrapForm::create($this, __FUNCTION__, Fieldlist::create(TextField::create('Name', '')->setAttribute('placeholder', 'Name'), TextAreaField::create('Comment', '')->setAttribute('placeholder', 'Type You Comment Here')), FieldList::create(FormAction::create('handleComment', 'Post Comment')->setStyle('primary')->addExtraClass('btn square-btn')), RequiredFields::create('Name', 'Comment'));
     return $form;
 }