mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Update templates
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
<input type="hidden" name="usr_id" value="{{ owner.getUser().get_id() }}" />
|
||||
</td>
|
||||
<td style="padding-right:10px;min-width:100px;">
|
||||
{% if user.get_id() == owner.getUser(user).get_id() %}
|
||||
{% if user.get_id() == owner.getUser(app).get_id() %}
|
||||
{% if owner.getRole() == constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
{% trans 'You are Admin' %}
|
||||
{% endif %}
|
||||
@@ -53,7 +53,7 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td style="width:15px">
|
||||
{% if user.get_id() != owner.getUser(user).get_id() %}
|
||||
{% if user.get_id() != owner.getUser(app).get_id() %}
|
||||
<a href="#" class="deleter">
|
||||
<img src="/skins/prod/Push/close_badge.png" title="{% trans 'Remove' %}"/>
|
||||
</a>
|
||||
|
@@ -57,7 +57,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for user in results %}
|
||||
<tr class="{% if list.has(user) %} selected {% endif %}{% if loop.index is odd %} odd {% endif %}">
|
||||
<tr class="{% if list.has(user, app) %} selected {% endif %}{% if loop.index is odd %} odd {% endif %}">
|
||||
<td>
|
||||
{{ user.get_login() }}
|
||||
<input name="usr_id" value="{{ user.get_id() }}" type="hidden" />
|
||||
@@ -78,7 +78,7 @@
|
||||
{{ user.get_login() }}
|
||||
</td>
|
||||
<td>
|
||||
{{ user.get_creation_date() | formatDate }}
|
||||
{{ app['date-formatter'].getDate(user.get_creation_date()) }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
@@ -178,7 +178,7 @@
|
||||
|
||||
{% macro badgeReadonly(entry, role) %}
|
||||
<div class="badge">
|
||||
<input type="hidden" value="{{ entry.getUser().get_id() }}" name="id">
|
||||
<input type="hidden" value="{{ entry.getUser(app).get_id() }}" name="id">
|
||||
{% if role >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<a class="deleter" href="#">
|
||||
<img src="/skins/prod/Push/close_badge.png">
|
||||
@@ -190,7 +190,7 @@
|
||||
<img src="/skins/icons/user.png"/>
|
||||
</td>
|
||||
<td class="infos" >
|
||||
<span class="name">{{ entry.getUser().get_display_name() }}</span>
|
||||
<span class="name">{{ entry.getUser(app).get_display_name() }}</span>
|
||||
<span class="subtite"></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<table style="height: 40px;">
|
||||
<tr>
|
||||
<td style="white-space:nowrap;">
|
||||
{% if list.getOwner(user).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<form class="form-inline" method="POST" name="SaveName" action="/prod/lists/list/{{ list.getId() }}/update/">
|
||||
<label>{% trans 'List Name' %}</label>
|
||||
<input type="text" name="name" style="margin: 0 5px;" value="{{ list.getName() }}"/>
|
||||
@@ -16,14 +16,14 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td style="text-align:right;white-space:nowrap;">
|
||||
{% if list.getOwner(user).getRole() == constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
{% if list.getOwner(user, app).getRole() == constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
<a href="/prod/lists/list/{{ list.getId() }}/share/" title="{% trans 'Share the list' %}" class="list_sharer">
|
||||
<img src="/skins/prod/Push/list-icon.png" />
|
||||
{% trans "Set sharing permission" %}
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% if list.getOwner(user).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_ADMIN') %}
|
||||
<td style="text-align:right;white-space:nowrap;width:150px;">
|
||||
<button class="deleter btn btn-inverse">
|
||||
{% trans 'Delete' %}
|
||||
@@ -40,20 +40,20 @@
|
||||
<p>
|
||||
{% set length = '<span class="counter current">' ~ list.getEntries().count() ~ '</span>' %}
|
||||
{% trans %}{{ length }} peoples{% endtrans %}
|
||||
{% if list.getOwner(user).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<button class="EditToggle btn btn-inverse">{% trans 'Edit' %}</button>
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
<div class="PNB" style="top:35px;overflow:auto;">
|
||||
{% set role = list.getOwner(user).getRole() %}
|
||||
{% set role = list.getOwner(user, app).getRole() %}
|
||||
{% for entry in list.getEntries() %}
|
||||
{{ ListsMacros.badgeReadonly(entry, role) }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% if list.getOwner(user).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<div class="PNB content readwrite grey-bg" style="display:none;top:40px;">
|
||||
<form name="list-editor-search" method="POST" action="/prod/push/edit-list/{{ list.getId() }}/">
|
||||
<div class="PNB10" style="height:160px;">
|
||||
|
@@ -14,7 +14,7 @@
|
||||
{% set length = '<span class="counter">' ~ list.getEntries().count() ~ '</span>' %}
|
||||
<li class="list" style="padding:2px;">
|
||||
<a href="/prod/push/edit-list/{{ list.getId() }}/" class="list_link">
|
||||
{% if list.getOwner(user).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
{% if list.getOwner(user, app).getRole() >= constant('\\Entities\\UsrListOwner::ROLE_EDITOR') %}
|
||||
<img src="/skins/prod/Push/list-icon.png" />
|
||||
{% else %}
|
||||
<img src="/skins/icons/SHARE16.png" />
|
||||
|
Reference in New Issue
Block a user