-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
{% 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
- - support all part types (uploads will be tough...)
- - utilize Fridge's public creation API endpoint
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels