Skip to content

Instantly share code, notes, and snippets.

@joshubrown
Created July 16, 2015 20:13
Show Gist options
  • Save joshubrown/c5794a3a4686f71197a2 to your computer and use it in GitHub Desktop.
Save joshubrown/c5794a3a4686f71197a2 to your computer and use it in GitHub Desktop.
{% for address in customer.addresses %}
{% form 'customer_address', address %}
<table>
<tr>
<td class="label"><label for="address_first_name_{{form.id}}">First name</label></td>
<td class="value"><input type="text" id="address_first_name_{{form.id}}" class="address_form" name="address[first_name]" value="{{form.first_name}}" size="40" /></td>
</tr>
<tr>
<td class="label"><label for="address_address1_{{form.id}}">Address Line 1</label></td>
<td class="value"><input type="text" id="address_address1_{{form.id}}" class="address_form" name="address[address1]" value="{{form.address1}}" size="40" /></td>
</tr>
</table>
<div class="action_bottom">
<p><input class="btn" type="submit" value="Update" /></p>
</div>
{% endform %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment