Created
December 10, 2013 11:45
-
-
Save Madawar/7889383 to your computer and use it in GitHub Desktop.
Example of Custom Templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- General input with icons --> | |
<div class="form-group <%=formclass %>"> | |
<label for="<%= elementid %>"><%= label %></label> | |
<div class="input-group"> | |
<span class="input-group-addon"><i class="fa <%= icon %>"></i></span> | |
<input class="form-control <%= extra %>" type="<%= type %>" name="<%= name %>" placeholder="<%= placeholder %>"> | |
</div> | |
<p class="help-block"><%= helpblock %></p> | |
</div> | |
<!-- General input without icons --> | |
<div class="form-group <%=formclass %>"> | |
<label for="<%= elementid %>"><%= label %></label> | |
<input class="form-control <%= extra %>" type="<%= type %>" name="<%= name %>" placeholder="<%= placeholder %>"> | |
<p class="help-block"><%= helpblock %></p> | |
</div> | |
<!-- Select with icons --> | |
<div class="form-group <%=formclass %>"> | |
<label for="<%= elementid %>"><%= label %></label> | |
<select class="form-control" <%= extra %>" name="<%= name %>" > | |
<% for(var value in values) { %> | |
<option value="<%= values[value] %>"><%= values[value] %></option> | |
<% } %> | |
</select> | |
<p class="help-block"><%= helpblock %></p> | |
</div> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment