diff --git a/templates/web/prod/actions/Feedback/List-Share.html.twig b/templates/web/prod/actions/Feedback/List-Share.html.twig new file mode 100644 index 0000000000..8f13eb7643 --- /dev/null +++ b/templates/web/prod/actions/Feedback/List-Share.html.twig @@ -0,0 +1,145 @@ +{% if list is empty %} + {% trans 'You are not authorized to do this' %} +{% else %} +
+
+
+ +
+
+
+
+ {% for owner in list.getOwners() %} + + + + + + + +
+ + + {{ owner.getUser().get_display_name() }} + + + + + + + + + + + +
+ {% endfor %} +
+
+
+ +{% endif %} \ No newline at end of file diff --git a/templates/web/prod/actions/Feedback/ListsMacros.html.twig b/templates/web/prod/actions/Feedback/ListsMacros.html.twig index 26a8e57583..274571f6ca 100644 --- a/templates/web/prod/actions/Feedback/ListsMacros.html.twig +++ b/templates/web/prod/actions/Feedback/ListsMacros.html.twig @@ -170,3 +170,20 @@ {% endmacro %} + + +{% macro badgeReadonly(entry) %} +
+ + + + + +
+ + + {{ entry.getUser().get_display_name() }} + +
+
+{% endmacro %} \ No newline at end of file diff --git a/templates/web/prod/actions/Feedback/list.html.twig b/templates/web/prod/actions/Feedback/list.html.twig index 721275f5c2..68bdb33c7b 100644 --- a/templates/web/prod/actions/Feedback/list.html.twig +++ b/templates/web/prod/actions/Feedback/list.html.twig @@ -5,133 +5,159 @@
+ {% if list.getOwner(user).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
+ {% else %} +

{{ list.getName() }}

+ {% endif %}
- + {% if list.getOwner(user).getRole() == constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %} + {% trans "Set sharing permission" %} + {% endif %}
-
-
+ {% if list.getOwner(user).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %} + +
- + - {% trans 'Push::filter starts' %} - - + {% trans 'Push::filter starts' %} + + -
-
- - - - - - - - -
- - - - - - - - - - - - - - -
-
- - - - - - -
-
-
-

- {% set length = '' ~ list.getEntries().count() ~ '' %} - {% trans %} - {{ length }} peoples - {% endtrans %} -

- {{ ListsMacros.ResultTable(query, results, list, sort, ord) }} +
+ + + + + + + + +
+ + + + + + + + + + + + + + +
+
+ + + + + + +
+
+
+

+ {% set length = '' ~ list.getEntries().count() ~ '' %} + {% trans %} + {{ length }} peoples + {% endtrans %} +

+
+ {{ ListsMacros.ResultTable(query, results, list, sort, ord) }} +
-
+ {% else %} +
+
+
+

+ {% set length = '' ~ list.getEntries().count() ~ '' %} + {% trans %} + {{ length }} peoples + {% endtrans %} +

+
+
+ {% for entry in list.getEntries() %} + {{ ListsMacros.badgeReadonly(entry) }} + {% endfor %} +
+
+
+ {% endif %}