nineskeletor/templates/Pagewidget/vieweditor.html.twig

29 lines
672 B
Twig
Raw Permalink Normal View History

2023-02-01 09:03:27 +01:00
{% set widgetname="editor" %}
{% extends 'Pagewidget/widget.twig' %}
{% block widgetaction %}
{% if canadd %}
<i class="fa fa-pencil fa-fw" title="Modifier votre texte" onClick="ckeditor({{ entity.id }})"></i>
{% endif %}
{% endblock %}
{% block widgetbody %}
{% if html is empty and canadd %}
<div class="p-5 text-center">
<i title="Modifier votre texte" class="fa fa-pencil fa-5x" onClick="ckeditor({{ entity.id }})" style="cursor:pointer"></i><br>
Modifier votre texte
2023-01-12 16:14:31 +01:00
</div>
2023-02-01 09:03:27 +01:00
{% else %}
<div class="ckeditor-content">
{{ html | raw }}
2023-01-12 16:14:31 +01:00
</div>
2023-02-01 09:03:27 +01:00
{% endif %}
{% endblock %}
2023-01-12 16:14:31 +01:00