templates: enhance context sensitivity of compte lecteur bloc content (#13253)
This commit is contained in:
parent
5ad07abccb
commit
460ef18e6e
|
@ -2,27 +2,39 @@
|
|||
{% with data=compte_lecteur.data %}
|
||||
{% if data.d.ClientAccount.ShortAccount %}
|
||||
<p>Votre carte d'abonnement numéro {{ data.d.ClientAccount.Identity.BarCode }} est valable jusqu'au {{ data.d.ClientAccount.Identity.ExpirationDate }}.</p>
|
||||
<p>Vous avez actuellement {{ data.d.ClientAccount.ShortAccount.NombrePrets }} oeuvre(s) en prêt :
|
||||
{% if data.d.ClientAccount.ShortAccount.NombrePrets %}
|
||||
<p>Vous avez actuellement {{ data.d.ClientAccount.ShortAccount.NombrePrets }}
|
||||
œuvre{% if data.d.ClientAccount.ShortAccount.NombrePrets > 1 %}s{% endif %} en prêt :</p>
|
||||
<ul>
|
||||
{% for loan in data.d.ClientAccount.Loans %}
|
||||
<li {% if loan.IsLate %}style="color: red"{% endif %}> {{ loan.DisplayName }} - {{ loan.SearchItemAdapter.Resource.Crtr }} {% if loan.IsLate %}(en retard){% endif %}</li>
|
||||
{% for loan in data.d.ClientAccount.Loans %}
|
||||
<li {% if loan.IsLate %}style="color: red"{% endif %}> {{ loan.DisplayName }} - {{ loan.SearchItemAdapter.Resource.Crtr }} {% if loan.IsLate %}(en retard){% endif %}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Vous n'avez actuellement pas d'œuvre en prêt.</p>
|
||||
{% endif %}
|
||||
|
||||
{% if data.d.ClientAccount.ShortAccount.NombreDemandeReservations %}
|
||||
<p>
|
||||
Vous avec actuellement {{ data.d.ClientAccount.ShortAccount.NombreDemandeReservations }}
|
||||
œuvre{% if data.d.ClientAccount.ShortAccount.NombreDemandeReservations > 1 %}s{% endif %} en réservation.
|
||||
</p>
|
||||
<p>Vous avec actuellement {{ data.d.ClientAccount.ShortAccount.NombreDemandeReservations }} oeuvre(s) en réservation
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if data.d.ClientAccount.ShortAccount.NombreMessages %}
|
||||
<p>Vous avez <a href="{{ compte_lecteur_url }}/DEFAULT/my-account.aspx#/Messages">{{ data.d.ClientAccount.ShortAccount.NombreMessages }} message(s)</a>.</p>
|
||||
<p>Vous avez <a href="{{ compte_lecteur_url }}/DEFAULT/my-account.aspx#/Messages">{{ data.d.ClientAccount.ShortAccount.NombreMessages }}
|
||||
message{% if data.d.ClientAccount.ShortAccount.NombreMessages > 1 %}s{% endif %}</a>.</p>
|
||||
{% else %}
|
||||
<p>Vous n'avez pas de message</p>
|
||||
<p>Vous n'avez pas de message.</p>
|
||||
{% endif %}
|
||||
|
||||
<p><a href="{{ compte_lecteur_url }}/mandaye/sso?next_url=/DEFAULT/my-account.aspx">Cliquez ici</a> pour accéder à votre compte lecteur sur le site des médiathèques.</a></p>
|
||||
|
||||
{% else %}
|
||||
|
||||
<p>Vous n'avez actuellement pas de compte médiathèque raccordé ou votre compte n'est plus valide.</p>
|
||||
|
||||
<p><a href="{{ compte_lecteur_url }}/mandaye/sso">Cliquez ici</a> pour raccorder votre compte médiathèque.</p>
|
||||
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
|
|
Reference in New Issue