Skip to content

Commit

Permalink
Merge pull request #3237 from craftcms/bugfix/example-templates-input
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree authored Aug 1, 2023
2 parents e4dc64b + 2dac4c1 commit a0b3b5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example-templates/dist/shop/cart/load.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Outputs form for collecting a cart number to be loaded.
{{- 'Cart Number'|t -}}
</label>
<div>
{{ input('text', 'number', 'border border-gray-300 hover:border-gray-500 px-4 py-2 leading-tight rounded', {
{{ input('text', 'number', {
id: 'number',
class: ['w-full', ''],
class: ['w-full', 'border border-gray-300 hover:border-gray-500 px-4 py-2 leading-tight rounded'],
placeholder: '7e89fh0ew8034…'
}) }}
</div>
Expand Down
4 changes: 2 additions & 2 deletions example-templates/src/shop/cart/load.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ Outputs form for collecting a cart number to be loaded.
{{- 'Cart Number'|t -}}
</label>
<div>
{{ input('text', 'number', '[[classes.input]]', {
{{ input('text', 'number', null, {
id: 'number',
class: ['w-full', ''],
class: ['w-full', '[[classes.input]]'],
placeholder: '7e89fh0ew8034…'
}) }}
</div>
Expand Down

0 comments on commit a0b3b5d

Please sign in to comment.