Skip to content

Commit

Permalink
[#2169] Improved mail-template syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Mar 11, 2024
1 parent 3960c19 commit ced91f7
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2>{{ type_description }}</h2>
<tr>
<td class="td--responsive td-mail td__padding-right td__padding-bottom td__padding-left td__leftcell" colspan="2"><p><a href="{{ contact_page }}#">Ga naar onze contactpagina</a></p>
</td>
<td class="td--responsive td-mail td__padding-right td__padding-bottom td__padding-left td__rightcell td__nowrap" colspan="4"><p><a href="tel:{{contact_phonenumber}}" data-rel="external">{{contact_phonenumber}}</a></p></td>
<td class="td--responsive td-mail td__padding-right td__padding-bottom td__padding-left td__rightcell td__nowrap" colspan="4"><p><a href="tel:{{ contact_phonenumber }}" data-rel="external">Bel {{ contact_phonenumber }}</a></p></td>
</tr>
<tr class="tr-mail border-top">
<td class="td-mail border-top td__padding-zero" colspan="6">
Expand Down
2 changes: 1 addition & 1 deletion src/open_inwoner/conf/parts/case_status_notification.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h2>{{ type_description }}</h2>
<tr>
<td class="td--responsive td-mail td__padding-right td__padding-bottom td__padding-left td__leftcell" colspan="2"><p><a href="{{ contact_page }}">Ga naar onze contactpagina</a></p>
</td>
<td class="td--responsive td-mail td__padding-right td__padding-bottom td__padding-left td__rightcell td__nowrap" colspan="4"><p><a href="tel:{{ contact_phonenumber }}" data-rel="external">{{ contact_phonenumber }}</a></p></td>
<td class="td--responsive td-mail td__padding-right td__padding-bottom td__padding-left td__rightcell td__nowrap" colspan="4"><p><a href="tel:{{ contact_phonenumber }}" data-rel="external">Bel {{ contact_phonenumber }}</a></p></td>
</tr>
<tr class="tr-mail border-top">
<td class="td-mail border-top td__padding-zero" colspan="6">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ <h2>{{ type_description }}</h2>
<tr class="tr--responsive">
<td class="td--responsive td-mail td__padding-right td__padding-bottom td__padding-left td__leftcell" colspan="2"><p><a href="{{ contact_page }}">Ga naar onze contactpagina</a></p>
</td>
<td class="td--responsive td-mail td__padding-right td__padding-bottom td__padding-left td__rightcell td__nowrap" colspan="4"><p><a href="tel:{{ contact_phonenumber }}" data-rel="external">{{ contact_phonenumber }}</a></p></td>
<td class="td--responsive td-mail td__padding-right td__padding-bottom td__padding-left td__rightcell td__nowrap" colspan="4"><p><a href="tel:{{ contact_phonenumber }}" data-rel="external">Bel {{ contact_phonenumber }}</a></p></td>
</tr>
<tr class="tr-mail border-top">
<td class="td-mail border-top td__padding-zero" colspan="6">
Expand Down
20 changes: 20 additions & 0 deletions src/open_inwoner/conf/parts/maileditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ def _readfile(name):
"name": "contact_page",
"description": _("The link to an existing contactpage"),
},
{
"name": "contact_phonenumber",
"description": _("The callable link to the configured phonenumber"),
},
{
"name": "profile_notifications",
"description": _(
Expand Down Expand Up @@ -294,6 +298,14 @@ def _readfile(name):
"name": "site_name",
"description": _("Name of the site"),
},
{
"name": "contact_page",
"description": _("The link to an existing contactpage"),
},
{
"name": "contact_phonenumber",
"description": _("The callable link to the configured phonenumber"),
},
{
"name": "profile_notifications",
"description": _(
Expand Down Expand Up @@ -350,6 +362,14 @@ def _readfile(name):
"name": "site_name",
"description": _("Name of the site"),
},
{
"name": "contact_page",
"description": _("The link to an existing contactpage"),
},
{
"name": "contact_phonenumber",
"description": _("The callable link to the configured phonenumber"),
},
{
"name": "profile_notifications",
"description": _(
Expand Down
2 changes: 1 addition & 1 deletion src/open_inwoner/static/mailcss/email.css
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ td.align-center {
}

.td__rightcell.td__nowrap {
min-width: 300px;
min-width: 200px;
}

.spacing__extra {
Expand Down
2 changes: 1 addition & 1 deletion src/open_inwoner/templates/mail/_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@

.button--primary {
background-color: {{ theming.primary_color }};
border: 1px solid{{ theming.primary_color }};
border: 1px solid {{ theming.primary_color }};
}

.td-mail__bg-accent {
Expand Down

0 comments on commit ced91f7

Please sign in to comment.