From 11035fe4a4f6d6edceecf26269f7ad177e304956 Mon Sep 17 00:00:00 2001 From: Filip Vilic Date: Mon, 3 Sep 2018 10:01:04 +0200 Subject: [PATCH] PHRAS-2100_refactoring_list_manager modals UI --- .../actions/Feedback/List-Share.html.twig | 52 ++++++++++--------- .../prod/actions/Feedback/lists-all.html.twig | 2 +- 2 files changed, 29 insertions(+), 25 deletions(-) diff --git a/templates/web/prod/actions/Feedback/List-Share.html.twig b/templates/web/prod/actions/Feedback/List-Share.html.twig index 393109bbcb..938cc9e77b 100644 --- a/templates/web/prod/actions/Feedback/List-Share.html.twig +++ b/templates/web/prod/actions/Feedback/List-Share.html.twig @@ -2,22 +2,24 @@ {{ 'You are not authorized to do this' | trans }} {% else %}
-
-

{{ 'About Roles :' | trans }}

-

- - {{ 'Admin can edit shares, modify content' | trans }} -

-

- - {{ 'Editor can modify content' | trans }} -

-

- - {{ 'Access user have readonly access' | trans }} -

+
+ +
-
-
- - +
+ +
@@ -25,14 +27,16 @@ {% for owner in list.getOwners() %} - - - diff --git a/templates/web/prod/actions/Feedback/lists-all.html.twig b/templates/web/prod/actions/Feedback/lists-all.html.twig index 02b52fd0d1..bbbeead968 100644 --- a/templates/web/prod/actions/Feedback/lists-all.html.twig +++ b/templates/web/prod/actions/Feedback/lists-all.html.twig @@ -21,7 +21,7 @@
- + + - {{ owner.getUser().getDisplayName() }} + + + {{ owner.getUser().getDisplayName() }} + - +
+ {% if app.getAuthenticatedUser().getId() == owner.getUser().getId() %} {% if owner.getRole() == constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_ADMIN') %} {{ 'You are Admin' | trans }} @@ -53,9 +57,9 @@ {% endif %}
- {% if app.getAuthenticatedUser().getId() == owner.getUser().getId() %} - - + {% if app.getAuthenticatedUser().getId() != owner.getUser().getId() %} + + × {% endif %}