<?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;
/* Forgot/index.twig */
class __TwigTemplate_c87ad61c2b1c0646944734377a9a223d extends \Eccube\Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'javascript' => [$this, 'block_javascript'],
'main' => [$this, 'block_main'],
];
}
protected function doGetParent(array $context)
{
// line 11
return "default_frame.twig";
}
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", "Forgot/index.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Forgot/index.twig"));
// line 13
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 13, $this->source); })()), [0 => "Form/form_div_layout.twig"], true);
// line 11
$this->parent = $this->loadTemplate("default_frame.twig", "Forgot/index.twig", 11);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 15
public function block_javascript($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(), "block", "javascript"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascript"));
// line 16
echo " <script>
\$(function() {
\$('.ec-blockBtn--action').click(function(event){
if (\$('#login_email').val() == '') {
\$('#login_email')[0].setCustomValidity('";
// line 20
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("メールアドレスを入力してください。"), "html", null, true);
echo "');
return true;
} else {
var emailRegex = /^[A-Za-z0-9_!#\$%&'*+\\/=?`{|}~^.-]+@[A-Za-z0-9.-]+\$/;
if (!emailRegex.test(\$('#login_email').val())) {
\$('#login_email')[0].setCustomValidity('";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("有効なメールアドレスを入力してください。"), "html", null, true);
echo "');
return true;
} else {
\$('#login_email')[0].setCustomValidity('');
}
}
\$(this).parents('form').submit();
})
})
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 39
public function block_main($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(), "block", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 40
echo " <div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>";
// line 42
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("パスワードの再発行"), "html", null, true);
echo "</h1>
</div>
</div>
<div class=\"ec-forgotRole\">
<form name=\"form1\" id=\"form1\" method=\"post\" action=\"";
// line 46
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("forgot");
echo "\">
";
// line 47
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 47, $this->source); })()), "_token", [], "any", false, false, false, 47), 'widget');
echo "
<div class=\"ec-off1Grid\">
<div class=\"ec-off1Grid__cell\">
<div class=\"ec-forgotRole__form\">
<div class=\"ec-forgotRole__intro\">
<p class=\"ec-para-normal\">";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ご登録時のメールアドレスを入力して「次へ」ボタンをクリックしてください。"), "html", null, true);
echo "</p>
<p class=\"ec-para-normal\">";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("※パスワード再発行メールを送信します。メールの内容をご確認の上、新しいパスワードを登録してください。"), "html", null, true);
echo "</p>
</div>
<div class=\"ec-borderedDefs\">
<dl>
<dt>
";
// line 58
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 58, $this->source); })()), "login_email", [], "any", false, false, false, 58), 'label', ["label_attr" => ["class" => "ec-label"], "label" => "メールアドレス"]);
echo "
</dt>
<dd>
<div class=\"ec-input";
// line 61
echo (($this->extensions['Eccube\Twig\Extension\EccubeExtension']->hasErrors(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 61, $this->source); })()), "login_email", [], "any", false, false, false, 61))) ? (" error") : (""));
echo "\">
";
// line 62
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 62, $this->source); })()), "login_email", [], "any", false, false, false, 62), 'widget');
echo "
";
// line 63
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 63, $this->source); })()), "login_email", [], "any", false, false, false, 63), 'errors');
echo "
</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class=\"ec-off4Grid\">
<div class=\"ec-off4Grid__cell\">
<button type=\"submit\" class=\"ec-blockBtn--action\">";
// line 73
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("次へ"), "html", null, true);
echo "</button>
</div>
</div>
</form>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Forgot/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 181 => 73, 168 => 63, 164 => 62, 160 => 61, 154 => 58, 146 => 53, 142 => 52, 134 => 47, 130 => 46, 123 => 42, 119 => 40, 109 => 39, 86 => 25, 78 => 20, 72 => 16, 62 => 15, 51 => 11, 49 => 13, 36 => 11,);
}
public function getSourceContext()
{
return new Source("{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
{% extends 'default_frame.twig' %}
{% form_theme form 'Form/form_div_layout.twig' %}
{% block javascript %}
<script>
\$(function() {
\$('.ec-blockBtn--action').click(function(event){
if (\$('#login_email').val() == '') {
\$('#login_email')[0].setCustomValidity('{{ 'メールアドレスを入力してください。'|trans }}');
return true;
} else {
var emailRegex = /^[A-Za-z0-9_!#\$%&'*+\\/=?`{|}~^.-]+@[A-Za-z0-9.-]+\$/;
if (!emailRegex.test(\$('#login_email').val())) {
\$('#login_email')[0].setCustomValidity('{{ '有効なメールアドレスを入力してください。'|trans }}');
return true;
} else {
\$('#login_email')[0].setCustomValidity('');
}
}
\$(this).parents('form').submit();
})
})
</script>
{% endblock %}
{% block main %}
<div class=\"ec-role\">
<div class=\"ec-pageHeader\">
<h1>{{ 'パスワードの再発行'|trans }}</h1>
</div>
</div>
<div class=\"ec-forgotRole\">
<form name=\"form1\" id=\"form1\" method=\"post\" action=\"{{ url('forgot') }}\">
{{ form_widget(form._token) }}
<div class=\"ec-off1Grid\">
<div class=\"ec-off1Grid__cell\">
<div class=\"ec-forgotRole__form\">
<div class=\"ec-forgotRole__intro\">
<p class=\"ec-para-normal\">{{ 'ご登録時のメールアドレスを入力して「次へ」ボタンをクリックしてください。'|trans }}</p>
<p class=\"ec-para-normal\">{{ '※パスワード再発行メールを送信します。メールの内容をご確認の上、新しいパスワードを登録してください。'|trans }}</p>
</div>
<div class=\"ec-borderedDefs\">
<dl>
<dt>
{{ form_label(form.login_email, 'メールアドレス', { 'label_attr': { 'class': 'ec-label' }}) }}
</dt>
<dd>
<div class=\"ec-input{{ has_errors(form.login_email) ? ' error' }}\">
{{ form_widget(form.login_email) }}
{{ form_errors(form.login_email) }}
</div>
</dd>
</dl>
</div>
</div>
</div>
</div>
<div class=\"ec-off4Grid\">
<div class=\"ec-off4Grid__cell\">
<button type=\"submit\" class=\"ec-blockBtn--action\">{{ '次へ'|trans }}</button>
</div>
</div>
</form>
</div>
{% endblock %}
", "Forgot/index.twig", "/virtual/adnet/public_html/lemanze.awe.jp/app/template/default/Forgot/index.twig");
}
}