Skip to content

Commit

Permalink
Break out input attribute to own template
Browse files Browse the repository at this point in the history
  • Loading branch information
bjuppa committed May 17, 2019
1 parent b0b59a7 commit 045204c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/forms/partials/inputAttributes.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name="{{ preg_replace('/\.([^.]+)/', '[$1]', $name) }}"
@include('kontour::forms.partials.nameAttribute')
id="{{ $controlId }}"
@if($errors->hasAny($errorsKeys ?? $name))
aria-invalid="true"
Expand Down
1 change: 1 addition & 0 deletions resources/views/forms/partials/nameAttribute.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name="{{ preg_replace('/\.([^.[]+)/', '[$1]', $name) }}"

0 comments on commit 045204c

Please sign in to comment.