mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-1173 SQL fix and template update
This commit is contained in:
@@ -15,14 +15,16 @@
|
||||
<td style="width: 180px;"> </td>
|
||||
</tr>
|
||||
{% for sbasId, baseInfo in inscriptions %}
|
||||
|
||||
{% set sbasName = sbasId | sbas_labels(app) %}
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;">
|
||||
<h3 style="background: #191919;border: 1px solid #333333;color:#eee">{{ sbasName }}</h3>
|
||||
</td>
|
||||
</tr>
|
||||
{% set private = 0 %}
|
||||
|
||||
{% if baseInfo["registrations"]["by-type"]["accepted"]|length > 0 %}
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;">
|
||||
<h3 style="background: #191919;border: 1px solid #333333;color:#eee">{{ sbasName }}</h3>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3" style="text-align: center">
|
||||
{{ "Allowed access to the following collections" | trans }}
|
||||
@@ -44,8 +46,12 @@
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if baseInfo["registrations"]["by-type"]["rejected"]|length > 0 %}
|
||||
{% elseif baseInfo["registrations"]["by-type"]["rejected"]|length > 0 %}
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;">
|
||||
<h3 style="background: #191919;border: 1px solid #333333;color:#eee">{{ sbasName }}</h3>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3" style="text-align: center">
|
||||
{{ "Rejected access to the following collections" | trans }}
|
||||
@@ -67,8 +73,12 @@
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if baseInfo["registrations"]["by-type"]["pending"]|length > 0 %}
|
||||
{% elseif baseInfo["registrations"]["by-type"]["pending"]|length > 0 %}
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;">
|
||||
<h3 style="background: #191919;border: 1px solid #333333;color:#eee">{{ sbasName }}</h3>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3" style="text-align: center">
|
||||
{{ "Pending access to the following collections" | trans }}
|
||||
@@ -88,8 +98,12 @@
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if baseInfo["registrations"]["by-type"]["in-time"]|length > 0 %}
|
||||
{% elseif baseInfo["registrations"]["by-type"]["in-time"]|length > 0 %}
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;">
|
||||
<h3 style="background: #191919;border: 1px solid #333333;color:#eee">{{ sbasName }}</h3>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3" style="text-align: center">
|
||||
{{ "Temporary access to the following collections" | trans }}
|
||||
@@ -109,8 +123,12 @@
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if baseInfo["registrations"]["by-type"]["out-dated"]|length > 0 %}
|
||||
{% elseif baseInfo["registrations"]["by-type"]["out-dated"]|length > 0 %}
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;">
|
||||
<h3 style="background: #191919;border: 1px solid #333333;color:#eee">{{ sbasName }}</h3>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3" style="text-align: center">
|
||||
{{ "Outdated access to the following collections" | trans }}
|
||||
@@ -130,8 +148,12 @@
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% if baseInfo["registrations"]["by-type"]["inactive"]|length > 0 %}
|
||||
{% elseif baseInfo["registrations"]["by-type"]["inactive"]|length > 0 %}
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;">
|
||||
<h3 style="background: #191919;border: 1px solid #333333;color:#eee">{{ sbasName }}</h3>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="3" style="text-align: center">
|
||||
{{ "Suspended access to the following collections" | trans }}
|
||||
@@ -151,9 +173,11 @@
|
||||
<td>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
{% set private = 1 %}
|
||||
{% endif %}
|
||||
|
||||
{% if attribute(baseInfo["config"]["cgu"], app['locale']) is defined %}
|
||||
{% if attribute(baseInfo["config"]["cgu"], app['locale']) is defined and private == 0 %}
|
||||
{% set TOU = attribute(baseInfo["config"]["cgu"], app['locale']) %}
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;">
|
||||
@@ -166,7 +190,7 @@
|
||||
</tr>
|
||||
{% endif %}
|
||||
{% for collInfo in baseInfo["config"]["collections"] if (collInfo['registration'] is none and collInfo['can-register']) %}
|
||||
{% if collInfo["cgu"] is not none %}
|
||||
{% if collInfo["cgu"] is not none and private == 0 %}
|
||||
<tr>
|
||||
<td colspan="3" style="text-align: center;">{{ "login::register: L\'acces aux bases ci-dessous implique l\'acceptation des Conditions Generales d\'Utilisation (CGU) suivantes" | trans }}</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user