X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/bd73c88eddb946d9318f2a5f45b5a701771328d8..refs/pull/1433/head:/resources/views/form/text.blade.php diff --git a/resources/views/form/text.blade.php b/resources/views/form/text.blade.php index 3379b69b7..948a55cbc 100644 --- a/resources/views/form/text.blade.php +++ b/resources/views/form/text.blade.php @@ -1,5 +1,5 @@ has($name)) class="neg" @endif + @if($errors->has($name)) class="text-neg" @endif @if(isset($placeholder)) placeholder="{{$placeholder}}" @endif @if(isset($tabindex)) tabindex="{{$tabindex}}" @endif @if(isset($model) || old($name)) value="{{ old($name) ? old($name) : $model->$name}}" @endif>