{% extends 'onlineanywhere_base.html' %} {% block content %}
{% if row_vals == 'new'%}
{% for col_name, col_type in table_head.items() %} {% if col_name not in ['id', 'id_users', 'inptimestamp', 'post_pay'] %}
{% if col_name == 'category' %} {% elif 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 %}
{% endif %} {% endfor %}

{% else %}
{% for col_name, col_type in table_head.items() %} {% if col_name not in ['id', 'id_users', 'inptimestamp', 'post_pay'] %}
{% if col_name == 'category' %} {% elif 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 %}
{% endif %} {% endfor %}

{% endif %}
{% endblock %}