<?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;

/* _index/_contact */
class __TwigTemplate_2a51b2f823d7e5ee32f56a0aa0b5e19ed085591413262c07a93283f555301048 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;
        craft\helpers\Template::beginProfile("template", "_index/_contact");
        // line 1
        echo "<section>
    <div class=\"container py-5\">
        <h4>My Form</h4>
        <form method=\"POST\" action=\"";
        // line 4
        echo twig_escape_filter($this->env, craft\helpers\UrlHelper::actionUrl("my-form/my/index"), "html", null, true);
        echo "\">
            ";
        // line 5
        echo craft\helpers\Html::csrfInput();
        echo "
            <label for=\"name\"  class=\"form-label\">Name:</label>
            <input class='form-control' type=\"text\" id=\"name\" name=\"name\">
            <label for=\"email\"  class=\"form-label\">Email:</label>
            <input class='form-control' type=\"email\" id=\"email\" name=\"email\">
            <label for=\"message\"  class=\"form-label\">Message:</label>

            
            <label for=\"message\">Message</label>
            <textarea rows=\"10\"  class='form-control' cols=\"40\" id=\"message\" name=\"message[body]\">";
        // line 14
        (((craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, ($context["submission"] ?? null), "message", [], "any", false, true), "body", [], "any", true, true) &&  !(null === craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, ($context["submission"] ?? null), "message", [], "any", false, true), "body", [])))) ? (print (twig_escape_filter($this->env, craft\helpers\Template::attribute($this->env, $this->source, craft\helpers\Template::attribute($this->env, $this->source, ($context["submission"] ?? null), "message", [], "any", false, true), "body", []), "html", null, true))) : (print ("")));
        echo "</textarea>

            <label for=\"phone\">Your phone number</label>
            <input id=\"phone\" class='form-control' type=\"text\" name=\"message[Phone]\" value=\"\">



            <div class=\"mt-2\">
                <button type=\"submit\" class='btn btn-primary'>Submit</button>
            </div>


            
        </form>
    </div>
</section>";
        craft\helpers\Template::endProfile("template", "_index/_contact");
    }

    public function getTemplateName()
    {
        return "_index/_contact";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  59 => 14,  47 => 5,  43 => 4,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<section>
    <div class=\"container py-5\">
        <h4>My Form</h4>
        <form method=\"POST\" action=\"{{ actionUrl('my-form/my/index') }}\">
            {{ csrfInput() }}
            <label for=\"name\"  class=\"form-label\">Name:</label>
            <input class='form-control' type=\"text\" id=\"name\" name=\"name\">
            <label for=\"email\"  class=\"form-label\">Email:</label>
            <input class='form-control' type=\"email\" id=\"email\" name=\"email\">
            <label for=\"message\"  class=\"form-label\">Message:</label>

            
            <label for=\"message\">Message</label>
            <textarea rows=\"10\"  class='form-control' cols=\"40\" id=\"message\" name=\"message[body]\">{{ submission.message.body ?? '' }}</textarea>

            <label for=\"phone\">Your phone number</label>
            <input id=\"phone\" class='form-control' type=\"text\" name=\"message[Phone]\" value=\"\">



            <div class=\"mt-2\">
                <button type=\"submit\" class='btn btn-primary'>Submit</button>
            </div>


            
        </form>
    </div>
</section>", "_index/_contact", "/home/addons/atweb.space/sub/craft-demo/cms/templates/_index/_contact.twig");
    }
}
