<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* RecruitmentCampaign/_campaign_card.html.twig */
class __TwigTemplate_983a60d687ad3fd5f9b08ff2b536a8ff extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "RecruitmentCampaign/_campaign_card.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "RecruitmentCampaign/_campaign_card.html.twig"));
// line 1
if (array_key_exists("campaign", $context)) {
// line 2
echo " <div class=\"";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("bg-gray bottom-25-in hz-40-in bottom-50 top-40-in"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("bg-white padding-15 bottom-30 radius-2 shadow-alt-2"), "html", null, true);
echo "\">
<h3 class=\"";
// line 3
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("h5 medium success"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("h2 semibold"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["campaign"]) || array_key_exists("campaign", $context) ? $context["campaign"] : (function () { throw new RuntimeError('Variable "campaign" does not exist.', 3, $this->source); })()), "name", [], "any", false, false, false, 3), "html", null, true);
echo "</h3>
<p class=\"";
// line 4
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("top-15"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("top-10"), "html", null, true);
echo "\">
";
// line 5
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["campaign"]) || array_key_exists("campaign", $context) ? $context["campaign"] : (function () { throw new RuntimeError('Variable "campaign" does not exist.', 5, $this->source); })()), "description", [], "any", false, false, false, 5), "html", null, true);
echo "
</p>
";
// line 7
if ($this->env->getFunction('isDesktop')->getCallable()()) {
// line 8
echo " <div class=\"vt-30 border-1x border border-gray\"></div>
";
}
// line 10
echo " <div class=\"";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("bottom-20 flex row space top-40"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("top-25 black-alt"), "html", null, true);
echo "\">
<div class=\"";
// line 11
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("flex col middle p-alt"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("flex row space"), "html", null, true);
echo "\">
<span class=\"flex row bg-white ";
// line 12
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("radius-10"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("radius-5 border border-1x border-gray-alt"), "html", null, true);
echo " hoverflow ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("half-5"), "html", null, true);
echo "\">
<i class=\"";
// line 13
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("bg-success-alt white"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("bg-gray p-alt"), "html", null, true);
echo " flex col middle ";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("hz-15-in vt-10-in"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("hz-8-in vt-5-in p-alt"), "html", null, true);
echo "\"><i>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("DU"), "html", null, true);
echo "</i></i>
<span class=\"flex row middle ";
// line 14
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("hz-15-in"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("hz-5-in p-alt black-alt"), "html", null, true);
echo " nowrap\">";
echo twig_escape_filter($this->env, $this->env->getFilter('frdate')->getCallable()(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["campaign"]) || array_key_exists("campaign", $context) ? $context["campaign"] : (function () { throw new RuntimeError('Variable "campaign" does not exist.', 14, $this->source); })()), "start", [], "any", false, false, false, 14), "date", [], "any", false, false, false, 14)), "html", null, true);
echo "</span>
</span>
<span class=\"flex row bg-white ";
// line 16
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("radius-10"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("radius-5 border border-1x border-gray-alt"), "html", null, true);
echo " hoverflow ";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("top-10"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("half-5"), "html", null, true);
echo "\">
<i class=\"";
// line 17
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("bg-error white"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("bg-gray p-alt"), "html", null, true);
echo " flex col middle ";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("hz-15-in vt-10-in"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("hz-8-in vt-5-in p-alt"), "html", null, true);
echo "\"><i>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("AU"), "html", null, true);
echo "</i></i>
<span class=\"flex row middle ";
// line 18
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("hz-15-in"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("hz-5-in p-alt black-alt"), "html", null, true);
echo " nowrap\">";
echo twig_escape_filter($this->env, $this->env->getFilter('frdate')->getCallable()(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["campaign"]) || array_key_exists("campaign", $context) ? $context["campaign"] : (function () { throw new RuntimeError('Variable "campaign" does not exist.', 18, $this->source); })()), "end", [], "any", false, false, false, 18), "date", [], "any", false, false, false, 18)), "html", null, true);
echo "</span>
</span>
</div>
<i class=\"border border-white ";
// line 21
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("hz-30"), "html", null, true);
echo " mhide\"></i>
";
// line 22
if ($this->env->getFunction('isMobile')->getCallable()()) {
// line 23
echo " <div class=\"border border-1x border-gray top-15\"></div>
";
}
// line 25
echo " <div class=\"flex col middle ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("top-5 black-alt p-alt vt-5-in"), "html", null, true);
echo "\">
<span class=\"flex row middle ";
// line 26
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("vt-5-in"), "html", null, true);
echo "\">
<i class=\"bg-warning circle padding-5 right-10\"></i>
";
// line 28
if ($this->extensions['App\Twig\RecruitmentCampaignExtension']->checkSubscribable((isset($context["campaign"]) || array_key_exists("campaign", $context) ? $context["campaign"] : (function () { throw new RuntimeError('Variable "campaign" does not exist.', 28, $this->source); })()))) {
// line 29
echo " ";
$context["nbDay"] = $this->extensions['App\Twig\OSExtension']->dateDiff(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["campaign"]) || array_key_exists("campaign", $context) ? $context["campaign"] : (function () { throw new RuntimeError('Variable "campaign" does not exist.', 29, $this->source); })()), "end", [], "any", false, false, false, 29), "date", [], "any", false, false, false, 29));
// line 30
echo " ";
if (((isset($context["nbDay"]) || array_key_exists("nbDay", $context) ? $context["nbDay"] : (function () { throw new RuntimeError('Variable "nbDay" does not exist.', 30, $this->source); })()) > 1)) {
// line 31
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("day remains.other", ["%count%" => (isset($context["nbDay"]) || array_key_exists("nbDay", $context) ? $context["nbDay"] : (function () { throw new RuntimeError('Variable "nbDay" does not exist.', 31, $this->source); })())]), "html", null, true);
echo "</span>
";
} else {
// line 33
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("day remains.one"), "html", null, true);
echo "</span>
";
}
// line 35
echo " ";
} else {
// line 36
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Inactif"), "html", null, true);
echo "</span>
";
}
// line 38
echo " </span>
<span class=\"flex row middle ";
// line 39
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("vt-5-in"), "html", null, true);
echo "\">
<i class=\"bg-warning circle padding-5 right-10\"></i>
<span>
";
// line 42
$context["nbCompetence"] = twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["campaign"]) || array_key_exists("campaign", $context) ? $context["campaign"] : (function () { throw new RuntimeError('Variable "campaign" does not exist.', 42, $this->source); })()), "services", [], "any", false, false, false, 42));
// line 43
echo " ";
if ((twig_length_filter($this->env, (isset($context["nbCompetence"]) || array_key_exists("nbCompetence", $context) ? $context["nbCompetence"] : (function () { throw new RuntimeError('Variable "nbCompetence" does not exist.', 43, $this->source); })())) > 1)) {
// line 44
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nb competence.other", ["%count%" => (isset($context["nbCompetence"]) || array_key_exists("nbCompetence", $context) ? $context["nbCompetence"] : (function () { throw new RuntimeError('Variable "nbCompetence" does not exist.', 44, $this->source); })())]), "html", null, true);
echo "</span>
";
} else {
// line 46
echo " <span>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("nb competence.one"), "html", null, true);
echo "</span>
";
}
// line 48
echo " </span>
</span>
</div>
<i class=\"border border-white hz-30 mhide\"></i>
<div class=\"";
// line 52
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("flex col middle center p-alt"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("flex row space top-10"), "html", null, true);
echo "\">
<a class='";
// line 53
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("bg-success white top-8-in bottom-10-in hz-30-in radius-5 text-center"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("bg-gray border border-1x border-success p-alt top-5-in bottom-5-in hz-10-in radius-3 text-center half-5 right-20"), "html", null, true);
echo "'
href='";
// line 54
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("campaign-detail", ["uuid" => twig_get_attribute($this->env, $this->source, (isset($context["campaign"]) || array_key_exists("campaign", $context) ? $context["campaign"] : (function () { throw new RuntimeError('Variable "campaign" does not exist.', 54, $this->source); })()), "uuid", [], "any", false, false, false, 54)]), "html", null, true);
echo "'>
";
// line 55
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("En savoir plus"), "html", null, true);
echo "
</a>
";
// line 57
if ($this->env->getFunction('isDesktop')->getCallable()()) {
// line 58
echo " <div class=\"";
echo (( !twig_get_attribute($this->env, $this->source, (isset($context["role"]) || array_key_exists("role", $context) ? $context["role"] : (function () { throw new RuntimeError('Variable "role" does not exist.', 58, $this->source); })()), "provider", [], "any", false, false, false, 58)) ? ("top-20") : (""));
echo "\">
";
// line 59
echo twig_include($this->env, $context, "RecruitmentCampaign/_campaign_subscription_btn.html.twig");
echo "
</div>
";
} else {
// line 62
echo " ";
echo twig_include($this->env, $context, "RecruitmentCampaign/_campaign_subscription_btn.html.twig");
echo "
";
}
// line 64
echo " </div>
</div>
</div>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "RecruitmentCampaign/_campaign_card.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 261 => 64, 255 => 62, 249 => 59, 244 => 58, 242 => 57, 237 => 55, 233 => 54, 227 => 53, 222 => 52, 216 => 48, 210 => 46, 204 => 44, 201 => 43, 199 => 42, 193 => 39, 190 => 38, 184 => 36, 181 => 35, 175 => 33, 169 => 31, 166 => 30, 163 => 29, 161 => 28, 156 => 26, 151 => 25, 147 => 23, 145 => 22, 141 => 21, 131 => 18, 120 => 17, 112 => 16, 103 => 14, 92 => 13, 85 => 12, 80 => 11, 74 => 10, 70 => 8, 68 => 7, 63 => 5, 58 => 4, 51 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% if campaign is defined %}
<div class=\"{{desktop('bg-gray bottom-25-in hz-40-in bottom-50 top-40-in')}}{{mobile('bg-white padding-15 bottom-30 radius-2 shadow-alt-2')}}\">
<h3 class=\"{{ desktop(\"h5 medium success\") }}{{mobile('h2 semibold')}}\">{{ campaign.name }}</h3>
<p class=\"{{ desktop(\"top-15\") }}{{ mobile(\"top-10\") }}\">
{{ campaign.description }}
</p>
{% if isDesktop() %}
<div class=\"vt-30 border-1x border border-gray\"></div>
{% endif %}
<div class=\"{{desktop('bottom-20 flex row space top-40')}}{{mobile('top-25 black-alt')}}\">
<div class=\"{{desktop('flex col middle p-alt')}}{{mobile('flex row space')}}\">
<span class=\"flex row bg-white {{ desktop(\"radius-10\")}}{{ mobile(\"radius-5 border border-1x border-gray-alt\")}} hoverflow {{mobile('half-5')}}\">
<i class=\"{{ desktop(\"bg-success-alt white\") }}{{ mobile(\"bg-gray p-alt\")}} flex col middle {{ desktop(\"hz-15-in vt-10-in\") }} {{ mobile(\"hz-8-in vt-5-in p-alt\") }}\"><i>{{ \"DU\"|trans }}</i></i>
<span class=\"flex row middle {{ desktop(\"hz-15-in\")}} {{ mobile(\"hz-5-in p-alt black-alt\")}} nowrap\">{{ campaign.start.date|frdate }}</span>
</span>
<span class=\"flex row bg-white {{ desktop(\"radius-10\")}}{{ mobile(\"radius-5 border border-1x border-gray-alt\")}} hoverflow {{desktop('top-10')}}{{mobile('half-5')}}\">
<i class=\"{{ desktop(\"bg-error white\") }}{{ mobile(\"bg-gray p-alt\")}} flex col middle {{ desktop(\"hz-15-in vt-10-in\") }} {{ mobile(\"hz-8-in vt-5-in p-alt\") }}\"><i>{{ \"AU\"|trans }}</i></i>
<span class=\"flex row middle {{ desktop(\"hz-15-in\")}} {{ mobile(\"hz-5-in p-alt black-alt\")}} nowrap\">{{ campaign.end.date|frdate }}</span>
</span>
</div>
<i class=\"border border-white {{desktop('hz-30')}} mhide\"></i>
{% if isMobile() %}
<div class=\"border border-1x border-gray top-15\"></div>
{% endif %}
<div class=\"flex col middle {{mobile('top-5 black-alt p-alt vt-5-in')}}\">
<span class=\"flex row middle {{ desktop(\"vt-5-in\") }}\">
<i class=\"bg-warning circle padding-5 right-10\"></i>
{% if campaign is campaignSubscribable %}
{% set nbDay= campaign.end.date|dateDiff %}
{% if nbDay > 1 %}
<span>{{ (\"day remains.other\")|trans({\"%count%\": nbDay}) }}</span>
{% else %}
<span>{{ (\"day remains.one\")|trans }}</span>
{% endif %}
{% else %}
<span>{{ \"Inactif\"|trans }}</span>
{% endif %}
</span>
<span class=\"flex row middle {{ desktop(\"vt-5-in\") }}\">
<i class=\"bg-warning circle padding-5 right-10\"></i>
<span>
{% set nbCompetence= campaign.services|length %}
{% if nbCompetence|length > 1 %}
<span>{{ (\"nb competence.other\")|trans({\"%count%\": nbCompetence}) }}</span>
{% else %}
<span>{{ (\"nb competence.one\")|trans }}</span>
{% endif %}
</span>
</span>
</div>
<i class=\"border border-white hz-30 mhide\"></i>
<div class=\"{{ desktop(\"flex col middle center p-alt\") }}{{mobile('flex row space top-10')}}\">
<a class='{{desktop('bg-success white top-8-in bottom-10-in hz-30-in radius-5 text-center')}} {{mobile('bg-gray border border-1x border-success p-alt top-5-in bottom-5-in hz-10-in radius-3 text-center half-5 right-20')}}'
href='{{ path('campaign-detail', {uuid: campaign.uuid}) }}'>
{{ \"En savoir plus\"|trans }}
</a>
{% if isDesktop() %}
<div class=\"{{ not role.provider ? \"top-20\" }}\">
{{ include('RecruitmentCampaign/_campaign_subscription_btn.html.twig') }}
</div>
{% else %}
{{ include('RecruitmentCampaign/_campaign_subscription_btn.html.twig') }}
{% endif %}
</div>
</div>
</div>
{% endif %}", "RecruitmentCampaign/_campaign_card.html.twig", "/home/olasoftnka/nsia-provider/templates/RecruitmentCampaign/_campaign_card.html.twig");
}
}