{% if tdata["error_msgs"]|length>0 %} {{tdata["error_msgs"]}} {% else %} {% if tdata['api_row'] %} {% endif %} {% endif %}