Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
var /
cache /
prod /
twig /
74 /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
749ea29485f4a4b2ffc3ad0b4f49c598.php
22.11
KB
-rw-r--r--
2026-08-14 14:42
Save
Rename
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Extension\CoreExtension; 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; use Twig\TemplateWrapper; /* @ContentBundle/Form/form.html.twig */ class __TwigTemplate_f767d10381f647aa7a44e7c750793988 extends Template { private Source $source; /** * @var array<string, Template> */ private array $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 = []): iterable { $macros = $this->macros; // line 1 if ((($tmp = !array_key_exists("formSubmitted", $context)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 2 yield " "; $context["formSubmitted"] = 0; } // line 4 yield " <h4> "; // line 6 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["formObject"] ?? null), "title", [], "any", false, false, false, 6), "html", null, true); yield " </h4> "; // line 9 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["formObject"] ?? null), "description", [], "any", false, false, false, 9) != "")) { // line 10 yield " <p> "; // line 11 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["formObject"] ?? null), "description", [], "any", false, false, false, 11), "html", null, true); yield " </p> "; } // line 14 yield " <div class=\"space\"></div> <form action=\""; // line 16 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("content_form_complete_edit", ["formCompletedId" => ($context["formCompletedId"] ?? null)]), "html", null, true); yield "\" method=\"POST\" enctype=\"multipart/form-data\"> "; // line 19 if ((CoreExtension::getAttribute($this->env, $this->source, ($context["formObject"] ?? null), "survey", [], "any", false, false, false, 19) && (($context["formSubmitted"] ?? null) == 0))) { // line 20 yield " <div class=\"survey-section mb-4 p-4 border rounded bg-light\" id=\"surveyForm\"> <h4 class=\"mb-3\">Survey Information</h4> <p class=\"text-muted mb-3\"> <strong>Note:</strong> The information you provide below will not be associated with your form submission. This data is collected separately for survey purposes only. </p> <div class=\"row mb-3\"> <div class=\"col-sm-12 col-lg-3 formLabel\"> <label for=\"survey_name\" class=\"formLabel\">Name *</label> </div> <div class=\"col-sm-12 col-lg-9 formPrompt\"> <input type=\"text\" id=\"survey_name\" name=\"survey_name\" class=\"form-control\" required> </div> </div> <div class=\"row mb-3\"> <div class=\"col-sm-12 col-lg-3 formLabel\"> <label for=\"survey_surname\" class=\"formLabel\">Surname *</label> </div> <div class=\"col-sm-12 col-lg-9 formPrompt\"> <input type=\"text\" id=\"survey_surname\" name=\"survey_surname\" class=\"form-control\" required> </div> </div> <div class=\"row mb-3\"> <div class=\"col-sm-12 col-lg-3 formLabel\"> <label for=\"survey_email\" class=\"formLabel\">E-mail Address *</label> </div> <div class=\"col-sm-12 col-lg-9 formPrompt\"> <input type=\"email\" id=\"survey_email\" name=\"survey_email\" class=\"form-control\" required> </div> </div> <div class=\"row mb-3\"> <div class=\"col-sm-12 col-lg-3 formLabel\"> <label for=\"survey_id_number\" class=\"formLabel\">ID Number *</label> </div> <div class=\"col-sm-12 col-lg-9 formPrompt\"> <input type=\"text\" id=\"survey_id_number\" name=\"survey_id_number\" class=\"form-control\" required> </div> </div> <div class=\"row\"> <div class=\"d-grid justify-content-md-center\"> <button type=\"button\" id=\"submitSurvey\" class=\"btn btn-secondary text-can-overflow\">Continue to Form</button> </div> </div> </div> <div id=\"mainForm\" style=\"display: none;\"> "; } // line 72 yield " "; // line 73 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(($context["formItems"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["formItem"]) { // line 74 yield " "; if ((((CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "widget_name", [], "any", false, false, false, 74) == "paragraph") || (CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "widget_name", [], "any", false, false, false, 74) == "heading")) || (CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "widget_name", [], "any", false, false, false, 74) == "sub-heading"))) { // line 75 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "widget_name", [], "any", false, false, false, 75) == "heading")) { // line 76 yield " <h4>"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\CoreBundle\Twig\CoreExtension']->urlDecode(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "prompt", [], "any", false, false, false, 76)), "html", null, true); yield "</h4> "; } elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 77 $context["formItem"], "widget_name", [], "any", false, false, false, 77) == "sub-heading")) { // line 78 yield " <h5>"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\CoreBundle\Twig\CoreExtension']->urlDecode(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "prompt", [], "any", false, false, false, 78)), "html", null, true); yield "</h5> "; } else { // line 80 yield " <p>"; yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\CoreBundle\Twig\CoreExtension']->urlDecode(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "description", [], "any", false, false, false, 80)), "html", null, true)); yield "</p> "; } // line 82 yield " "; } else { // line 83 yield " <div class=\"row\" "; if ((CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "description", [], "any", false, false, false, 83) != "")) { yield " data-toggle=\"popover\" data-content=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\CoreBundle\Twig\CoreExtension']->urlDecode(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "description", [], "any", false, false, false, 83)), "html", null, true); yield "\" title=\""; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\CoreBundle\Twig\CoreExtension']->urlDecode(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "prompt", [], "any", false, false, false, 83)), "html", null, true); yield "\""; } yield "> "; // line 84 $context["firstCol"] = 3; // line 85 yield " "; $context["lgCol"] = 9; // line 86 yield " "; if ((CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "date_col", [], "any", false, false, false, 86) != "")) { // line 87 yield " "; $context["firstCol"] = 6; // line 88 yield " "; $context["lgCol"] = 6; // line 89 yield " "; } // line 90 yield " <div class=\"col-sm-12 col-lg-"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["firstCol"] ?? null), "html", null, true); yield " formLabel\"> "; // line 91 if ((CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "date_col", [], "any", false, false, false, 91) != "")) { // line 92 yield " <table border=\"0\" width=\"100%\" cellpadding=\"2\" cellspacing=\"0\"> <tr> <td width=\"25\" nowrap valign=\"top\"> "; // line 95 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "date_col", [], "any", false, false, false, 95), "html", null, true); yield " </td> <td width=\"25\" nowrap valign=\"top\"> "; // line 98 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "time_col", [], "any", false, false, false, 98), "html", null, true); yield " </td> <td valign=\"top\"> "; // line 101 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "prompt", [], "any", false, false, false, 101), "html", null, true); yield " </td> <td width=\"25%\" nowrap valign=\"top\"> "; // line 104 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "presenter_name", [], "any", false, false, false, 104), "html", null, true); yield " </td> </tr> </table> "; } else { // line 109 yield " <label class=\"formLabel\" for=\"some_form_element_"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "id", [], "any", false, false, false, 109), "html", null, true); yield "\">"; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\CoreBundle\Twig\CoreExtension']->urlDecode(CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "prompt", [], "any", false, false, false, 109)), "html", null, true); yield "</label> "; } // line 111 yield " </div> <div class=\"col-sm-12 col-lg-"; // line 112 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["lgCol"] ?? null), "html", null, true); yield " formPrompt\"> "; // line 113 if (CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "widget_id", [], "any", true, true, false, 113)) { // line 114 yield " "; yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "widget_id", [], "any", false, false, false, 114), [], "any", false, false, false, 114), 'widget'); yield " "; // line 115 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "widget_id", [], "any", false, false, false, 115), [], "any", false, false, false, 115), 'errors'); yield " "; } // line 117 yield " </div> </div> "; // line 119 if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "additional_comments", [], "any", false, false, false, 119)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 120 yield " <p> </p> <div class=\"row\"> <div class=\"col-sm-12 col-lg-3\"> </div> <div class=\"col-sm-12 col-lg-3\"> Comments / Suggestions / Improvements </div> <div class=\"col-sm-12 col-lg-6 formPrompt\"> "; // line 128 if (CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "widget_id", [], "any", true, true, false, 128)) { // line 129 yield " "; yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), ("comment_" . CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "widget_id", [], "any", false, false, false, 129)), [], "any", false, false, false, 129), 'widget'); yield " "; // line 130 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), ("comment_" . CoreExtension::getAttribute($this->env, $this->source, $context["formItem"], "widget_id", [], "any", false, false, false, 130)), [], "any", false, false, false, 130), 'errors'); yield " "; } // line 132 yield " </div> </div> "; } // line 135 yield " <hr /> <p> </p> "; } // line 138 yield " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['formItem'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; // line 139 yield " <div class=\"form-group row\"> <div class=\"col-sm-12 col-lg-3 formLabel\"> "; // line 142 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "recaptcha", [], "any", false, false, false, 142), 'label'); yield " </div> <div class=\"col-sm-12 col-lg-9 formPrompt\"> "; // line 145 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "recaptcha", [], "any", false, false, false, 145), 'widget'); yield " <span class=\"formError\">"; // line 146 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "recaptcha", [], "any", false, false, false, 146), 'errors'); yield "</span> </div> </div> <div class=\"row p-3\"> <div class=\"d-grid justify-content-md-center\"> <button type=\"submit\" class=\"btn btn-primary text-can-overflow\">Submit</button> </div> </div> "; // line 156 yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'rest'); yield " "; // line 158 if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["formObject"] ?? null), "survey", [], "any", false, false, false, 158)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) { // line 159 yield " </div> <!-- Close mainForm div --> "; } // line 161 yield " </form> <script language=\"Javascript\"> \$(document).ready(function () { // Survey form functionality if (\$('#surveyForm').length > 0) { // Initially hide the main form \$('#mainForm').hide(); // Handle survey form submission \$('#submitSurvey').on('click', function() { var name = \$('#survey_name').val().trim(); var surname = \$('#survey_surname').val().trim(); var email = \$('#survey_email').val().trim(); var idNumber = \$('#survey_id_number').val().trim(); // Validate required fields if (!name || !surname || !email || !idNumber) { alert('Please fill in all required fields (Name, Surname, E-mail Address, and ID Number).'); return; } // Validate email format var emailRegex = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+\$/; if (!emailRegex.test(email)) { alert('Please enter a valid e-mail address.'); return; } // Hide survey form and show main form \$('#surveyForm').fadeOut('slow'); \$('#mainForm').fadeIn('slow'); // Store survey data in sessionStorage for potential use sessionStorage.setItem('survey_name', name); sessionStorage.setItem('survey_surname', surname); sessionStorage.setItem('survey_email', email); }); } // Existing form functionality \$(\".datepicker\").datepicker({ dateFormat: 'dd-mm-yy', changeMonth: true, changeYear: true }); \$(\".datetimepicker\").datetimepicker({ format: 'Y-m-d H:i', dateFormat: 'Y-m-d', timeFormat: 'HH:mm', changeMonth: true, changeYear: true, changeTime: true }); \$('.timepicker').timepicker(); }); </script> "; yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@ContentBundle/Form/form.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 346 => 161, 342 => 159, 340 => 158, 335 => 156, 322 => 146, 318 => 145, 312 => 142, 307 => 139, 301 => 138, 296 => 135, 291 => 132, 286 => 130, 281 => 129, 279 => 128, 269 => 120, 267 => 119, 263 => 117, 258 => 115, 253 => 114, 251 => 113, 247 => 112, 244 => 111, 236 => 109, 228 => 104, 222 => 101, 216 => 98, 210 => 95, 205 => 92, 203 => 91, 198 => 90, 195 => 89, 192 => 88, 189 => 87, 186 => 86, 183 => 85, 181 => 84, 170 => 83, 167 => 82, 161 => 80, 155 => 78, 153 => 77, 148 => 76, 145 => 75, 142 => 74, 138 => 73, 135 => 72, 81 => 20, 79 => 19, 73 => 16, 69 => 14, 63 => 11, 60 => 10, 58 => 9, 52 => 6, 48 => 4, 44 => 2, 42 => 1,); } public function getSourceContext(): Source { return new Source("", "@ContentBundle/Form/form.html.twig", "/var/www/v3.cesa.co.za/src/ContentBundle/Resources/views/Form/form.html.twig"); } }