Skip to content

Commit

Permalink
Merge pull request minikomi#137 from christophetd/gh-pages
Browse files Browse the repository at this point in the history
Avoid useless placeholder attributes
  • Loading branch information
minikomi authored Nov 9, 2016
2 parents 525e7e5 + 9e94ef4 commit 8fbb97e
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 8 deletions.
8 changes: 7 additions & 1 deletion assets/js/templates/snippet/appendedcheckbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
<label class="control-label" for="<%- id %>"><%- label %></label>
<div class="controls">
<div class="input-append">
<input id="<%- id %>" name="<%- id %>" class="span2" type="text" placeholder="<%- placeholder %>" <% if(required) {%> required <% } %> />
<input
id="<%- id %>"
name="<%- id %>"
class="span2"
type="text"
<% if(placeholder) { %> placeholder="<%- placeholder %>" <% } %>
/>
<span class="add-on">
<input type="checkbox"<% if (checked){ %> checked <% } %>>
</span>
Expand Down
9 changes: 8 additions & 1 deletion assets/js/templates/snippet/appendedtext.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
<label class="control-label" for="<%- id %>"><%- label %></label>
<div class="controls">
<div class="input-append">
<input id="<%- id %>" name="<%- id %>" class="<%- inputsize %>" placeholder="<%- placeholder %>" type="text"<% if(required) {%> required <% } %> />
<input
id="<%- id %>"
name="<%- id %>"
class="<%- inputsize %>"
<% if(placeholder) { %> placeholder="<%- placeholder %>" <% } %>
type="text"
<% if(required) {%> required <% } %>
/>
<span class="add-on"><%- append %></span>
</div>
<% if (helptext.length > 0) { %><p class="help-block"><%- helptext %></p><% } %>
Expand Down
9 changes: 8 additions & 1 deletion assets/js/templates/snippet/buttondropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
<label class="control-label" for="<%- id %>"><%- label %></label>
<div class="controls">
<div class="input-append">
<input id="<%- id %>" name="<%- id %>" class="<%- inputsize %>" placeholder="<%- placeholder %>" type="text" <% if(required) {%> required <% } %> />
<input
id="<%- id %>"
name="<%- id %>"
class="<%- inputsize %>"
<% if(placeholder) { %> placeholder="<%- placeholder %>" <% } %>
type="text"
<% if(required) {%> required <% } %>
/>
<div class="btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown">
<%- buttontext %>
Expand Down
9 changes: 8 additions & 1 deletion assets/js/templates/snippet/passwordinput.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
<div class="control-group">
<label class="control-label" for="<%- id %>"><%- label %></label>
<div class="controls">
<input id="<%- id %>" name="<%- id %>" type="password" placeholder="<%- placeholder %>" class="<%- inputsize %>" <% if(required) {%> required <% } %> />
<input
id="<%- id %>"
name="<%- id %>"
type="password"
<% if(placeholder) { %> placeholder="<%- placeholder %>" <% } %>
class="<%- inputsize %>"
<% if(required) {%> required <% } %>
/>
<% if (helptext.length > 0) { %><p class="help-block"><%- helptext %></p><% } %>
</div>
</div>
9 changes: 8 additions & 1 deletion assets/js/templates/snippet/prependedcheckbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
<input type="checkbox" <% if (checked){ %>checked="checked"<% } %>>
</label>
</span>
<input id="<%- id %>" name="<%- id %>" class="<%- inputsize %>" type="text" placeholder="<%- placeholder %>" <% if(required) {%> required <% } %> />
<input
id="<%- id %>"
name="<%- id %>"
class="<%- inputsize %>"
type="text"
<% if(placeholder) { %> placeholder="<%- placeholder %>" <% } %>
<% if(required) {%> required <% } %>
/>
</div>
<% if (helptext.length > 0) { %><p class="help-block"><%- helptext %></p><% } %>
</div>
Expand Down
9 changes: 8 additions & 1 deletion assets/js/templates/snippet/prependedtext.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
<div class="controls">
<div class="input-prepend">
<span class="add-on"><%- prepend %></span>
<input id="<%- id %>" name="<%- id %>" class="<%- inputsize %>" placeholder="<%- placeholder %>" type="text"<% if(required) {%> required <% } %> />
<input
id="<%- id %>"
name="<%- id %>"
class="<%- inputsize %>"
<% if(placeholder) { %> placeholder="<%- placeholder %>" <% } %>
type="text"
<% if(required) {%> required <% } %>
/>
</div>
<% if (helptext.length > 0) { %><p class="help-block"><%- helptext %></p><% } %>
</div>
Expand Down
9 changes: 8 additions & 1 deletion assets/js/templates/snippet/searchinput.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
<div class="control-group">
<label class="control-label" for="<%- id %>"><%- label %></label>
<div class="controls">
<input id="<%- id %>" name="<%- id %>" type="text" placeholder="<%- placeholder %>" class="<%- inputsize %> search-query" <% if(required) {%> required <% } %> />
<input
id="<%- id %>"
name="<%- id %>"
type="text"
<% if(placeholder) { %> placeholder="<%- placeholder %>" <% } %>
class="<%- inputsize %> search-query"
<% if(required) {%> required <% } %>
/>
<% if (helptext.length > 0) { %><p class="help-block"><%- helptext %></p><% } %>
</div>
</div>
8 changes: 7 additions & 1 deletion assets/js/templates/snippet/textinput.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
<div class="control-group">
<label class="control-label" for="<%- id %>"><%- label %></label>
<div class="controls">
<input id="<%- id %>" name="<%- id %>" type="text" placeholder="<%- placeholder %>" class="<%- inputsize %>" <% if(required) {%> required <% } %> />
<input id="<%- id %>"
name="<%- id %>"
type="text"
<% if(placeholder) { %> placeholder="<%- placeholder %>" <% } %>
class="<%- inputsize %>"
<% if(required) {%> required <% } %>
/>
<% if (helptext.length > 0) { %><p class="help-block"><%- helptext %></p><% } %>
</div>
</div>

0 comments on commit 8fbb97e

Please sign in to comment.