Skip to content

Commit

Permalink
Add placeholder attr to form fields (#2354)
Browse files Browse the repository at this point in the history
* Add placeholder to text input

* Add placeholder attribute to default input

* Missed endquote

* missed endquote

* Wrap conditional around placeholder attribute

* wrap conditional around placeholder attribute

* Remove extra space

* Remove extra space
  • Loading branch information
kevnk authored Sep 15, 2020
1 parent 4c7a86d commit 517d779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/extend/forms/fields/default.antlers.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<input type="text" name="{{ handle }}" {{ if old }}value="{{ old }}"{{ /if }}>
<input type="text" name="{{ handle }}" {{ if placeholder }}placeholder="{{ placeholder }}"{{ /if }}{{ if old }}value="{{ old }}"{{ /if }}>
2 changes: 1 addition & 1 deletion resources/views/extend/forms/fields/text.antlers.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<input type="{{ input_type ?? 'text' }}" name="{{ handle }}" {{ if old }}value="{{ old }}"{{ /if }}>
<input type="{{ input_type ?? 'text' }}" name="{{ handle }}" {{ if placeholder }}placeholder="{{ placeholder }}"{{ /if }}{{ if old }}value="{{ old }}"{{ /if }}>

0 comments on commit 517d779

Please sign in to comment.