Skip to content

Commit

Permalink
zpretty - pt
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffersonBledsoe committed Dec 15, 2023
1 parent 2916ce5 commit efce36b
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 20 deletions.
21 changes: 14 additions & 7 deletions src/collective/volto/formsupport/browser/send_mail_template.pt
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
<tal:root xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="collective.volto.formsupport"
define="parameters python:options.get('parameters', {});
define="
parameters python:options.get('parameters', {});
url python:options.get('url', '');
title python:options.get('title', '');">
title python:options.get('title', '');
"
i18n:domain="collective.volto.formsupport"
>
<p i18n:translate="send_mail_text">
A new form has been submitted from <strong i18n:name="url">${title}</strong>:
A new form has been submitted from
<strong i18n:name="url">${title}</strong>:
</p>
<ul>
<tal:field repeat="field parameters">
<li tal:define="value field/value|nothing;
label field/label|nothing">
<strong>${label}:</strong> ${value}
<li tal:define="
value field/value|nothing;
label field/label|nothing;
">
<strong>${label}:</strong>
${value}
</li>
</tal:field>
</ul>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<tal:root xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="collective.volto.formsupport"
define="parameters python:options.get('parameters', {});
define="
parameters python:options.get('parameters', {});
url python:options.get('url', '');
title python:options.get('title', '');">
title python:options.get('title', '');
"
i18n:domain="collective.volto.formsupport"
>
<style>
th {
text-align: start;
Expand All @@ -12,24 +15,28 @@
<caption i18n:translate="send_mail_text_table">Form submission data for ${title}</caption>
<thead>
<tr role="row">
<th scope="col"
role="columnheader">Field</th>
<th scope="col"
role="columnheader">Value</th>
<th role="columnheader"
scope="col"
>Field</th>
<th role="columnheader"
scope="col"
>Value</th>
</tr>
</thead>
<tbody>
<tal:field repeat="field parameters">
<tr role="row"
tal:define="value field/value|nothing;
label field/label|nothing">
<th scope="row"
role="rowheader">${label}</th>
tal:define="
value field/value|nothing;
label field/label|nothing;
"
>
<th role="rowheader"
scope="row"
>${label}</th>
<td>${value}</td>
</tr>
</tal:field>
</tbody>
</table>
</tal:root>


0 comments on commit efce36b

Please sign in to comment.