Skip to content

[JITERA] Feature: Add login_with_jp_comment.twig Template

Created by: tetsuto-morishima

Overview

This pull request introduces a new Twig template file named login_with_jp_comment.twig for the EC-CUBE login screen. The file includes a comment indicating its creation date and copyright information.

Changes

  • New File: login_with_jp_comment.twig
    • This file serves as the login template for the EC-CUBE My Page.
    • It includes a header with the title "Login" and a form for user authentication.
    • The form contains fields for email and password, as well as options for remembering the user.
    • Error messages and password reset notifications are handled within the template.
    • Links for forgotten passwords and new user registration are also provided.
    • The template extends from default_frame.twig and sets the body class to mypage.

Content of the Template

{#
このファイルはEC-CUBEログイン画面のTwigテンプレートです。 作成日: 2025年8月4日 Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved. http://www.ec-cube.co.jp/ ライセンス情報については、同梱されているLICENSEファイルをご確認ください。
#}
{% extends 'default_frame.twig' %}
{% set body_class = 'mypage' %}
{% block main %}

    
        {{ 'common.login'|trans }}
    
    
        
            
                {% if app.session.flashBag.has('eccube.login.target.path') %}
                    {% for targetPath in app.session.flashBag.peek('eccube.login.target.path') %}
                        
                    {% endfor %}
                {% endif %}
                
                    
                        
                            
                        
                    
                    
                        
                            {{ form_widget(form.login_email, {'attr': {'style' : 'ime-mode: disabled;', 'placeholder' : 'common.mail_address', 'autofocus': true}}) }}
                            {{ form_widget(form.login_pass, {'attr': {'placeholder' : 'common.password' }}) }}
                        
                        {% if BaseInfo.option_remember_me %}
                            
                                
                                    {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
                                        
                                    {% else %}
                                        {{ form_widget(form.login_memory, { 'label': 'common.remember_me'|trans }) }}
                                    {% endif %}
                                
                            
                        {% endif %}
                        {% for reset_complete in app.session.flashbag.get('password_reset_complete') %}
                            {{ reset_complete|trans }}
                        {% endfor %}
                        {% if error %}
                            {{ error.messageKey|trans(error.messageData, 'validators')|nl2br }}
                        {% endif %}
                    
                    
                        
                            
                                {{ 'common.login'|trans }}
                            
                        
                        
                            
                                {{ 'common.forgot_login'|trans }}
                            
                            
                                {{ 'common.signup'|trans }}
                            
                        
                    
                
                
            
        
    

{% endblock %}

Merge request reports