Created
March 9, 2013 20:36
-
-
Save Tetsuro/5125632 to your computer and use it in GitHub Desktop.
outputting shop's product types in a <select>
This file contains hidden or 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
<div> | |
<strong>SEARCH BY TYPE: </strong> | |
<select id="product_type"> | |
<option></option> | |
{% for product_type in shop.types %} | |
<option>{{ product_type }}</option> | |
{% endfor %} | |
</select> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment