mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Redo alert template
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<div class="error-view"></div>
|
<div class="error-view"></div>
|
||||||
|
|
||||||
{{ form_errors(field) }}
|
{{ form_errors(field) }}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
@@ -134,7 +135,25 @@
|
|||||||
{% macro flashes() %}
|
{% macro flashes() %}
|
||||||
{% for type in app.getAvailableFlashTypes %}
|
{% for type in app.getAvailableFlashTypes %}
|
||||||
{% for message in app.getFlash(type) %}
|
{% for message in app.getFlash(type) %}
|
||||||
<phraseanet-flash type="{{ type }}">{{ message }}</phraseanet-flash>
|
<div class="alert alert-{{ type }}">
|
||||||
|
{% set sign = "icon-exclamation-sign" %}
|
||||||
|
|
||||||
|
{% if type == "error" %}
|
||||||
|
{% set sign = "icon-warning-sign" %}
|
||||||
|
{% elseif type == "success" %}
|
||||||
|
{% set sign = "icon-ok-sign" %}
|
||||||
|
{% elseif type == "info" %}
|
||||||
|
{% set sign = "icon-info-sign" %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td class="alert-block-logo"><i class="icon-2x icon-white {{ sign }}"></i></td>
|
||||||
|
<td class="alert-block-content">{{ message }}</td>
|
||||||
|
<td class="alert-block-close"><a href="#"><b>×</b></a></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
Reference in New Issue
Block a user