Skip to content

Commit

Permalink
Merge pull request #9987 from Godmartinz/bug/ch17111/donked-layout-on…
Browse files Browse the repository at this point in the history
…-required-field-error-in

Bug/ch17111/donked layout on required field error in
  • Loading branch information
snipe authored Aug 24, 2021
2 parents 193a528 + a407fe9 commit 9f3b633
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/views/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ class="table table-striped snipe-table"
});
},
error: function (data) {
// window.location.reload(true);
// window.location.reload(true);
}
});
</script>
Expand Down
9 changes: 4 additions & 5 deletions resources/views/depreciations/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
<label for="months" class="col-md-3 control-label">
{{ trans('admin/depreciations/general.number_of_months') }}
</label>
<div class="col-md-7{{ (\App\Helpers\Helper::checkIfRequired($item, 'months')) ? ' required' : '' }}">
<div class="col-md-2" style="padding-left:0px">
<input class="form-control" type="text" name="months" id="months" value="{{ Request::old('months', $item->months) }}" style="width: 80px;" />
<div class="col-md-7 col-sm-12 {{ (\App\Helpers\Helper::checkIfRequired($item, 'months')) ? ' required' : '' }}">
<input class="form-control" type="text" name="months" aria-label="months" id="months" value="{{ Request::old('months', $item->months) }}" style="width: 80px;" />
{!! $errors->first('months', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!}
</div>
</div>
{!! $errors->first('months', '<span class="alert-msg" aria-hidden="true"><i class="fa fa-times" aria-hidden="true"></i> :message</span>') !!}
</div>

<!-- Depreciation Minimum -->
<div class="form-group {{ $errors->has('depreciation_min') ? ' has-error' : '' }}">
<label for="depreciation_min" class="col-md-3 control-label">
Expand Down

0 comments on commit 9f3b633

Please sign in to comment.