Last active
August 29, 2015 14:09
-
-
Save harrygr/8de0393c9466d4965daa to your computer and use it in GitHub Desktop.
Laravel Blade: Bootstrap form percent number input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ Form::label(':name', ':label', ['class'=>'control-label']) }} | |
<div class="form-group col-md-3 col-sm-3 col-xs-6 {{ $errors->has(':name') ? 'has-error' : '' }}"> | |
<div class="input-group"> | |
{{ Form::input('number', ':name', null, ['class'=>'form-control percent', 'step' => 'any']) }} | |
<span class="input-group-addon">%</span> | |
</div> | |
{{ $errors->first(':name', '<span class="help-block">:message</span>') }} | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment