mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Merge pull request #2725 from filipx/PHRAS-2100_refactoring_list_manager_modals
PHRAS-2100_refactoring_list_manager modals UI
This commit is contained in:
@@ -2,22 +2,24 @@
|
|||||||
{{ 'You are not authorized to do this' | trans }}
|
{{ 'You are not authorized to do this' | trans }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div id="ListShare">
|
<div id="ListShare">
|
||||||
<div>
|
<div class="info-box-share-holder">
|
||||||
<h2 style="font-size:14px; margin-bottom:10px;"><b>{{ 'About Roles :' | trans }}</b></h2>
|
<img id="info-box-trigger" src="/assets/common/images/icons/info-grey.png" width="18" height="18">
|
||||||
<p>
|
<div id="info-box" style="display: none">
|
||||||
- {{ 'Admin can edit shares, modify content' | trans }}
|
<p><b>{{ 'About Roles :' | trans }}</b></p>
|
||||||
</p>
|
<p>
|
||||||
<p>
|
- {{ 'Admin can edit shares, modify content' | trans }}
|
||||||
- {{ 'Editor can modify content' | trans }}
|
</p>
|
||||||
</p>
|
<p>
|
||||||
<p>
|
- {{ 'Editor can modify content' | trans }}
|
||||||
- {{ 'Access user have readonly access' | trans }}
|
</p>
|
||||||
</p>
|
<p>
|
||||||
|
- {{ 'Access user have readonly access' | trans }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:10px;">
|
<div>
|
||||||
<form name="list_share_user">
|
<form name="list_share_user" class="list_share_user">
|
||||||
<label for="use">{{ 'Find a user' | trans }} : </label>
|
<input type="text" class="search" name="user" value="" placeholder="{{ 'Search for existing user' | trans }}"/>
|
||||||
<input type="text" class="search" name="user" value="" style="width:180px" />
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -25,14 +27,16 @@
|
|||||||
{% for owner in list.getOwners() %}
|
{% for owner in list.getOwners() %}
|
||||||
<table class="owner">
|
<table class="owner">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="listmanager_badge_img">
|
||||||
<img src="/assets/common/images/icons/user.png"/>
|
<img src="/assets/common/images/icons/user-white.png" />
|
||||||
</td>
|
</td>
|
||||||
<td style="width:150px;padding:5px;">
|
<td style="padding: 0 10px; font-size: 12px;">
|
||||||
{{ owner.getUser().getDisplayName() }}
|
<strong style="font-size:14px;">
|
||||||
|
{{ owner.getUser().getDisplayName() }}
|
||||||
|
</strong>
|
||||||
<input type="hidden" name="usr_id" value="{{ owner.getUser().getId() }}" />
|
<input type="hidden" name="usr_id" value="{{ owner.getUser().getId() }}" />
|
||||||
</td>
|
<br>
|
||||||
<td style="padding-right:10px;min-width:100px;">
|
|
||||||
{% if app.getAuthenticatedUser().getId() == owner.getUser().getId() %}
|
{% if app.getAuthenticatedUser().getId() == owner.getUser().getId() %}
|
||||||
{% if owner.getRole() == constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
{% if owner.getRole() == constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||||
{{ 'You are Admin' | trans }}
|
{{ 'You are Admin' | trans }}
|
||||||
@@ -53,9 +57,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td style="width:15px">
|
<td style="width:15px">
|
||||||
{% if app.getAuthenticatedUser().getId() == owner.getUser().getId() %}
|
{% if app.getAuthenticatedUser().getId() != owner.getUser().getId() %}
|
||||||
<a href="#" class="deleter listmanager-share-delete-user-action" data-list-id="{{ list.getId() }}" data-user-id="{{ owner.getUser().getId() }}">
|
<a href="#" class="deleter listmanager-share-delete-user-action" style="color: #676767; font-size: 20px;" data-list-id="{{ list.getId() }}" data-user-id="{{ owner.getUser().getId() }}">
|
||||||
<img src="/assets/prod/images/Push/close_badge.png" title="{{ 'Remove' | trans }}"/>
|
×
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<ul class="lists">
|
<ul class="lists">
|
||||||
{% for list in lists %}
|
{% for list in lists %}
|
||||||
<li class="list lists_manager_list" style="padding:0;position:relative;">
|
<li class="list lists_manager_list" style="padding:0;position:relative;" data-list-id="{{ list.getId() }}">
|
||||||
<a href="#" class="list_link list-edit-action" data-list-id="{{ list.getId() }}">
|
<a href="#" class="list_link list-edit-action" data-list-id="{{ list.getId() }}">
|
||||||
{#{% if list.getOwner(app.getAuthenticatedUser()).getRole() >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_EDITOR') %}#}
|
{#{% if list.getOwner(app.getAuthenticatedUser()).getRole() >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_EDITOR') %}#}
|
||||||
{#<img src="/assets/prod/images/Push/list-icon.png" />#}
|
{#<img src="/assets/prod/images/Push/list-icon.png" />#}
|
||||||
|
|||||||
Reference in New Issue
Block a user