{% extends "layout" %} {% import "form_macros" as form %} {% block title -%} Form {%- endblock title %} {% block content -%}

New Record

{%- for field in fields %}
{%- if field.kind == "string" -%} {{ form::text(field=field) }} {%- elif field.kind == "text" -%} {{ form::longtext(field=field) }} {%- elif field.kind == "number" -%} {{ form::number(field=field) }} {%- elif field.kind == "bool" -%} {{ form::checkbox(field=field) }} {%- elif field.kind == "select" -%} {{ form::select(field=field) }} {%- elif field.kind == "free_select" -%} {{ form::free_select(field=field) }} {%- elif field.kind == "tags" -%} {{ form::tags(field=field) }} {%- elif field.kind == "free_tags" -%} {{ form::free_tags(field=field) }} {%- else -%} {{ field.key }} {%- endif -%}
{%- endfor %}
{%- endblock content %}