concrete/src/Application/Service/UserInterface.php
public function submit($text, $formID = false, $buttonAlign = 'right', $innerClass = null, $args = [])
    {
        if ('right' == $buttonAlign) {
            $innerClass .= ' pull-right';
        } elseif ('left' == $buttonAlign) {
            $innerClass .= ' pull-left';
        }

        if (!$formID) {
            $formID = 'button';
        }
        $argsstr = '';
        foreach ($args as $k => $v) {
            $argsstr .= $k . '="' . $v . '" ';
        }

        return '<input type="submit" class="btn ' . $innerClass . '" value="' . $text . '" id="ccm-submit-' . $formID . '" name="ccm-submit-' . $formID . '" ' . $argsstr . ' />';
    }
public function submit($text, $formID = false, $buttonAlign = 'right', $innerClass = null, $args = [])
    {
        if ('right' == $buttonAlign) {
            $innerClass .= ' pull-right';
        } elseif ('left' == $buttonAlign) {
            $innerClass .= ' pull-left';
        }

        if (!$formID) {
            $formID = 'button';
        }
        $argsstr = '';
        foreach ($args as $k => $v) {
            $argsstr .= $k . '="' . $v . '" ';
        }

        return '<input type="submit" class="btn ' . $innerClass . '" value="' . $text . '" id="ccm-submit-' . $formID . '" name="ccm-submit-' . $formID . '" ' . $argsstr . ' />';
    }
public function submit ( $ text , $ formID = false , $ buttonAlign = 'right' , $ innerClass = null , $ args = [ ] ) { if ( 'right' == $ buttonAlign ) { $ innerClass .= ' pull-right' ; } elseif ( 'left' == $ buttonAlign ) { $ innerClass .= ' pull-left' ; } if ( ! $ formID ) { $ formID = 'button' ; } $ argsstr = '' ; foreach ( $ args as $ k => $ v ) { $ argsstr .= $ k . '="' . $ v . '" ' ; } return '<input type="submit" class="btn ' . $ innerClass . '" value="' . $ text . '" id="ccm-submit-' . $ formID . '" name="ccm-submit-' . $ formID . '" ' . $ argsstr . ' />' ; }
Generates a submit button in the Concrete style.

@param string $text The text of the button
@param bool|string $formID The form this button will submit
@param string $buttonAlign
@param string $innerClass
@param array $args Extra args passed to the link

@return string
Generates a submit button in the Concrete style .