{% for part in site.fridge.types.request_quote_product.parts %}
{% capture name %}products[][{{part.name}}]{% endcapture %}
<div class="field-{{part.name}}">
<label>{{part.label}}</label>
{% case part.type %}
{% when "text" %}
<input type="text" name="{{name}}" placeholder="{{part.hint}}" {% if part.required %}required{% endif %}>
{% when "textarea" %}
<textarea name="{{name}}" placeholder="{{part.hint}}"></textarea>
{% when "radio" %}
{% assign choices = part.choices | fridge_choices %}
{% for choice in choices %}
<p>
<label class="radio">
<input type="radio" name="{{name}}" value="{{choice.key}}"> {{choice.value}}
</label>
</p>
{% endfor %}
{% else %}
<input type="{{part.type}}" name="{{name}}" placeholder="{{part.hint}}" {% if part.required %}required{% endif %}>
{% endcase %}
</div>
{% endfor %}
{% for part in site.fridge.types.request_quote_product.parts %} {% capture name %}products[][{{part.name}}]{% endcapture %} <div class="field-{{part.name}}"> <label>{{part.label}}</label> {% case part.type %} {% when "text" %} <input type="text" name="{{name}}" placeholder="{{part.hint}}" {% if part.required %}required{% endif %}> {% when "textarea" %} <textarea name="{{name}}" placeholder="{{part.hint}}"></textarea> {% when "radio" %} {% assign choices = part.choices | fridge_choices %} {% for choice in choices %} <p> <label class="radio"> <input type="radio" name="{{name}}" value="{{choice.key}}"> {{choice.value}} </label> </p> {% endfor %} {% else %} <input type="{{part.type}}" name="{{name}}" placeholder="{{part.hint}}" {% if part.required %}required{% endif %}> {% endcase %} </div> {% endfor %}TODO