Beispiel #1
0
 public function init()
 {
     $this->content = HTML::openTag('button', ['type' => 'submit', 'name' => $this->owner . '_submit']);
     $this->content .= $this->label;
     $this->content .= HTML::closeTag('button');
     return $this;
 }
Beispiel #2
0
 public function init()
 {
     $this->content = HTML::openTag('input', ['type' => 'password', 'name' => $this->owner . '_password[]', 'placeholder' => 'Password']);
     if ($this->repeat) {
         $this->content .= HTML::openTag('input', ['type' => 'password', 'name' => $this->owner . '_password[]', 'placeholder' => 'Repeat Password']);
     }
     return $this;
 }
Beispiel #3
0
 public function __construct($action, $method, $enctype = 'application/x-www-form-urlencoded')
 {
     $this->header = HTML::openTag('form', ['action' => $action, 'method' => $method, 'enctype' => $enctype]);
     $this->footer = HTML::closeTag('form');
     $this->form = new Form('signup');
     $this->form->add(new Text('username'));
     $this->form->add(new Password());
     $this->form->add(new Submit('Sign Up'));
 }
Beispiel #4
0
 public function init()
 {
     $this->content = HTML::openTag('input', ['type' => 'text', 'name' => $this->owner . '_' . $this->text, 'placeholder' => ucfirst($this->text)]);
     return $this;
 }
Beispiel #5
0
 public function init()
 {
     $this->content = HTML::openTag('input', ['type' => 'text', 'name' => $this->owner . '_searchterm', 'placeholder' => 'Search']);
     return $this;
 }
Beispiel #6
0
 public function init()
 {
     $this->content = HTML::openTag('input', ['type' => 'file', 'name' => $this->owner . '_file[]']);
     return $this;
 }