Create a Boostrap file upload button.

@param  string  $name
@param  string  $label
@param  array   $options
@return string
345746
public function file($name, $label = null, array $options = [])
    {
        $label = $this->getLabelTitle($label, $name);

        $options = array_merge(['class' => 'filestyle', 'data-buttonBefore' => 'true'], $options);

        $options = $this->getFieldOptions($options, $name);
        $inputElement = $this->form->input('file', $name, null, $options);

        $wrapperOptions = $this->isHorizontal() ? ['class' => $this->getRightColumnClass()] : [];
        $wrapperElement = '<div' . $this->html->attributes($wrapperOptions) . '>' . $inputElement . $this->getFieldError($name) . $this->getHelpText($name, $options) . '</div>';

        return $this->getFormGroup($name, $label, $wrapperElement);
    }
380929
public function addTextarea($name, $label = '', $is_mandatory = true )
    {
        $e = new \FrenchFrogs\Form\Element\Textarea($name, $label);
        $this->addElement($e);

        if ($is_mandatory) {
            $e->addRule('required');
        } else {
            $e->addFilter('nullable');
        }

        return $e;
    }
1081721
private function setFormFieldLabel($name, $options)
    {
        if (isset($options['label']) && $options['label'] != false) {
            $label = isset($options['label']) ? $options['label'] : $this->formatFieldLabel($name);

            return FormFacade::label($name, $label, ['class' => 'form-label']).'&nbsp;';
        } elseif (!isset($options['label'])) {
            return FormFacade::label($name, $this->formatFieldLabel($name), ['class' => 'form-label']).'&nbsp;';
        }
    }
178013
public function addLabelDate($name, $label = '')
    {
        $e = new \FrenchFrogs\Form\Element\LabelDate($name, $label);
        $this->addElement($e);

        return $e;
    }
325278
public function make($name, $options = [])
    {
        if (!$name || !$this->exists($name)) {
            return null;
        }

        return $name($options);
    }
271092
public function button($name, $options = array())
    {
        $options += array(
            "type" => "button",
            "label" => "Button",
            "id"    => $this->id($name),
            "name"  => $this->name($name),
        );

        $label = $options["label"];
        unset($options["label"]);

        return sprintf('<button %s>%s</button>', $this->arrayToHtmlAttributes($options), $label);
    }
1356570
public function checkboxElement($name, $label = null, $value = 1, $checked = null, $inline = false, array $options = [])
    {
        $label = $label === false ? null : $this->getLabelTitle($label, $name);

        $labelOptions = $inline ? ['class' => 'checkbox-inline'] : [];
        $inputElement = $this->form->checkbox($name, $value, $checked, $options);
        $labelElement = '<label ' . $this->html->attributes($labelOptions) . '>' . $inputElement . $label . '</label>';

        return $inline ? $labelElement : '<div class="checkbox">' . $labelElement . '</div>';
    }
1344233
public function group($Name, $Options = null)
    {
    
        if (!$Name) {
            throw $this->newException('You must specify a label for the group!');
        }
        
        if ($Options) {
            if (!is_array($Options)) {
                throw $this->newException('Options must be defined as an array!');
            }
            if (array_key_exists('Collapsed', $Options)) {
                $Options['Collapsed'] = ($Options['Collapsed'])?'true':'false';
            }
        }
        
        return $this->fb(null, $Name, FirePHP::GROUP_START, $Options);
    }
1231824
public function addButton($label = null, $options = array())
    {
        /** @type Button $but */
        $but = $this->add('Button', $options);
        $but->set($label);
        if ($this->vertical) {
            $but->js(true)->css('margin-top', '-3px');
        }

        return $but;
    }
1025007
protected function formatOption($name, $value, $label)
    {
        return '<option value="'.$value.'"'
                    .(isset($this->filters[$name]) && strpos($this->filters[$name], $value) === 0 ? ' selected' : '')
                .'>'.(isset($label) ? $label : $value).'</option>';
    }
432041
public function addonButton($label, $options = [])
    {
        $attributes = array_merge(['class' => 'btn', 'type' => 'button'], $options);

        if (isset($options['class'])) {
            $attributes['class'] .= ' btn';
        }

        return '<div class="input-group-btn"><button ' . $this->html->attributes($attributes) . '>'.$label.'</button></div>';
    }
1129731
public function adCKEditor($name, $options = array())
    {
        $CKEditor = new \PlaygroundCore\Service\CKEditor();

        $CKEditor->returnOutput = true;

        /*
         * General module configurations
         */
        if (isset($this->Config['BasePath'])) {
            $CKEditor->basePath            = $this->Config['BasePath'].'/';
        }
        if (isset($this->Config['Toolbar'])) {
            $CKEditor->config['toolbar']    = $this->Config['Toolbar'];
        }
        if (isset($this->Config['Width'])) {
            $CKEditor->config['width']      = $this->Config['Width'];
        }
        if (isset($this->Config['Height'])) {
            $CKEditor->config['height']     = $this->Config['Height'];
        }
        if (isset($this->Config['Language'])) {
            $CKEditor->config['language']   = $this->Config['Language'];
        }
        if (isset($this->Config['Color'])) {
            $CKEditor->config['uiColor']    = $this->Config['Color'];
        }
        if (isset($this->Config['stylesSet'])) {
            $CKEditor->config['stylesSet']  = $this->Config['stylesSet'];
        }
        if (isset($this->Config['contentsCss'])) {
            $CKEditor->config['contentsCss']= $this->Config['contentsCss'];
        }
        if (isset($this->Config['templates_files'])) {
            $CKEditor->config['templates_files']  = $this->Config['templates_files'];
        }

        // El Finder
        if (isset($this->Config['ElFinderBaseURL'])) {
            $CKEditor->config['filebrowserBrowseUrl']    = $this->Config['ElFinderBaseURL'];
        }
        if (isset($this->Config['ElFinderWindowWidth'])) {
            $CKEditor->config['filebrowserWindowWidth']  = $this->Config['ElFinderWindowWidth'];
        }
        if (isset($this->Config['ElFinderWindowHeight'])) {
            $CKEditor->config['filebrowserWindowHeight'] = $this->Config['ElFinderWindowHeight'];
        }

        /*
         * special confirmations in your form
         */
        if (isset($options['BasePath'])) {
            $CKEditor->basePath            = $options['BasePath'].'/';
        }
        if (isset($options['Toolbar'])) {
            $CKEditor->config['toolbar']   = $options['Toolbar'];
        }
        if (isset($options['toolbar'])) {
            $CKEditor->config['toolbar']   = $options['toolbar'];
        }
        if (isset($options['Width'])) {
            $CKEditor->config['width']     = $options['Width'];
        }
        if (isset($options['Height'])) {
            $CKEditor->config['height']    = $options['Height'];
        }
        if (isset($options['Language'])) {
            $CKEditor->config['language']  = $options['Language'];
        }
        if (isset($options['Color'])) {
            $CKEditor->config['uiColor']   = $options['uiColor'];
        }
        if (isset($options['stylesSet'])) {
            $CKEditor->config['stylesSet'] = $options['stylesSet'];
        }
        if (isset($options['contentsCss'])) {
            $CKEditor->config['contentsCss'] = $options['contentsCss'];
        }
        if (isset($options['templates_files'])) {
            $CKEditor->config['templates_files']  = $options['templates_files'];
        }

        // El Finder
        if (isset($options['ElFinderBaseURL'])) {
            $CKEditor->config['filebrowserBrowseUrl']    = $options['ElFinderBaseURL'];
        }
        if (isset($options['ElFinderWindowWidth'])) {
            $CKEditor->config['filebrowserWindowWidth']  = $options['ElFinderWindowWidth'];
        }
        if (isset($options['ElFinderWindowHeight'])) {
            $CKEditor->config['filebrowserWindowHeight'] = $options['ElFinderWindowHeight'];
        }

        echo $CKEditor->replace($name);
    }
759357
public function submit(string $name, array $options = []): FieldTypeInterface
    {
        return (new SubmitType($name))
            ->setLocale($this->app->getLocale())
            ->setViewFactory($this->viewFactory)
            ->setOptions($options);
    }
530879
public function addButton($name, $label = '%s', $link = '#', $binds = [], $attr = [] )
    {
        $c = new Column\Button($name, $label, $link, $binds, $attr);
        $c->setOptionAsDefault();
        $this->addColumn($c);

        return $c;
    }
1170829
public static function create(string $name, string $label = null): self
    {
        return new self($name, $label);
    }
665666
protected function renderElement(string $name, array $options = []) : string
    {
        return $this->config->getView()
            ->element($name, $options);
    }
661338
public function resetLink($label, array $options = [])
    {
        return $this->Html->link($label, $this->resetUrl(), $options);
    }