mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-2223_list_manager___corrections
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
</div>
|
||||
<div>
|
||||
<form name="list_share_user" class="list_share_user">
|
||||
<input type="text" class="search" name="user" value="" placeholder="{{ 'Search for existing user' | trans }}"/>
|
||||
<span role="status" aria-live="polite" class="ui-helper-hidden-accessible"></span>
|
||||
<input type="text" class="search ui-autocomplete-input" name="user" value="" placeholder="{{ 'Search for existing user' | trans }}"/>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
|
@@ -114,7 +114,7 @@
|
||||
</td>
|
||||
<td class="infos" >
|
||||
<span class="name">{{ entry.getUser().getDisplayName() }}</span>
|
||||
<span class="subtite"></span>
|
||||
<span class="subtite">{{ entry.getUser().getCompany() }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{% import 'prod/actions/Feedback/ListsMacros.html.twig' as ListsMacros %}
|
||||
<div class="PNB10" style="height: 46px;bottom:auto;line-height:26px;">
|
||||
<div class="PNB10 editor_header" style="height: 46px;bottom:auto;line-height:26px;">
|
||||
<div class="pull-left">
|
||||
<div id="find-user">
|
||||
<input class="search" name="users-search" placeholder="{{ 'Users' | trans }}" type="text" style="width:210px;"/>
|
||||
@@ -34,56 +34,62 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="PNB10" style="top:55px;">
|
||||
<div class="PNB content user_content readonly grey-bg">
|
||||
<div class="PNB10">
|
||||
<div class="PNB" style="height:25px; bottom:auto;">
|
||||
<div class="pull-left">
|
||||
<h2 style="font-size:25px;margin:0;line-height:30px;">{{ list.getName() }}</h2>
|
||||
{% set length = list.getEntries().count() %}
|
||||
<span class="counter current">
|
||||
{% trans with {'%length%' : length} %}%length% peoples{% endtrans %}
|
||||
</span>
|
||||
<div class="PNB content user_content readselect grey-bg">
|
||||
<div class="PNB10 header" style="height:25px; bottom:auto;">
|
||||
<div class="pull-left">
|
||||
<h2 style="font-size:25px;margin:0;line-height:30px;">{{ list.getName() }}</h2>
|
||||
{% set length = list.getEntries().count() %}
|
||||
<span class="counter current">{% trans with {'%length%' : length} %}%length% peoples{% endtrans %}
|
||||
</span>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<div class="pull-left" style="margin-right:45px;">
|
||||
{% if list.getOwner(app.getAuthenticatedUser()).getRole() >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<button class="EditToggle btn btn-push-orange btn-orange-inverse" style="line-height: 22px;">
|
||||
<span>
|
||||
<img src="/assets/common/images/icons/orange-pen.png" class="image-normal" style="margin-right: 10px;">
|
||||
<img src="/assets/common/images/icons/white-pen.png" class="image-hover" style="margin-right: 10px;">
|
||||
</span>
|
||||
{{ 'Advanced mode' | trans }}
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<div class="pull-left" style="margin-right:45px;">
|
||||
{% if list.getOwner(app.getAuthenticatedUser()).getRole() >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<button class="EditToggle btn btn-push-orange btn-orange-inverse" style="line-height: 22px;">
|
||||
<span>
|
||||
<img src="/assets/common/images/icons/orange-pen.png" class="image-normal" style="margin-right: 10px;">
|
||||
<img src="/assets/common/images/icons/white-pen.png" class="image-hover" style="margin-right: 10px;">
|
||||
</span>
|
||||
{{ 'Advanced mode' | trans }}
|
||||
<div class="options pull-left">
|
||||
<div class="pull-left">
|
||||
<button class="select-all btn btn-push-orange orange-border"
|
||||
style="margin-right: 8px;">
|
||||
{{ 'Select all' | trans }}
|
||||
</button>
|
||||
<button class="unselect-all btn btn-push-orange orange-border">
|
||||
{{ 'Deselect all' | trans }}
|
||||
</button>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
{% if list.getOwner(app.getAuthenticatedUser()).getRole() >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
<button class="delete-selection btn btn-inverse listmanager-delete-list-action"
|
||||
data-list-id="{{ list.getId() }}"
|
||||
style="margin-left:45px;">
|
||||
{{ 'Delete the selection' | trans }}
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="options pull-left">
|
||||
<div class="pull-left">
|
||||
<button class="select-all btn btn-push-orange orange-border"
|
||||
style="margin-right: 8px;">
|
||||
{{ 'Select all' | trans }}
|
||||
</button>
|
||||
<button class="unselect-all btn btn-push-orange orange-border">
|
||||
{{ 'Deselect all' | trans }}
|
||||
</button>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
{% if list.getOwner(app.getAuthenticatedUser()).getRole() >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
<button class="delete-selection btn btn-inverse listmanager-delete-list-action"
|
||||
data-list-id="{{ list.getId() }}"
|
||||
style="margin-left:45px;">
|
||||
{{ 'Delete the selection' | trans }}
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="PNB badges" style="top:80px;overflow:auto;">
|
||||
{% set role = list.getOwner(app.getAuthenticatedUser()).getRole() %}
|
||||
{% for entry in list.getEntries() %}
|
||||
{{ ListsMacros.badgeReadonly(entry, role) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="PNB badges" style="top:80px;overflow:auto;">
|
||||
{# {% set role = list.getOwner(app.getAuthenticatedUser()).getRole() %}
|
||||
{% for entry in list.getEntries() %}
|
||||
{{ ListsMacros.badgeReadonly(entry, role) }}
|
||||
{% endfor %} #}
|
||||
</div>
|
||||
<div class="PNB10 footer">
|
||||
<form class="list_saver">
|
||||
<button id="saveListFooter" class="saveList orange_text" style="display:none">
|
||||
<img src="/assets/common/images/icons/orange-save.png" class="image-normal"/>
|
||||
<img src="/assets/common/images/icons/white-save.png" class="image-hover"/>
|
||||
<span>{{ "Save the list" | trans }}</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% if list.getOwner(app.getAuthenticatedUser()).getRole() >= constant('Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
|
@@ -22,16 +22,16 @@
|
||||
<ul class="lists">
|
||||
{% for list in lists %}
|
||||
<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="{{ path('prod_push_lists_list', { 'list_id' : list.getId() }) }}" 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') %}#}
|
||||
{#<img src="/assets/prod/images/Push/list-icon.png" />#}
|
||||
{#{% else %}#}
|
||||
{#<img src="/assets/common/images/icons/SHARE16.png" />#}
|
||||
{#{% endif %}#}
|
||||
{{ list.getName() }}
|
||||
<span class="counter">({{ list.getEntries().count() }})</span>
|
||||
(<span class="counter">{{ list.getEntries().count() }}</span>)
|
||||
</a>
|
||||
<button class="list-trash-btn">
|
||||
<button class="list-trash-btn" style="display: none;">
|
||||
<img src="/assets/common/images/icons/delete-black.png" class="image-normal"/>
|
||||
<img src="/assets/common/images/icons/delete-white.png" class="image-hover"/>
|
||||
</button>
|
||||
|
@@ -13,7 +13,7 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="PNB PushBox" id="PushBox" >
|
||||
<div class="PNB" style="width:205px;">
|
||||
<div class="PNB" style="width:220px;">
|
||||
<div class="PNB10 LeftColumn">
|
||||
<div class="PNB" style="text-align:center;">
|
||||
{% if context == 'Push' %}
|
||||
@@ -92,7 +92,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="PNB" style="left:205px;">
|
||||
<div class="PNB" style="left:220px;">
|
||||
<div class="PNB" style="height:56px;bottom:auto;line-height:26px">
|
||||
<div class="PNB10">
|
||||
<div style="float: left;">
|
||||
|
@@ -226,38 +226,41 @@
|
||||
</script>
|
||||
<script type="text/template" id="list_manager_badge_tpl">
|
||||
<div class="badge badge_<%= user.usr_id %> listmanager_badge">
|
||||
<input type="hidden" value="<%= user.usr_id %>" name="id">
|
||||
<a href="#" class="deleter">
|
||||
<i class="fa fa-times-circle"></i>
|
||||
</a>
|
||||
<input name="id" value="<%= user.usr_id %>" type="hidden">
|
||||
<table>
|
||||
<tr>
|
||||
<td class="listmanager_badge_img">
|
||||
<img src="/assets/common/images/icons/user-white.png"/>
|
||||
</td>
|
||||
<td class="infos">
|
||||
<div>
|
||||
<input type="hidden" name="participants[<%= user.usr_id %>][usr_id]" value="<%= user.usr_id %>" />
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<span class="name"><%= user.display_name %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<span class="subtite"><%= user.subtitle || '' %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="toggles">
|
||||
<td class="toggle status_off toggle_HD">
|
||||
<img title="{% trans %}User can download HD{% endtrans %}" class="toggle_off"
|
||||
src="/assets/common/images/icons/download-grey.png"/>
|
||||
<img title="{% trans %}User can download HD{% endtrans %}" class="toggle_on"
|
||||
src="/assets/common/images/icons/dark-blue-download.png"/>
|
||||
<input type="hidden" name="participants[<%= user.usr_id %>][HD]" value="0" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
<div>
|
||||
<input type="hidden" name="participants[<%= user.usr_id %>][usr_id]" value="<%= user.usr_id %>" />
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<span class="name"><%= user.display_name %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3">
|
||||
<span class="subtite"><%= user.subtitle || '' %></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="toggles">
|
||||
<td class="toggle status_off toggle_HD">
|
||||
<img title="{% trans %}User can download HD{% endtrans %}" class="toggle_off"
|
||||
src="/assets/common/images/icons/download-grey.png"/>
|
||||
<img title="{% trans %}User can download HD{% endtrans %}" class="toggle_on"
|
||||
src="/assets/common/images/icons/dark-blue-download.png"/>
|
||||
<input type="hidden" name="participants[<%= user.usr_id %>][HD]" value="0" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user