{% set classButton = classButton|default(null) %}{% set picto = picto|default(null) %}{% set classText = classText|default(null) %}{% set text = text|default(null) %}{% set name = name|default(null) %}{% set href = href|default('#') %}{% set isLink = isLink|default(false) %}{% set type = type|default('button') %}{% set isDisabled = isDisabled|default(false) %}{% set dataClose = dataClose|default(false) %}{% set dataOpen = dataOpen|default(false) %}{% set id = id|default(null) %}{% set only_picto = only_picto|default(false) %}{% set openEditModal = openEditModal|default(false) %}{% set pictoTable = pictoTable ?? false %}{% set tooltipTitle = tooltipTitle ?? false %}{% set isTargetBlank = isTargetBlank ?? false %}{% set dataHref = dataHref ?? null %}{% set formaction = formaction ?? null %}{% set refererAction = refererAction ?? null %}{% set printIframeUrl = printIframeUrl ?? null %}{% set printPdf = printPdf ?? null %}{% if isLink %} <a class="button {% if only_picto %}only-picto{% endif %} {{classButton}}" href="{{ href }}" {% if isDisabled %} disabled="disabled" {% endif %} {% if id %} id="{{ id }}" {% endif %} {% if name %} name="{{ name }}" {% endif %} {% if isTargetBlank %} target="_blank" rel="noopener" {% endif %} {% if tooltipTitle %} data-tooltip title="{{tooltipTitle}}" {% endif %} > {% if picto %} {% include 'Layout/includes/pictos/' ~ picto ~ '.html.twig' %} {% endif %} {% if text %} <b class=" {{classText}}"> {{text}} </b> {% endif %} </a>{% else %} <button type="{{ type }}" class="button {% if only_picto %}only-picto{% endif %} {% if pictoTable %}picto-table{% endif %} {{ classButton }}" {% if formaction %} formaction="{{ formaction }}" {% endif %} {% if openEditModal %} data-display-in-modal="true" data-modal-id="js-modal-container" data-ajax-modal-container='#js-modal' data-ajax-href="{{ dataHref }}" {% endif %} {% if refererAction %} data-referer-action="{{ refererAction }}" data-modal-id="js-modal-container" data-ajax-modal-container="#js-modal" {% endif %} {% if isDisabled %} disabled="disabled" {% endif %} {% if id %} id="{{ id }}" {% endif %} {% if dataClose %} data-close {% endif %} {% if dataOpen %} data-open={{dataOpen}} {% endif %} {% if printIframeUrl %} data-print-url="{{ printIframeUrl }}" {% endif %} {% if printPdf %} data-print-pdf = "{{ printPdf }}" {% endif %} {% if tooltipTitle %} data-tooltip title="{{tooltipTitle}}" {% endif %} {% if name %} name="{{ name }}" {% endif %} > {% if picto %} {% include 'Layout/includes/pictos/' ~ picto ~ '.html.twig' %} {% endif %} {% if text %} <b class=" {{classText}}"> {{text}} </b> {% endif %} </button>{% endif %}