package emails

import (
	"git.ma-al.com/goc_daniel/b2b/app/templ/layout"
	"git.ma-al.com/goc_daniel/b2b/app/view"
	"git.ma-al.com/goc_daniel/b2b/app/utils/i18n"
)

templ EmailPasswordResetWrapper(data view.EmailLayout[view.EmailPasswordResetData]) {
	@layout.Base( i18n.T___(data.LangID, "email.email_password_reset_title")) {
		<div class="container">
            <div class="email-wrapper">
                <div class="email-header">
                    <h1> { i18n.T___(data.LangID, "email.email_greeting") } </h1>
                </div>
                <div class="email-body">
                    <p> { i18n.T___(data.LangID, "email.email_password_reset_message1") } </p>
                    <div style="text-align: center;">
                        <a href= { data.Data.ResetURL } class="button"> { i18n.T___(data.LangID, "email.email_reset_button")  } </a>
                    </div>
                    <p> { i18n.T___(data.LangID, "email.email_or_copy") }</p>
                    <div class="link-container"> { data.Data.ResetURL } </div>
                    <div class="warning">
                        <strong> { i18n.T___(data.LangID, "email.email_warning_title") } </strong> { i18n.T___(data.LangID, "email.email_password_reset_warning") }
                    </div>
                    <p> { i18n.T___(data.LangID, "email.email_ignore_reset") } </p>
                </div>
                <div class="email-footer">
                    <p>&copy; 2024 Gitea Manager. { i18n.T___(data.LangID, "email.email_footer") } </p>
                </div>
            </div>
        </div>
	}
}
