Skip to content

A free open source IT asset/license management system

Added note for form row error placement

snipeca9f7bfe98ec
diff --git a/resources/views/blade/form/row.blade.php b/resources/views/blade/form/row.blade.php
index dd7e332340..a4ecf263ea 100644
--- a/resources/views/blade/form/row.blade.php
+++ b/resources/views/blade/form/row.blade.php
@@ -135,7 +135,14 @@
<div class="clearfix"></div>
@endif
- <div @class(['col-md-9 col-md-offset-3' => ! $stacked])>
+ {{-- Error + help block width matches the input's width so long
+ lines wrap under the input rather than spilling past into
+ the empty column beyond it. Uses $input_div_class (default
+ col-md-7) plus the label's col-md-offset-3 so it aligns
+ under the input on horizontal-form rows. Stacked layouts
+ (mobile / modal) drop the offset because they're single-
+ column. --}}
+ <div @class([$input_div_class.' col-md-offset-3' => ! $stacked])>
<x-form.error :name="$name" />
@if ($help_text)