Commit 6d451ccd by Ahsan Ulhaq

change three line structure to one line

parent 3ec676e6
...@@ -40,9 +40,7 @@ ...@@ -40,9 +40,7 @@
type="<%= type %>" type="<%= type %>"
name="<%= name %>" name="<%= name %>"
class="input-block <% if ( type === 'checkbox' ) { %>checkbox<% } %>" class="input-block <% if ( type === 'checkbox' ) { %>checkbox<% } %>"
<% if ( type !== 'password' ) { %> <% if ( type !== 'password' ) { %> aria-describedby="<%= form %>-<%= name %>-desc" <% } %>
aria-describedby="<%= form %>-<%= name %>-desc"
<% } %>
<% if ( restrictions.min_length ) { %> minlength="<%= restrictions.min_length %>"<% } %> <% if ( restrictions.min_length ) { %> minlength="<%= restrictions.min_length %>"<% } %>
<% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %> <% if ( restrictions.max_length ) { %> maxlength="<%= restrictions.max_length %>"<% } %>
<% if ( required ) { %> aria-required="true" required<% } %> <% if ( required ) { %> aria-required="true" required<% } %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment