{% if Entity.entityType.value != 'experiments_templates' %}
{# ID + CUSTOM ID #}
{# the input expects date in YYYY-MM-DD format, and it will be displayed according to the browser's locale #}
{% endif %}
{# RATING #}
{% if Entity.entityData.canread_target %}
{{ 'Permissions for the template'|trans }}
{% endif %} {% include('edit-permissions.html') %} {# templates also have a read/write target #} {% if Entity.entityData.canread_target %} {# TARGET PERMISSIONS #}{{ 'Permissions for the derived experiment'|trans }}
{# CANREAD #}
{% set rw = 'canread_target' %}
{% set can = Entity.entityData.canread_target|canToHuman %}
{% include('view-permissions.html') %}
{# CANWRITE #}
{% set rw = 'canwrite_target' %}
{% set can = Entity.entityData.canwrite_target|canToHuman %}
{% include('view-permissions.html') %}
{% endif %} {# BODY #}
{{ 'Main text'|trans }}
{# Display main text switch #}
{# << this div is important around the textarea to fix an issue on mobile editor. See #3107 #}
{# tinymce or markdown? #}
{% if Entity.entityData.content_type == '2' %}
{% else %}
{# do not display body if set in metadata, done via css to avoid delayed disappearance after JS is executed #}
{% if App.Config.configArr.debug -%}
{%- endif %}
{% endif %}
{# LAST SAVED #}
{{ 'Last saved:'|trans }}
{# SWITCH EDITOR #}