aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/errors_display.html
diff options
context:
space:
mode:
Diffstat (limited to 'qc_app/templates/errors_display.html')
-rw-r--r--qc_app/templates/errors_display.html47
1 files changed, 0 insertions, 47 deletions
diff --git a/qc_app/templates/errors_display.html b/qc_app/templates/errors_display.html
deleted file mode 100644
index 715cfcf..0000000
--- a/qc_app/templates/errors_display.html
+++ /dev/null
@@ -1,47 +0,0 @@
-{%macro errors_display(errors, no_error_msg, error_message, complete)%}
-
-{%if errors | length == 0 %}
-<span {%if complete%}class="alert-success"{%endif%}>{{no_error_msg}}</span>
-{%else %}
-<p class="alert-danger">{{error_message}}</p>
-
-<table class="table reports-table">
- <thead>
- <tr>
- <th>line number</th>
- <th>column(s)</th>
- <th>error</th>
- <th>error message</th>
- </tr>
- </thead>
-
- <tbody>
- {%for error in errors%}
- <tr>
- <td>{{error["line"]}}</td>
- <td>
- {%if isinvalidvalue(error):%}
- {{error.column}}
- {%elif isduplicateheading(error): %}
- {{error.columns}}
- {%else: %}
- -
- {%endif %}
- </td>
- <td>
- {%if isinvalidvalue(error):%}
- Invalid Value
- {%elif isduplicateheading(error): %}
- Duplicate Header
- {%else%}
- Inconsistent Columns
- {%endif %}
- </td>
- <td>{{error["message"]}}</td>
- </tr>
- {%endfor%}
- </tbody>
-</table>
-{%endif%}
-
-{%endmacro%}