var/cache/dev/twig/cb/cb1d498cc09fd41fb7013384941209045b7bccde80407b4b3fcf3d1f62e26a1c.php line 54

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @BidcozFrontend/Campaign/Volunteer/index.html.twig */
  14. class __TwigTemplate_4039bc018dc8d31dd1535f8884b6114ab7d115c51bbb10a465881e0fb5be28e7 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'sidebar' => [$this'block_sidebar'],
  24.             'beforeContent' => [$this'block_beforeContent'],
  25.             'content' => [$this'block_content'],
  26.             'stylesheets' => [$this'block_stylesheets'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "@BidcozFrontend/campaign.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  39.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BidcozFrontend/Campaign/Volunteer/index.html.twig"));
  40.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BidcozFrontend/Campaign/Volunteer/index.html.twig"));
  42.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@BidcozFrontend/Campaign/Volunteer/index.html.twig"));
  44.         $this->parent $this->loadTemplate("@BidcozFrontend/campaign.html.twig""@BidcozFrontend/Campaign/Volunteer/index.html.twig"1);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  48.         
  49.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  50.         
  51.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  52.     }
  53.     // line 3
  54.     public function block_sidebar($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  58.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  63.         echo "";
  64.         
  65.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  66.         
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  68.         
  69.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  70.     }
  71.     // line 5
  72.     public function block_beforeContent($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  76.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""beforeContent"));
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  78.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""beforeContent"));
  79.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  80.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""beforeContent"));
  81.         // line 6
  82.         echo "    ";
  83.         $this->displayParentBlock("beforeContent"$context$blocks);
  84.         echo "
  85.     <h1>CrewUp</h1>
  86. ";
  87.         
  88.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  89.         
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  91.         
  92.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  93.     }
  94.     // line 10
  95.     public function block_content($context, array $blocks = [])
  96.     {
  97.         $macros $this->macros;
  98.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  99.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  100.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  102.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  104.         // line 11
  105.         echo "    ";
  106.         if (twig_length_filter($this->env, (isset($context["tasks"]) || array_key_exists("tasks"$context) ? $context["tasks"] : (function () { throw new RuntimeError('Variable "tasks" does not exist.'11$this->source); })()))) {
  107.             // line 12
  108.             echo "        <div class=\"volunteer-tasks d-flex flex-wrap mx-n3 align-items-stretch\">
  109.             ";
  110.             // line 13
  111.             $context['_parent'] = $context;
  112.             $context['_seq'] = twig_ensure_traversable((isset($context["tasks"]) || array_key_exists("tasks"$context) ? $context["tasks"] : (function () { throw new RuntimeError('Variable "tasks" does not exist.'13$this->source); })()));
  113.             $context['loop'] = [
  114.               'parent' => $context['_parent'],
  115.               'index0' => 0,
  116.               'index'  => 1,
  117.               'first'  => true,
  118.             ];
  119.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  120.                 $length count($context['_seq']);
  121.                 $context['loop']['revindex0'] = $length 1;
  122.                 $context['loop']['revindex'] = $length;
  123.                 $context['loop']['length'] = $length;
  124.                 $context['loop']['last'] = === $length;
  125.             }
  126.             foreach ($context['_seq'] as $context["_key"] => $context["task"]) {
  127.                 // line 14
  128.                 echo "                ";
  129.                 $context["currentUserSignedUp"] = (((isset($context["loggedUser"]) || array_key_exists("loggedUser"$context) ? $context["loggedUser"] : (function () { throw new RuntimeError('Variable "loggedUser" does not exist.'14$this->source); })())) ? ((=== twig_compare(twig_length_filter($this->envtwig_array_filter($this->envtwig_get_attribute($this->env$this->source$context["task"], "assignments", [], "any"falsefalsefalse14), function ($__assignment__) use ($context$macros) { $context["assignment"] = $__assignment__; return (twig_get_attribute($this->env$this->source, (isset($context["assignment"]) || array_key_exists("assignment"$context) ? $context["assignment"] : (function () { throw new RuntimeError('Variable "assignment" does not exist.'14$this->source); })()), "user", [], "any"falsefalsefalse14) && (=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["assignment"]) || array_key_exists("assignment"$context) ? $context["assignment"] : (function () { throw new RuntimeError('Variable "assignment" does not exist.'14$this->source); })()), "user", [], "any"falsefalsefalse14), "id", [], "any"falsefalsefalse14), twig_get_attribute($this->env$this->source, (isset($context["loggedUser"]) || array_key_exists("loggedUser"$context) ? $context["loggedUser"] : (function () { throw new RuntimeError('Variable "loggedUser" does not exist.'14$this->source); })()), "id", [], "any"falsefalsefalse14)))); })), 0))) : (false));
  130.                 // line 15
  131.                 echo "                <div class=\"col-12 col-md-6 col-lg-4 col-xl-3 mb-4\">
  132.                     <div class=\"panel d-flex flex-column h-100\">
  133.                         <div class=\"panel-body pb-0\">
  134.                             <h6 class=\"panel-title mb-2 mt-n2 mb-2\">";
  135.                 // line 18
  136.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["task"], "title", [], "any"falsefalsefalse18), "html"nulltrue);
  137.                 echo "</h6>
  138.                             <div class=\"remaining-spots d-flex flex-wrap align-items-center\">
  139.                                 ";
  140.                 // line 20
  141.                 $this->loadTemplate("@BidcozCore/Components/icon.html.twig""@BidcozFrontend/Campaign/Volunteer/index.html.twig"20)->display(twig_array_merge($context, ["icon" => "grid-fill""class" => "icon-sm"]));
  142.                 // line 21
  143.                 echo "                                ";
  144.                 if (twig_get_attribute($this->env$this->source$context["task"], "hasAssignmentsAvailable", [], "any"falsefalsefalse21)) {
  145.                     // line 22
  146.                     echo "                                    <small class=\"ml-1 text-green\">Crew: ";
  147.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->env, (twig_get_attribute($this->env$this->source$context["task"], "numNeeded", [], "any"falsefalsefalse22) - twig_get_attribute($this->env$this->source$context["task"], "assignmentsAvailable", [], "any"falsefalsefalse22))), "html"nulltrue);
  148.                     echo " of ";
  149.                     echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source$context["task"], "numNeeded", [], "any"falsefalsefalse22)), "html"nulltrue);
  150.                     echo " Onboard</small>
  151.                                 ";
  152.                 } else {
  153.                     // line 24
  154.                     echo "                                    <small class=\"ml-1\">Fully Crewed - Thanks for Stepping Up!</small>
  155.                                 ";
  156.                 }
  157.                 // line 26
  158.                 echo "                            </div>
  159.                             <hr class=\"visible-xs\">
  160.                             ";
  161.                 // line 28
  162.                 if (twig_get_attribute($this->env$this->source$context["task"], "description", [], "any"falsefalsefalse28)) {
  163.                     echo "<p class=\"description\">";
  164.                     echo twig_get_attribute($this->env$this->source$context["task"], "description", [], "any"falsefalsefalse28);
  165.                     echo "</p>";
  166.                 }
  167.                 // line 29
  168.                 echo "                            <hr class=\"visible-xs\">
  169.                             ";
  170.                 // line 31
  171.                 if ((isset($context["loggedUser"]) || array_key_exists("loggedUser"$context) ? $context["loggedUser"] : (function () { throw new RuntimeError('Variable "loggedUser" does not exist.'31$this->source); })())) {
  172.                     // line 32
  173.                     echo "                                ";
  174.                     if (twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["task"], "assignments", [], "any"falsefalsefalse32))) {
  175.                         // line 33
  176.                         echo "                                    <div class=\"d-flex flex-wrap align-items-center\">
  177.                                         ";
  178.                         // line 34
  179.                         $this->loadTemplate("@BidcozCore/Components/icon.html.twig""@BidcozFrontend/Campaign/Volunteer/index.html.twig"34)->display(twig_array_merge($context, ["icon" => "user-fill""class" => "icon-sm"]));
  180.                         // line 35
  181.                         echo "                                        ";
  182.                         if (twig_get_attribute($this->env$this->source$context["task"], "hasAssignmentsAvailable", [], "any"falsefalsefalse35)) {
  183.                             // line 36
  184.                             echo "                                            <small class=\"ml-1\">Crew members already on board for this task:</small>
  185.                                         ";
  186.                         } else {
  187.                             // line 38
  188.                             echo "                                            <small class=\"ml-1\">The following people have signed up:</small>
  189.                                         ";
  190.                         }
  191.                         // line 40
  192.                         echo "                                    </div>
  193.                                     ";
  194.                         // line 41
  195.                         $context['_parent'] = $context;
  196.                         $context['_seq'] = twig_ensure_traversable(twig_array_filter($this->envtwig_get_attribute($this->env$this->source$context["task"], "assignments", [], "any"falsefalsefalse41), function ($__assignment__) use ($context$macros) { $context["assignment"] = $__assignment__; return twig_get_attribute($this->env$this->source$context["assignment"], "user", [], "any"falsefalsefalse41); }));
  197.                         foreach ($context['_seq'] as $context["_key"] => $context["assignment"]) {
  198.                             // line 42
  199.                             echo "                                        <small class=\"ml-4\">&bull; ";
  200.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["assignment"], "user", [], "any"falsefalsefalse42), "name", [], "any"falsefalsefalse42), "html"nulltrue);
  201.                             echo "</small><br/>
  202.                                     ";
  203.                         }
  204.                         $_parent $context['_parent'];
  205.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['assignment'], $context['_parent'], $context['loop']);
  206.                         $context array_intersect_key($context$_parent) + $_parent;
  207.                         // line 44
  208.                         echo "                                ";
  209.                     } else {
  210.                         // line 45
  211.                         echo "                                    <p class=\"text-center\"><strong>You can be the first to crew up!</strong></p>
  212.                                 ";
  213.                     }
  214.                     // line 47
  215.                     echo "                                <hr class=\"visible-xs\">
  216.                             ";
  217.                 }
  218.                 // line 49
  219.                 echo "
  220.                             ";
  221.                 // line 50
  222.                 if ((isset($context["currentUserSignedUp"]) || array_key_exists("currentUserSignedUp"$context) ? $context["currentUserSignedUp"] : (function () { throw new RuntimeError('Variable "currentUserSignedUp" does not exist.'50$this->source); })())) {
  223.                     // line 51
  224.                     echo "                                <p class=\"text-center\"><strong>You're an important part of this crew - thank you!</strong></p>
  225.                             ";
  226.                 }
  227.                 // line 53
  228.                 echo "                        </div>
  229.                         <div class=\"panel-footer mt-auto px-4 pb-4\">
  230.                             ";
  231.                 // line 55
  232.                 if ((isset($context["currentUserSignedUp"]) || array_key_exists("currentUserSignedUp"$context) ? $context["currentUserSignedUp"] : (function () { throw new RuntimeError('Variable "currentUserSignedUp" does not exist.'55$this->source); })())) {
  233.                     // line 56
  234.                     echo "                                ";
  235.                     $context["canRelease"] = ((null === twig_get_attribute($this->env$this->source$context["task"], "dateNeededFrom", [], "any"falsefalsefalse56)) || (=== twig_compare((twig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["task"], "dateNeededFrom", [], "any"falsefalsefalse56), "U") - twig_date_format_filter($this->env"now""U")), (24 3600))));
  236.                     // line 57
  237.                     echo "                                ";
  238.                     if ((isset($context["canRelease"]) || array_key_exists("canRelease"$context) ? $context["canRelease"] : (function () { throw new RuntimeError('Variable "canRelease" does not exist.'57$this->source); })())) {
  239.                         // line 58
  240.                         echo "                                    <div class=\"\">
  241.                                         <form action=\"";
  242.                         // line 59
  243.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("campaign_volunteer_release_task"twig_array_merge((isset($context["campaignParams"]) || array_key_exists("campaignParams"$context) ? $context["campaignParams"] : (function () { throw new RuntimeError('Variable "campaignParams" does not exist.'59$this->source); })()), ["taskId" => twig_get_attribute($this->env$this->source$context["task"], "id", [], "any"falsefalsefalse59)])), "html"nulltrue);
  244.                         echo "\" method=\"post\">
  245.                                             <button type=\"submit\" class=\"btn btn-danger btn-sm volunteer-release-btn\">Leave the Crew</button>
  246.                                         </form>
  247.                                     </div>
  248.                                 ";
  249.                     } else {
  250.                         // line 64
  251.                         echo "                                    <div class=\"alert bg-light font-weight-normal text-dark border border-info\" role=\"alert\">
  252.                                         Since this task starts in less than 24 hours, please
  253.                                         <a href=\"";
  254.                         // line 66
  255.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("campaign_contact", (isset($context["campaignParams"]) || array_key_exists("campaignParams"$context) ? $context["campaignParams"] : (function () { throw new RuntimeError('Variable "campaignParams" does not exist.'66$this->source); })())), "html"nulltrue);
  256.                         echo "\">contact the CrewUp Administrator</a>
  257.                                         if you need to cancel so we can make sure your role is covered.
  258.                                     </div>
  259.                                 ";
  260.                     }
  261.                     // line 70
  262.                     echo "                            ";
  263.                 } else {
  264.                     // line 71
  265.                     echo "                                ";
  266.                     if ((isset($context["loggedUser"]) || array_key_exists("loggedUser"$context) ? $context["loggedUser"] : (function () { throw new RuntimeError('Variable "loggedUser" does not exist.'71$this->source); })())) {
  267.                         // line 72
  268.                         echo "                                    <form action=\"";
  269.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("campaign_volunteer_for_task"twig_array_merge((isset($context["campaignParams"]) || array_key_exists("campaignParams"$context) ? $context["campaignParams"] : (function () { throw new RuntimeError('Variable "campaignParams" does not exist.'72$this->source); })()), ["taskId" => twig_get_attribute($this->env$this->source$context["task"], "id", [], "any"falsefalsefalse72)])), "html"nulltrue);
  270.                         echo "\" method=\"post\">
  271.                                         <button type=\"submit\" class=\"btn btn-primary task-select mt-3 volunteer-signup-btn\">Count Me In!</button>
  272.                                     </form>
  273.                                 ";
  274.                     } else {
  275.                         // line 76
  276.                         echo "                                    <h6 class=\"lead\">
  277.                                         An account is required to participate.<br><br>
  278.                                         <a href=\"";
  279.                         // line 78
  280.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("campaign_login_user", (isset($context["campaignParams"]) || array_key_exists("campaignParams"$context) ? $context["campaignParams"] : (function () { throw new RuntimeError('Variable "campaignParams" does not exist.'78$this->source); })())), "html"nulltrue);
  281.                         echo "\" data-toggle=\"modal\" data-target=\"#loginModal\" class=\"btn btn-success trigger-login\">Sign In or Create Account</a>
  282.                                     </h6>
  283.                                 ";
  284.                     }
  285.                     // line 81
  286.                     echo "                            ";
  287.                 }
  288.                 // line 82
  289.                 echo "                        </div>
  290.                     </div>
  291.                 </div>
  292.             ";
  293.                 ++$context['loop']['index0'];
  294.                 ++$context['loop']['index'];
  295.                 $context['loop']['first'] = false;
  296.                 if (isset($context['loop']['length'])) {
  297.                     --$context['loop']['revindex0'];
  298.                     --$context['loop']['revindex'];
  299.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  300.                 }
  301.             }
  302.             $_parent $context['_parent'];
  303.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['task'], $context['_parent'], $context['loop']);
  304.             $context array_intersect_key($context$_parent) + $_parent;
  305.             // line 86
  306.             echo "        </div>
  307.     ";
  308.         } else {
  309.             // line 88
  310.             echo "        <div class=\"panel h-100\">
  311.             <div class=\"panel-body h-100 py-4\">
  312.                 <div class=\"select-type-default center text-center\">
  313.                     <div class=\"d-flex justify-content-center\">
  314.                         <i class=\"fas fa-hands-helping icon\"></i>
  315.                     </div>
  316.                     <h2>Sorry, there are currently no tasks available.</h2>
  317.                 </div>
  318.             </div>
  319.         </div>
  320.     ";
  321.         }
  322.         
  323.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  324.         
  325.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  326.         
  327.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  328.     }
  329.     // line 101
  330.     public function block_stylesheets($context, array $blocks = [])
  331.     {
  332.         $macros $this->macros;
  333.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  334.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  335.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  336.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  337.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  338.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  339.         // line 102
  340.         echo "    ";
  341.         $this->displayParentBlock("stylesheets"$context$blocks);
  342.         echo "
  343.     <link rel=\"stylesheet\" href=\"/components/bootstrap-sweetalert/dist/sweetalert.css\" />
  344. ";
  345.         
  346.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  347.         
  348.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  349.         
  350.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  351.     }
  352.     // line 106
  353.     public function block_javascripts($context, array $blocks = [])
  354.     {
  355.         $macros $this->macros;
  356.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  357.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  358.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  359.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  360.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  361.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  362.         // line 107
  363.         echo "    ";
  364.         $this->displayParentBlock("javascripts"$context$blocks);
  365.         echo "
  366.     <script src=\"/components/bootstrap-sweetalert/dist/sweetalert.min.js\" type=\"text/javascript\"></script>
  367. ";
  368.         
  369.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  370.         
  371.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  372.         
  373.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  374.     }
  375.     public function getTemplateName()
  376.     {
  377.         return "@BidcozFrontend/Campaign/Volunteer/index.html.twig";
  378.     }
  379.     public function isTraitable()
  380.     {
  381.         return false;
  382.     }
  383.     public function getDebugInfo()
  384.     {
  385.         return array (  409 => 107,  396 => 106,  379 => 102,  366 => 101,  342 => 88,  338 => 86,  321 => 82,  318 => 81,  312 => 78,  308 => 76,  300 => 72,  297 => 71,  294 => 70,  287 => 66,  283 => 64,  275 => 59,  272 => 58,  269 => 57,  266 => 56,  264 => 55,  260 => 53,  256 => 51,  254 => 50,  251 => 49,  247 => 47,  243 => 45,  240 => 44,  231 => 42,  227 => 41,  224 => 40,  220 => 38,  216 => 36,  213 => 35,  211 => 34,  208 => 33,  205 => 32,  203 => 31,  199 => 29,  193 => 28,  189 => 26,  185 => 24,  177 => 22,  174 => 21,  172 => 20,  167 => 18,  162 => 15,  159 => 14,  142 => 13,  139 => 12,  136 => 11,  123 => 10,  106 => 6,  93 => 5,  68 => 3,  39 => 1,);
  386.     }
  387.     public function getSourceContext()
  388.     {
  389.         return new Source("{% extends '@BidcozFrontend/campaign.html.twig' %}
  390. {% block sidebar '' %}
  391. {% block beforeContent %}
  392.     {{ parent() }}
  393.     <h1>CrewUp</h1>
  394. {% endblock %}
  395. {% block content %}
  396.     {% if tasks|length %}
  397.         <div class=\"volunteer-tasks d-flex flex-wrap mx-n3 align-items-stretch\">
  398.             {% for task in tasks %}
  399.                 {% set currentUserSignedUp = loggedUser ? (task.assignments|filter(assignment => assignment.user and assignment.user.id == loggedUser.id)|length > 0) : false %}
  400.                 <div class=\"col-12 col-md-6 col-lg-4 col-xl-3 mb-4\">
  401.                     <div class=\"panel d-flex flex-column h-100\">
  402.                         <div class=\"panel-body pb-0\">
  403.                             <h6 class=\"panel-title mb-2 mt-n2 mb-2\">{{ task.title }}</h6>
  404.                             <div class=\"remaining-spots d-flex flex-wrap align-items-center\">
  405.                                 {% include '@BidcozCore/Components/icon.html.twig' with { icon: 'grid-fill', class: 'icon-sm' } %}
  406.                                 {% if task.hasAssignmentsAvailable %}
  407.                                     <small class=\"ml-1 text-green\">Crew: {{ (task.numNeeded - task.assignmentsAvailable)|number_format }} of {{ task.numNeeded|number_format }} Onboard</small>
  408.                                 {% else %}
  409.                                     <small class=\"ml-1\">Fully Crewed - Thanks for Stepping Up!</small>
  410.                                 {% endif %}
  411.                             </div>
  412.                             <hr class=\"visible-xs\">
  413.                             {% if task.description %}<p class=\"description\">{{ task.description|raw }}</p>{% endif %}
  414.                             <hr class=\"visible-xs\">
  415.                             {% if loggedUser %}
  416.                                 {% if task.assignments|length %}
  417.                                     <div class=\"d-flex flex-wrap align-items-center\">
  418.                                         {% include '@BidcozCore/Components/icon.html.twig' with { icon: 'user-fill', class: 'icon-sm' } %}
  419.                                         {% if task.hasAssignmentsAvailable %}
  420.                                             <small class=\"ml-1\">Crew members already on board for this task:</small>
  421.                                         {% else %}
  422.                                             <small class=\"ml-1\">The following people have signed up:</small>
  423.                                         {% endif %}
  424.                                     </div>
  425.                                     {% for assignment in task.assignments|filter(assignment => assignment.user) %}
  426.                                         <small class=\"ml-4\">&bull; {{ assignment.user.name }}</small><br/>
  427.                                     {% endfor %}
  428.                                 {% else %}
  429.                                     <p class=\"text-center\"><strong>You can be the first to crew up!</strong></p>
  430.                                 {% endif %}
  431.                                 <hr class=\"visible-xs\">
  432.                             {% endif %}
  433.                             {% if currentUserSignedUp %}
  434.                                 <p class=\"text-center\"><strong>You're an important part of this crew - thank you!</strong></p>
  435.                             {% endif %}
  436.                         </div>
  437.                         <div class=\"panel-footer mt-auto px-4 pb-4\">
  438.                             {% if currentUserSignedUp %}
  439.                                 {% set canRelease = (task.dateNeededFrom is null) or ((task.dateNeededFrom|date('U')) - ('now'|date('U')) > 24 * 3600) %}
  440.                                 {% if canRelease %}
  441.                                     <div class=\"\">
  442.                                         <form action=\"{{ path('campaign_volunteer_release_task', campaignParams|merge({taskId: task.id})) }}\" method=\"post\">
  443.                                             <button type=\"submit\" class=\"btn btn-danger btn-sm volunteer-release-btn\">Leave the Crew</button>
  444.                                         </form>
  445.                                     </div>
  446.                                 {% else %}
  447.                                     <div class=\"alert bg-light font-weight-normal text-dark border border-info\" role=\"alert\">
  448.                                         Since this task starts in less than 24 hours, please
  449.                                         <a href=\"{{ path('campaign_contact', campaignParams) }}\">contact the CrewUp Administrator</a>
  450.                                         if you need to cancel so we can make sure your role is covered.
  451.                                     </div>
  452.                                 {% endif %}
  453.                             {% else %}
  454.                                 {% if loggedUser %}
  455.                                     <form action=\"{{ path('campaign_volunteer_for_task', campaignParams|merge({taskId: task.id})) }}\" method=\"post\">
  456.                                         <button type=\"submit\" class=\"btn btn-primary task-select mt-3 volunteer-signup-btn\">Count Me In!</button>
  457.                                     </form>
  458.                                 {% else %}
  459.                                     <h6 class=\"lead\">
  460.                                         An account is required to participate.<br><br>
  461.                                         <a href=\"{{ path('campaign_login_user', campaignParams) }}\" data-toggle=\"modal\" data-target=\"#loginModal\" class=\"btn btn-success trigger-login\">Sign In or Create Account</a>
  462.                                     </h6>
  463.                                 {% endif %}
  464.                             {% endif %}
  465.                         </div>
  466.                     </div>
  467.                 </div>
  468.             {% endfor %}
  469.         </div>
  470.     {% else %}
  471.         <div class=\"panel h-100\">
  472.             <div class=\"panel-body h-100 py-4\">
  473.                 <div class=\"select-type-default center text-center\">
  474.                     <div class=\"d-flex justify-content-center\">
  475.                         <i class=\"fas fa-hands-helping icon\"></i>
  476.                     </div>
  477.                     <h2>Sorry, there are currently no tasks available.</h2>
  478.                 </div>
  479.             </div>
  480.         </div>
  481.     {% endif %}
  482. {% endblock %}
  483. {% block stylesheets %}
  484.     {{ parent() }}
  485.     <link rel=\"stylesheet\" href=\"/components/bootstrap-sweetalert/dist/sweetalert.css\" />
  486. {% endblock %}
  487. {% block javascripts %}
  488.     {{ parent() }}
  489.     <script src=\"/components/bootstrap-sweetalert/dist/sweetalert.min.js\" type=\"text/javascript\"></script>
  490. {% endblock %}
  491. ""@BidcozFrontend/Campaign/Volunteer/index.html.twig""/var/www/causepilot/src/Bidcoz/Bundle/FrontendBundle/Resources/views/Campaign/Volunteer/index.html.twig");
  492.     }
  493. }