{% extends 'base.html' %} {% block content %}
{% if row_vals == 'new'%}
{% for col_name, col_type in table_head.items() %}
{% if col_type == 'varchar' or col_type == 'text'%} {% elif col_type == 'date' %} {% elif col_type == 'int' or col_type == 'decimal' %} {% elif col_type == 'tinyint' %} {% else %} {% endif %}
{% endfor %}

{% else %}
{% for col_name, col_type in table_head.items() %}
{% if col_type == 'varchar' or col_type == 'text'%} {% elif col_type == 'date' %} {% elif col_type == 'int' or col_type == 'decimal' %} {% elif col_type == 'tinyint' %} {% if row_vals[loop.index -1] == 1%} {% else %} {% endif %} {% else %} {% endif %}
{% endfor %}

{% endif %}
{% endblock %}