Skip to content

Instantly share code, notes, and snippets.

@Madawar
Created December 10, 2013 11:45
Show Gist options
  • Save Madawar/7889383 to your computer and use it in GitHub Desktop.
Save Madawar/7889383 to your computer and use it in GitHub Desktop.
Example of Custom Templates
<!-- 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