Skip to content

Commit

Permalink
Remove star from required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Biptaste committed Nov 15, 2017
1 parent 716d75e commit 7eb5ab3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/views/checkbox.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@if(is_int($key)){{$val}}@else{{$key}}="{{$val}}"@endif
@endforeach
>
{!! $label !!} @if($required)<i class="{{$config['requiredClass']}}">*</i>@endif
{!! $label !!}
</label>
@if($errors)
<ul class="{{$config['errorMessageClass']}}">
Expand Down
4 changes: 3 additions & 1 deletion src/views/input.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div class="{{$config['divClass']}} {{$wrapperClass}} @if($errors){{$config['errorClass']}} @endif" @foreach($wrapperAttr as $key => $val) @if(is_int($key)){{$val}}@else{{$key}}="{{$val}}"@endif @endforeach>
@if($label) <label for="{{$name}}">{!! $label !!} @if($required)<i class="{{$config['requiredClass']}}">*</i>@endif</label>@endif
@if($label)
<label for="{{$name}}">{!! $label !!}</label>
@endif
<input
type="{{$type}}"
id="{{$name}}"
Expand Down
2 changes: 1 addition & 1 deletion src/views/radio.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="{{$config['divClass']}} {{$wrapperClass}} @if($errors){{$config['errorClass']}} @endif" @foreach($wrapperAttr as $key => $val) @if(is_int($key)){{$val}}@else{{$key}}="{{$val}}"@endif @endforeach>
<label>{!!$label!!} @if($required) <i class="{{$config['requiredClass']}}">*</i> @endif</label>
<label>{!!$label!!}</label>
@if($errors)
<ul class="{{$config['errorMessageClass']}}">
@foreach ($errors as $error)
Expand Down
4 changes: 3 additions & 1 deletion src/views/select.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<div class="{{$config['divClass']}} {{$wrapperClass}} @if($errors){{$config['errorClass']}} @endif" @foreach($wrapperAttr as $key => $val) @if(is_int($key)){{$val}}@else{{$key}}="{{$val}}"@endif @endforeach>
@if($label) <label for="{{$name}}">{!! $label !!} @if($required)<i class="{{$config['requiredClass']}}">*</i>@endif</label>@endif
@if($label)
<label for="{{$name}}">{!! $label !!}</label>
@endif
<select
id="{{$name}}"
name="{{$name}}"
Expand Down
5 changes: 3 additions & 2 deletions src/views/textarea.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div class="{{$config['divClass']}} {{$wrapperClass}} @if($errors){{$config['errorClass']}} @endif" @foreach($wrapperAttr as $key => $val) @if(is_int($key)){{$val}}@else{{$key}}="{{$val}}"@endif @endforeach>
@if($label) <label for="{{$name}}">{!!$label!!} @if($required)<i class="{{$config['requiredClass']}}">*</i>@endif</label>@endif
@if($label)
<label for="{{$name}}">{!!$label!!}</label>
@endif
<textarea
type="{{$type}}"
id="{{$name}}"
name="{{$name}}"
@if($required)required @endif
Expand Down

0 comments on commit 7eb5ab3

Please sign in to comment.