Current File : /var/www/vinorea/modules/autoupgrade/views/templates/components/radio-card.html.twig |
{#**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License version 3.0
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*#}
<label class="radio-card {% if disabled %} radio-card--disabled {% endif %}"
{% if radioCardId %} for="{{ radioCardId }}" {% endif %}>
{% if disabledMessage %}
<div class="radio-card__disabled-message">
<div class="radio-card__disabled-message-placement">
{{ disabledMessage }}
</div>
</div>
{% endif %}
<div class="radio-card__radio-wrapper">
<input class="radio"
type="radio"
{% if radioCardId %} id="{{ radioCardId }}" {% endif %}
{% if radioValue %} value="{{ radioValue }}" {% endif %}
{% if radioName %} name="{{ radioName }}" {% endif %}
{% if disabled %} disabled {% endif %}
{% if checked and not disabled %} checked {% endif %}
{% if required %} required {% endif %}
{% if requirements and requirements.requirements_ok %} data-requirements-are-ok="1" {% endif %}
/>
</div>
<div class="radio-card__infos-wrapper">
<div class="radio-card__infos-top radio-card__infos-top">
<p class="radio-card__title">
{{ title }}
{% if badgeLabel %}
<span class="radio-card__badge {% if badgeStatus %} radio-card__badge--{{ badgeStatus }} {% endif %}">
{{ badgeLabel }}
</span>
{% endif %}
</p>
{% if releaseNote %}
<a class="radio-card__release-note"
href="{{ releaseNote }}"
target="_blank"
rel="noopener"
>
{{ 'Release note'|trans({}) }}
<i class="material-icons">open_in_new</i>
</a>
{% endif %}
</div>
<p class="radio-card__message">
{{ message }}
</p>
{% if archiveCard %}
<div class="radio-card__local-archive">
{% include "@ModuleAutoUpgrade/components/local-archive.html.twig" %}
</div>
{% endif %}
{% if enableRequirementsCheck %}
<div class="radio-card__loader-wrapper">
<div class="radio-card__loader"></div>
<div class="radio-card__loader-title">
{{ "Checking requirements..."|trans({}) }}
</div>
</div>
{% if requirements is not null %}
<div class="radio-card__check-requirements">
{% include "@ModuleAutoUpgrade/components/check-requirements.html.twig" %}
</div>
{% endif %}
{% endif %}
</div>
</label>