{% extends parentTemplate %} {% block head %} {% endblock %} {% block content %} {{super()}}
{%if queryModelName%} {%endif%} {%set unclosedRowDiv = false%} {%for colName in filterCols%} {%set dbCol = modelAttr.schema[colName]%} {%set attrName = colMap[colName].inputName%} {%set colLabel = colMap[colName].label%} {%set inputType = colMap[colName].inputType%} {%set isColReadOnly = colMap[colName].readOnlyComputed %} {%set isColRequired = colMap[colName].required%} {%set isColVisible = colMap[colName].visibleComputed%} {%set copies = colMap[colName]._copies%} {%set isMultiple = colMap[colName].multiple%} {%set isSectionStart = colMap[colName].section == 'start'%} {%set isSectionEnd = colMap[colName].section == 'end'%} {%set isSectionVisible = colMap[colName].sectionVisible%} {%set header = colMap[colName].headerComputed%} {%set headerFor = colMap[colName].for%} {%if isColVisible%} {%if colMap[colName].section%} {%if unclosedRowDiv%}
{%endif%} {%if isSectionStart%}
{%elif isSectionEnd%}
{%endif%} {%set unclosedRowDiv = false%} {%else%} {%if colMap[colName].attachToPrevious%} {%else%} {%if unclosedRowDiv%}
{%endif%}
{%set unclosedRowDiv = true%} {%endif%}
{%if colLabel and not colMap[colName]._hideLabel%} {%endif%} {%set colVal = rec[colName]%} {%set htmlValue = colMap[colName].htmlValue%} {%set propsHtml = colMap[colName]._propsHtml%} {%set hasHiddenFile = false %} {%if inputType == 'file'%} {%set itemNo = 1%} {%set files = rec[colName]%} {%if files and not files.length and files.length != 0%} {%set files = [files]%} {%endif%} {%for file in files%} {%set displayName = file.name or 'Uploaded file ' + itemNo %} {%set hasHiddenFile = true %} {%set itemNo = itemNo + 1 %} {%endfor%} {%endif%} {% for i in range(0, copies) -%}
{%if isMultiple%} {%set colVal = rec[colName][i]%} {%if not colVal and loop.index == 1%} {%set colVal = colMap[colName].default%} {%endif%} {%endif%} {%if header%}

{%if headerFor%} {%endif%}{{header | safe}}

{%elif htmlValue%} {{htmlValue | safe}} {%elif isColReadOnly %} {% marked %}{% if colMap[colName].lookup %}{{ colMap[colName].lookup[colVal] }}{% elif colMap[colName].inputValues %}{{ colMap[colName].inputValues.get(colVal) }}{% else %}{{ colVal }}{% endif %}{% endmarked %} {%elif inputType == 'textarea'%} {%elif inputType == 'select'%} {%elif inputType == 'date'%} {%elif inputType == 'datetime'%} {%elif inputType == 'file'%} {%elif inputType == 'radio'%} {%for key, val in colMap[colName].inputValues%}
{%endfor%} {%elif inputType == 'checkbox'%} {%if colMap[colName].inputValues%} {%if colMap[colName].showSelectAll%}
{%endif%} {# Need to do this because selecting none won't save it#} {%for key, val in colMap[colName].inputValues%}
{%endfor%} {%if colMap[colName]._addOthers%}
{%endif%} {%else%}
{%endif%} {%else%} {%endif%} {%if colMap[colName].hint%} {{colMap[colName].hint}} {%endif%}
{%endfor%}
{%if isMultiple and inputType != 'checkbox' %}
{%endif%} {# closing of col div#}
{%endif%} {%endif%} {%endfor%} {%if unclosedRowDiv%} {#for closing the row of unattached#}
{%set unclosedRowDiv = false%} {%endif%} {%if shouldShowSaveButton%}
{%endif%} {%for submitBtnObj in additionalSubmitButtons%} {%if submitBtnObj.visibleComputed%}
{%endif%} {%endfor%} {%if isUpdateMode and shouldShowDeleteAction%}
{%if queryModelName%} {%endif%}
{%endif%} {% endblock %} {% block beforeEndBody %} {% endblock %}