From b587955f3e2f578beb235c6dea59b93cc229df6b Mon Sep 17 00:00:00 2001 From: Marco De Donno Date: Mon, 28 Jun 2021 20:43:57 +0200 Subject: [PATCH] Add the preview for uploaded files --- views/afis/__init__.py | 5 ++++- .../templates/afis/user/incidental_details.html | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/views/afis/__init__.py b/views/afis/__init__.py index cf76d2fc..861c4cef 100644 --- a/views/afis/__init__.py +++ b/views/afis/__init__.py @@ -120,9 +120,12 @@ def show_folder( uuid ): @afis_view.route( "/afis/incidental/" ) @utils.decorator.login_required def show_incidental_folder( uuid ): + cnm_list = get_cnm_list_for_target_uuid( uuid, False ) + return utils.template.my_render_template( "afis/user/incidental_details.html", - uuid = uuid + uuid = uuid, + cnm_list = cnm_list, ) def get_count_files_for_target_folder_for_user( uuid, file_type ): diff --git a/views/afis/templates/afis/user/incidental_details.html b/views/afis/templates/afis/user/incidental_details.html index eb1c6144..fc14c404 100644 --- a/views/afis/templates/afis/user/incidental_details.html +++ b/views/afis/templates/afis/user/incidental_details.html @@ -42,6 +42,20 @@
+ + {% for cnm in cnm_list %} +
+
{{ cnm[ 'uuid' ][ 0:18 ] }}
+
+
+
+
+
+ {% endfor %} +
New CNM candidate
-- GitLab