Created
June 4, 2013 16:57
-
-
Save tapvt/5707599 to your computer and use it in GitHub Desktop.
twig/swig bootstrap basic form element
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
{% macro input type name label value error %} | |
<div class="control-group"> | |
<label class="control-label" for="{{ name }}">{{ label }}</label> | |
<div class="controls"> | |
<input type="{{ type }}" name="{{ name }}" id="{{ id }}" value="{{ value }}"{% if error %} class="error"{% endif %}> | |
</div> | |
</div> | |
{% endmacro %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment