From 2811964f01c24e81943fa699c8c397b22064f73d Mon Sep 17 00:00:00 2001 From: Mike Ng Date: Wed, 13 Dec 2017 12:51:08 +0400 Subject: [PATCH 1/2] PORT PHRAS-1301/PHRAS-1676 to 4.1 --- templates/web/prod/upload/upload-flash.html.twig | 5 +++-- templates/web/prod/upload/upload.html.twig | 15 ++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/templates/web/prod/upload/upload-flash.html.twig b/templates/web/prod/upload/upload-flash.html.twig index c0d801df55..f912f72a64 100644 --- a/templates/web/prod/upload/upload-flash.html.twig +++ b/templates/web/prod/upload/upload-flash.html.twig @@ -54,11 +54,12 @@
{{ 'upload:: Destination (collection) :' | trans }} :
{# collections list #} {% if collections|length > 0 %} - {% for sbasId, availableCollections in collections %} {% for collection in availableCollections['databox_collections'] %} - + {% endfor %} {% endfor %} diff --git a/templates/web/prod/upload/upload.html.twig b/templates/web/prod/upload/upload.html.twig index 1e5d5a1565..325b58b101 100644 --- a/templates/web/prod/upload/upload.html.twig +++ b/templates/web/prod/upload/upload.html.twig @@ -55,14 +55,15 @@
{{ 'upload:: Destination (collection) :' | trans }} :
{# collections list #} - + {% for sbasId, availableCollections in collections %} + + {% for collection in availableCollections['databox_collections'] %} + + {% endfor %} + {% endfor %} - - {% endfor %} {# collections status #} {% for availableCollections in collections %} From 9c3f65f3f7f92362f0596c990aa38eccbb39e407 Mon Sep 17 00:00:00 2001 From: Mike Ng Date: Thu, 21 Dec 2017 16:50:21 +0400 Subject: [PATCH 2/2] load appropriate status based on store collection --- templates/web/prod/upload/upload-flash.html.twig | 2 +- templates/web/prod/upload/upload.html.twig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/web/prod/upload/upload-flash.html.twig b/templates/web/prod/upload/upload-flash.html.twig index f912f72a64..f59d0ffadb 100644 --- a/templates/web/prod/upload/upload-flash.html.twig +++ b/templates/web/prod/upload/upload-flash.html.twig @@ -67,7 +67,7 @@ {# collections status #} {% for availableCollections in collections %} {% for collection in availableCollections['databox_collections'] %} -
+
{{ 'upload:: Status :' | trans }} :
diff --git a/templates/web/prod/upload/upload.html.twig b/templates/web/prod/upload/upload.html.twig index 325b58b101..8a23c0d233 100644 --- a/templates/web/prod/upload/upload.html.twig +++ b/templates/web/prod/upload/upload.html.twig @@ -68,7 +68,7 @@ {# collections status #} {% for availableCollections in collections %} {% for collection in availableCollections['databox_collections'] %} -
+
{{ 'upload:: Status :' | trans }} :