Example #1
0
            </div>
        </div>', Form::radio($Field->getName(), true, $Field->checked) . ' ' . $label);
});
Form::macro('bootText', function ($Field) {
    return Form::bootWrapped($Field, function ($Field) {
        return Form::text($Field->getName(), $Field->getValue(), array('class' => 'form-control input-lg', 'maxlength' => $Field->get('maxlength')));
    });
});
Form::macro('bootHidden', function ($Field) {
    return Form::hidden($Field->getName(), $Field->getValue(), array('class' => 'form-control input-lg', 'maxlength' => $Field->get('maxlength')));
});
Form::macro('bootTextArea', function ($Field) {
    return Form::bootWrapped($Field, function ($Field) {
        return Form::textarea($Field->getName(), $Field->getValue(), array('class' => 'form-control input-lg'));
    });
});
Form::macro('bootPassword', function ($Field) {
    return Form::bootWrapped($Field, function ($Field) {
        return Form::password($Field->getName(), array('class' => 'form-control input-lg'));
    });
});
Form::macro('bootSelect', function ($Field) {
    return Form::bootWrapped($Field, function ($Field) {
        return Form::select($Field->getName(), $Field->getData(), $Field->getValue(), array('class' => 'form-control input-lg'));
    });
});
Form::macro('bootMultiSelect', function ($Field) {
    return Form::bootWrapped($Field, function ($Field) {
        return Form::select($Field->getName(), $Field->getData(), $Field->getValue(), array('class' => 'form-control input-lg', 'multiple' => true));
    });
});