Source of file FoundationForm.php
Size: 0,840 Bytes - Last Modified: 2021-12-23T10:19:31+00:00
/var/www/docs.ssmods.com/process/src/code/forms/FoundationForm.php
1234567891011121314151617181920212223242526272829303132333435 | <?php /** * Builds a form that renders {@link FormField} objects * using templates that are compatible with Zurb Foundation. * Extra methods are decorated on to the {@link FoundationFormField} * objects and their subclasses to support special features * of the framework. * * @author Ryan Wachtl * @package foundationforms */ class FoundationForm extends Form { /** * @var string The template that will render this form */ protected $template = "FoundationForm"; /** * Includes the dependency if necessary, applies the Bootstrap templates, * and renders the form HTML output * * @return string */ public function forTemplate() { $this->Fields()->bootstrapify(); $this->Actions()->bootstrapify(); Requirements::css(FOUNDATIONFORMS_DIR . '/css/foundationforms.css'); return parent::forTemplate(); } } |