Fixes for buttons in email templates

This commit is contained in:
David Bomba 2023-02-28 19:43:10 +11:00
parent eda1652123
commit 878cd74653
6 changed files with 139 additions and 71 deletions

View File

@ -2,20 +2,29 @@
<div class="center"> <div class="center">
<p>{{ ctrans('texts.confirmation_message') }}</p> <p>{{ ctrans('texts.confirmation_message') }}</p>
<!-- <a href="{{ url("/user/confirm/{$user->confirmation_code}") }}" target="_blank" class="button"> <div>
{{ ctrans('texts.confirm') }} <!--[if (gte mso 9)|(IE)]>
</a> --> <table align="center" cellspacing="0" cellpadding="0" style="width: 600px;">
<tr>
<table border="0" cellspacing="0" cellpadding="0" align="center"> <td align="center" valign="top">
<tr style="border: 0 !important; "> <![endif]-->
<td class="new_button" style="padding: 12px 18px 12px 18px; border-radius:5px;" align="center"> <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" >
<a href="{{ url("/user/confirm/{$user->confirmation_code}") }}" target="_blank" style="border: 0 !important;font-size: 18px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; display: inline-block;"> <tbody>
{{ ctrans('texts.confirm') }} <tr>
</a> <td align="center" class="new_button" style="border-radius: 2px; background-color: '.$this->settings->primary_color.'">
</td> <a href="{{ url("/user/confirm/{$user->confirmation_code}") }}" target="_blank" class="new_button" style="text-decoration: none; border: 1px solid '.$this->settings->primary_color.'; display: inline-block; border-radius: 2px; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; font-size: 20px; color: #fff">
</tr> <singleline label="cta button">{{ ctrans('texts.confirm') }}</singleline>
</table> </a>
</td>
</tr>
</tbody>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
</div> </div>
@endcomponent @endcomponent

View File

@ -3,17 +3,29 @@
<h1>{{ ctrans('texts.login_link_requested_label') }}</h1> <h1>{{ ctrans('texts.login_link_requested_label') }}</h1>
<p>{{ ctrans('texts.login_link_requested') }}</p> <p>{{ ctrans('texts.login_link_requested') }}</p>
<!-- <a href="{{ $url }}" target="_blank" class="button"> {{ ctrans('texts.login')}}</a> --> <div>
<!--[if (gte mso 9)|(IE)]>
<table border="0" cellspacing="0" cellpadding="0" align="center"> <table align="center" cellspacing="0" cellpadding="0" style="width: 600px;">
<tr style="border: 0 !important; "> <tr>
<td class="new_button" style="padding: 12px 18px 12px 18px; border-radius:5px;" align="center"> <td align="center" valign="top">
<a href="{{ $url }}") }}" target="_blank" style="border: 0 !important;font-size: 18px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; display: inline-block;"> <![endif]-->
{{ ctrans('texts.login')}} <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" >
</a> <tbody>
</td> <tr>
</tr> <td align="center" class="new_button" style="border-radius: 2px; background-color: '.$this->settings->primary_color.'">
</table> <a href="{{ $url }}" target="_blank" class="new_button" style="text-decoration: none; border: 1px solid '.$this->settings->primary_color.'; display: inline-block; border-radius: 2px; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; font-size: 20px; color: #fff">
<singleline label="cta button">{{ ctrans('texts.login') }}</singleline>
</a>
</td>
</tr>
</tbody>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
</div> </div>
@endcomponent @endcomponent

View File

@ -3,17 +3,29 @@
<h1>{{ ctrans('texts.ach_verification_notification_label') }}</h1> <h1>{{ ctrans('texts.ach_verification_notification_label') }}</h1>
<p>{{ ctrans('texts.ach_verification_notification') }}</p> <p>{{ ctrans('texts.ach_verification_notification') }}</p>
<!-- <a class="button" href="{{ $url }}">{{ ctrans('texts.complete_verification') }}</a> --> <div>
<!--[if (gte mso 9)|(IE)]>
<table border="0" cellspacing="0" cellpadding="0" align="center"> <table align="center" cellspacing="0" cellpadding="0" style="width: 600px;">
<tr style="border: 0 !important; "> <tr>
<td class="new_button" style="padding: 12px 18px 12px 18px; border-radius:5px;" align="center"> <td align="center" valign="top">
<a href="{{ $url }}") }}" target="_blank" style="border: 0 !important;font-size: 18px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; display: inline-block;"> <![endif]-->
{{ ctrans('texts.complete_verification') }} <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" >
</a> <tbody>
</td> <tr>
</tr> <td align="center" class="new_button" style="border-radius: 2px; background-color: '.$this->settings->primary_color.'">
</table> <a href="{{ $url }}" target="_blank" class="new_button" style="text-decoration: none; border: 1px solid '.$this->settings->primary_color.'; display: inline-block; border-radius: 2px; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; font-size: 20px; color: #fff">
<singleline label="cta button">{{ ctrans('texts.complete_verification') }}</singleline>
</a>
</td>
</tr>
</tbody>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
</div> </div>
@endcomponent @endcomponent

View File

@ -96,17 +96,29 @@
</table> </table>
@endif @endif
<!-- <a href="{{ url('/') }}" target="_blank" class="button">{{ ctrans('texts.account_login')}}</a> --> <div>
<!--[if (gte mso 9)|(IE)]>
<table border="0" cellspacing="0" cellpadding="0" align="center"> <table align="center" cellspacing="0" cellpadding="0" style="width: 600px;">
<tr style="border: 0 !important; "> <tr>
<td class="new_button" style="padding: 12px 18px 12px 18px; border-radius:5px;" align="center"> <td align="center" valign="top">
<a href="{{ url('/') }}") }}" target="_blank" style="border: 0 !important;font-size: 18px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; display: inline-block;"> <![endif]-->
{{ ctrans('texts.account_login') }} <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" >
</a> <tbody>
</td> <tr>
</tr> <td align="center" class="new_button" style="border-radius: 2px; background-color: '.$this->settings->primary_color.'">
</table> <a href="{{ url('/') }}" target="_blank" class="new_button" style="text-decoration: none; border: 1px solid '.$this->settings->primary_color.'; display: inline-block; border-radius: 2px; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; font-size: 20px; color: #fff">
<singleline label="cta button">{{ ctrans('texts.account_login') }}</singleline>
</a>
</td>
</tr>
</tbody>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
<p>{{ ctrans('texts.email_signature')}}</p> <p>{{ ctrans('texts.email_signature')}}</p>
<p>{{ ctrans('texts.email_from') }}</p> <p>{{ ctrans('texts.email_from') }}</p>

View File

@ -91,17 +91,30 @@
</table> </table>
@endif @endif
<!-- <a href="{{ url('/') }}" target="_blank" class="button">{{ ctrans('texts.account_login')}}</a> --> <div>
<!--[if (gte mso 9)|(IE)]>
<table border="0" cellspacing="0" cellpadding="0" align="center"> <table align="center" cellspacing="0" cellpadding="0" style="width: 600px;">
<tr style="border: 0 !important; "> <tr>
<td class="new_button" style="padding: 12px 18px 12px 18px; border-radius:5px;" align="center"> <td align="center" valign="top">
<a href="{{ url('/') }}") }}" target="_blank" style="border: 0 !important;font-size: 18px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; display: inline-block;"> <![endif]-->
{{ ctrans('texts.account_login') }} <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" >
</a> <tbody>
</td> <tr>
</tr> <td align="center" class="new_button" style="border-radius: 2px; background-color: '.$this->settings->primary_color.'">
</table> <a href="{{ url('/') }}" target="_blank" class="new_button" style="text-decoration: none; border: 1px solid '.$this->settings->primary_color.'; display: inline-block; border-radius: 2px; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; font-size: 20px; color: #fff">
<singleline label="cta button">{{ ctrans('texts.account_login') }}</singleline>
</a>
</td>
</tr>
</tbody>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
<p>{{ ctrans('texts.email_signature')}}</p> <p>{{ ctrans('texts.email_signature')}}</p>
<p>{{ ctrans('texts.email_from') }}</p> <p>{{ ctrans('texts.email_from') }}</p>

View File

@ -2,20 +2,30 @@
<div class="center"> <div class="center">
<h1>{{ ctrans('texts.migration_completed')}}</h1> <h1>{{ ctrans('texts.migration_completed')}}</h1>
<p>{{ ctrans('texts.migration_completed_description')}}</p> <p>{{ ctrans('texts.migration_completed_description')}}</p>
<!--
<a href="{{ url('/') }}" target="_blank" class="button">
{{ ctrans('texts.account_login')}}
</a> -->
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr style="border: 0 !important; ">
<td class="new_button" style="padding: 12px 18px 12px 18px; border-radius:5px;" align="center">
<a href="{{ url('/') }}") }}" target="_blank" style="border: 0 !important;font-size: 18px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; display: inline-block;">
{{ ctrans('texts.account_login') }}
</a>
</td>
</tr>
</table>
<div>
<!--[if (gte mso 9)|(IE)]>
<table align="center" cellspacing="0" cellpadding="0" style="width: 600px;">
<tr>
<td align="center" valign="top">
<![endif]-->
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" >
<tbody>
<tr>
<td align="center" class="new_button" style="border-radius: 2px; background-color: '.$this->settings->primary_color.'">
<a href="{{ url('/') }}" target="_blank" class="new_button" style="text-decoration: none; border: 1px solid '.$this->settings->primary_color.'; display: inline-block; border-radius: 2px; padding-top: 15px; padding-bottom: 15px; padding-left: 25px; padding-right: 25px; font-size: 20px; color: #fff">
<singleline label="cta button">{{ ctrans('texts.account_login') }}</singleline>
</a>
</td>
</tr>
</tbody>
</table>
<!--[if (gte mso 9)|(IE)]>
</td>
</tr>
</table>
<![endif]-->
</div>
<p>{{ ctrans('texts.email_signature')}}<br/> {{ ctrans('texts.email_from') }}</p> <p>{{ ctrans('texts.email_signature')}}<br/> {{ ctrans('texts.email_from') }}</p>
</div> </div>