Skip to content

Commit 196710d

Browse files
committed
Fixed bug in error validation display
1 parent 194c0b6 commit 196710d

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

app/views/backend/categories/edit.blade.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,26 @@
2727
<div class="profile-box">
2828
<br>
2929
<form class="form-horizontal" method="post" action="" autocomplete="off">
30-
<!-- CSRF Token -->
31-
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
30+
<!-- CSRF Token -->
31+
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
3232

33-
<!-- Category Title -->
34-
<div class="control-group {{ $errors->has('name') ? 'error' : '' }}">
35-
<label class="control-label" for="name">Category Name</label>
36-
<div class="controls">
37-
<input type="text" name="name" id="name" value="{{ Input::old('name', $category->name) }}" />
38-
{{ $errors->first('title', '<span class="help-inline">:message</span>') }}
39-
</div>
40-
</div>
33+
<!-- Category Title -->
34+
<div class="control-group {{ $errors->has('name') ? 'error' : '' }}">
35+
<label class="control-label" for="name">Category Name</label>
36+
<div class="controls">
37+
<input type="text" name="name" id="name" value="{{ Input::old('name', $category->name) }}" />
38+
{{ $errors->first('name', '<span class="help-inline">:message</span>') }}
39+
</div>
40+
</div>
4141

42-
<!-- Form actions -->
43-
<div class="control-group">
44-
<div class="controls">
45-
<a class="btn btn-link" href="{{ route('categories') }}">@lang('general.cancel')</a>
46-
<button type="submit" class="btn-flat success"><i class="icon-ok icon-white"></i> @lang('general.save')</button>
47-
</div>
48-
</div>
49-
</form>
42+
<!-- Form actions -->
43+
<div class="control-group">
44+
<div class="controls">
45+
<a class="btn btn-link" href="{{ route('categories') }}">@lang('general.cancel')</a>
46+
<button type="submit" class="btn-flat success"><i class="icon-ok icon-white"></i> @lang('general.save')</button>
47+
</div>
48+
</div>
49+
</form>
5050

5151

5252
</div>

0 commit comments

Comments
 (0)