{%for v in extConfig.setting%}
{%set index = loop.index%}
{% for ingredient, amount in v %}
{%for input in amount%}
{%if input.type == 'text'%}
{{forms.text(setting,label= input.label, name= input.name, value=input.value, html= input.html)}}
{%elif input.type == 'pass'%}
{{forms.pass(setting,label= input.label, name= input.name, value=input.value, html= input.html)}}
{%elif input.type == 'radio'%}
{{forms.radio(setting,label=input.label, name=input.name, value=input.value,
options=input.options,html=input.html)}}
{%elif input.type == 'select'%}
{{forms.select(setting,label=input.label, name= input.name, value=input.value,
options=input.options,html=input.html)}}
{%elif input.type == 'textarea'%}
{{forms.textarea(setting,label= input.label, name= input.name, value=input.value, html=
input.html)}}
{%elif input.type == 'pic'%}
{%endif%}
{%endfor%}
{% endfor %}
{%endfor%}