From 1e3092ced9489c50a18e403c56958694609130f7 Mon Sep 17 00:00:00 2001
From: BonfaceKilz
Date: Fri, 5 Nov 2021 13:05:58 +0300
Subject: Add template for displaying changed data
---
wqflask/wqflask/templates/display_files.html | 119 +++++++++++++++++++++++++++
1 file changed, 119 insertions(+)
create mode 100644 wqflask/wqflask/templates/display_files.html
diff --git a/wqflask/wqflask/templates/display_files.html b/wqflask/wqflask/templates/display_files.html
new file mode 100644
index 00000000..d5295fb4
--- /dev/null
+++ b/wqflask/wqflask/templates/display_files.html
@@ -0,0 +1,119 @@
+{% extends "base.html" %}
+{% block title %}Trait Submission{% endblock %}
+{% block content %}
+
+{% with messages = get_flashed_messages(with_categories=true) %}
+{% if messages %}
+{% for category, message in messages %}
+
+{% endfor %}
+{% endif %}
+{% endwith %}
+
+
+
+
+ {% if waiting %}
+
+ Files for approval:
+
+
+
+ Resource Id |
+ Author |
+ TimeStamp |
+ |
+ |
+
+
+ {% for data in waiting %}
+
+ {% set file_url = url_for('metadata_edit.show_diff', name=data.get('file_name')) %}
+ {{ data.get("resource_id") }} |
+ {{ data.get("author")}} |
+ {{ data.get("time_stamp")}} |
+ {% if data.get("roles").get("admin") > AdminRole.EDIT_ACCESS %}
+ {% set reject_url = url_for('metadata_edit.reject_data', resource_id=data.get('resource_id'), file_name=data.get('file_name')) %}
+ {% set approve_url = url_for('metadata_edit.approve_data', resource_id=data.get('resource_id'), file_name=data.get('file_name')) %}
+
+
+ |
+
+
+ |
+ {% endif %}
+
+ {% endfor %}
+
+
+
+
+ {% endif %}
+
+ {% if rejected %}
+
+ Rejected Files:
+
+
+
+ Resource Id |
+ Author |
+ TimeStamp |
+
+
+ {% for data in rejected %}
+
+ {% set file_url = url_for('metadata_edit.show_diff', name=data.get('file_name')) %}
+ {{ data.get("resource_id") }} |
+ {{ data.get("author")}} |
+ {{ data.get("time_stamp")}} |
+
+ {% endfor %}
+
+
+
+
+ {% endif %}
+
+ {% if approved %}
+
+ Approved Data:
+
+
+
+ Resource Id |
+ Author |
+ TimeStamp |
+
+
+ {% for data in approved %}
+
+ {% set file_url = url_for('metadata_edit.show_diff', name=data.get('file_name')) %}
+ {{ data.get("resource_id") }} |
+ {{ data.get("author")}} |
+ {{ data.get("time_stamp")}} |
+
+ {% endfor %}
+
+
+
+
+ {% endif %}
+
+
+{%endblock%}
+
+{% block js %}
+
+{% endblock %}
--
cgit v1.2.3