CSV Preview
+ +CSV Preview
- - {% with messages = get_flashed_messages(with_categories=true) %} - {% if messages %} -
-
- {% endif %}
- {% endwith %}
-
-
- {% for table_name, entries, editable, tableclass in [
- ('New Entries', new_entries, true, 'table-valid-entries'),
- ('Existing Entries', existing_entries, true, 'table-valid-entries'),
- ('Invalid Entries', invalid_entries, false, 'table-invalid-entries')
- ] %}
- {% if entries %}
- Errors found during submission (click to expand):
--
- {% for category, message in messages %}
-
- {{ category }}: {{ message }} - {% endfor %} -
{{ table_name }}
- {% if table_name == 'Invalid Entries' %} - {% if mode == 'import' %} -These entries already exist:
- {% elif mode == 'edit' %} -These entries do not exist:
- {% endif %} - {% endif %} -{{ attrib.display_name }} | - {% endfor %} -
---|
- {{ entry[attrib.attrib_name] }} - | + + {% with messages = get_flashed_messages(with_categories=true) %} + {% if messages %} +
+
+ {% endif %}
+ {% endfor %}
-
-
+
+ {{ table_name }}
+ {% if table_name == 'Invalid Entries' %} +
+ {% if mode == 'import' %}
+ These entries already exist and won't be imported
+ {% elif mode == 'edit' %}
+ These entries don't exist and can't be edited
+ {% endif %}
+
+ {% endif %}
+
+
+
+
+
+
+ {{ attrib.display_name }} | + {% endfor %} +
---|
+ {{ entry[attrib.attrib_name] }} + | + {% endfor %} +
+
+
+
+ {% if new_entries or existing_entries %}
+
+ {% endif %}
+
+