From 9e94ef46d4122843188ac96163c54f337d4ed2cd Mon Sep 17 00:00:00 2001 From: Christophe Tafani-Dereeper Date: Wed, 2 Mar 2016 13:29:26 +0100 Subject: [PATCH] Avoid useless placeholder attributes --- assets/js/templates/snippet/appendedcheckbox.html | 8 +++++++- assets/js/templates/snippet/appendedtext.html | 9 ++++++++- assets/js/templates/snippet/buttondropdown.html | 9 ++++++++- assets/js/templates/snippet/passwordinput.html | 9 ++++++++- assets/js/templates/snippet/prependedcheckbox.html | 9 ++++++++- assets/js/templates/snippet/prependedtext.html | 9 ++++++++- assets/js/templates/snippet/searchinput.html | 9 ++++++++- assets/js/templates/snippet/textinput.html | 8 +++++++- 8 files changed, 62 insertions(+), 8 deletions(-) diff --git a/assets/js/templates/snippet/appendedcheckbox.html b/assets/js/templates/snippet/appendedcheckbox.html index fa7b0014..be55cba3 100644 --- a/assets/js/templates/snippet/appendedcheckbox.html +++ b/assets/js/templates/snippet/appendedcheckbox.html @@ -3,7 +3,13 @@
- required <% } %> /> + placeholder="<%- placeholder %>" <% } %> + /> checked <% } %>> diff --git a/assets/js/templates/snippet/appendedtext.html b/assets/js/templates/snippet/appendedtext.html index cdca9874..b215e2a0 100644 --- a/assets/js/templates/snippet/appendedtext.html +++ b/assets/js/templates/snippet/appendedtext.html @@ -3,7 +3,14 @@
- required <% } %> /> + placeholder="<%- placeholder %>" <% } %> + type="text" + <% if(required) {%> required <% } %> + /> <%- append %>
<% if (helptext.length > 0) { %>

<%- helptext %>

<% } %> diff --git a/assets/js/templates/snippet/buttondropdown.html b/assets/js/templates/snippet/buttondropdown.html index 3ba74fed..9972744f 100644 --- a/assets/js/templates/snippet/buttondropdown.html +++ b/assets/js/templates/snippet/buttondropdown.html @@ -3,7 +3,14 @@
- required <% } %> /> + placeholder="<%- placeholder %>" <% } %> + type="text" + <% if(required) {%> required <% } %> + />
<% if (helptext.length > 0) { %>

<%- helptext %>

<% } %>
diff --git a/assets/js/templates/snippet/prependedtext.html b/assets/js/templates/snippet/prependedtext.html index 621c0363..e3ce8d3c 100644 --- a/assets/js/templates/snippet/prependedtext.html +++ b/assets/js/templates/snippet/prependedtext.html @@ -4,7 +4,14 @@
<%- prepend %> - required <% } %> /> + placeholder="<%- placeholder %>" <% } %> + type="text" + <% if(required) {%> required <% } %> + />
<% if (helptext.length > 0) { %>

<%- helptext %>

<% } %>
diff --git a/assets/js/templates/snippet/searchinput.html b/assets/js/templates/snippet/searchinput.html index df2c9701..fe76617d 100644 --- a/assets/js/templates/snippet/searchinput.html +++ b/assets/js/templates/snippet/searchinput.html @@ -2,7 +2,14 @@
- required <% } %> /> + placeholder="<%- placeholder %>" <% } %> + class="<%- inputsize %> search-query" + <% if(required) {%> required <% } %> + /> <% if (helptext.length > 0) { %>

<%- helptext %>

<% } %>
diff --git a/assets/js/templates/snippet/textinput.html b/assets/js/templates/snippet/textinput.html index cb362cd0..a11e7da1 100644 --- a/assets/js/templates/snippet/textinput.html +++ b/assets/js/templates/snippet/textinput.html @@ -2,7 +2,13 @@
- required <% } %> /> + placeholder="<%- placeholder %>" <% } %> + class="<%- inputsize %>" + <% if(required) {%> required <% } %> + /> <% if (helptext.length > 0) { %>

<%- helptext %>

<% } %>