{% extends 'includes/layout.html' %} {% block body %}

{{table.title}}

{% if menu.find("r")>=0 %} {% endif %} {% if menu.find("s")>=0 %} {% endif %} {% if menu.find("a")>=0 %} {% endif %} {% if menu.find("c")>=0 %} {% endif %}


{% for column in table.columns %} {% if menu.find("s") >= 0 %} {% if loop.index == 1 or column.readonly == true %} {% set ns = namespace(readonly = " READONLY ") %} {% else %} {% set ns = namespace(readonly = " ") %} {% endif %} {% else %} {% set ns = namespace(readonly = " ") %} {% endif %} {% if column.description.find("**") >= 0 %} {% set ns1 = namespace(required = " REQUIRED ") %} {% else %} {% set ns1 = namespace(required = " ") %} {% endif %} {% if column.dataEntry != 'HIDDEN' %} {% endfor %}
{{column.description}} {% endif %} {% if column.dataEntry=='OPTION' %} {% set outer_loop = loop %} {% elif column.dataEntry=='NUMBER' %} =0 %} {% if column.defaultvalue|string == 'None' %} '' {% else %} '{{column.defaultvalue}}' {% endif %} {% else %} '' {% endif %} {% elif data[0][loop.index-1]|string == 'None' %} '' {% else %} '{{data[0][loop.index-1]}}' {% endif %}> {% elif column.dataEntry is not none %} =0 %} {% if column.defaultvalue|string == 'None' %} '' {% else %} '{{column.defaultvalue}}' {% endif %} {% else %} '' {% endif %} {% elif data[0][loop.index-1]|string == 'None' %} '' {% else %} '{{data[0][loop.index-1]}}' {% endif %}> {% else %} =0 %} {% if column.defaultvalue|string == 'None' %} '' {% else %} '{{column.defaultvalue}}' {% endif %} {% else %} '' {% endif %} {% elif data[0][loop.index-1]|string == 'None' %} '' {% else %} '{{data[0][loop.index-1]}}' {% endif %}> {% endif %}


{% endblock %}