Commit ad2de583 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Adding types to markers

parent 49d269ce
...@@ -44,6 +44,21 @@ use TYPO3\CMS\Fluid\View\StandaloneView; ...@@ -44,6 +44,21 @@ use TYPO3\CMS\Fluid\View\StandaloneView;
*/ */
class MailTemplateService { class MailTemplateService {
/**
* @var string
*/
const MARKER_TYPE_STRING = 'String';
/**
* @var string
*/
const MARKER_TYPE_DATE = 'Date';
/**
* @var string
*/
const MARKER_TYPE_INTEGER = 'Integer';
/** /**
* @var array $registerArray * @var array $registerArray
*/ */
......
...@@ -61,6 +61,10 @@ ...@@ -61,6 +61,10 @@
<source>Value</source> <source>Value</source>
<target>Wert</target> <target>Wert</target>
</trans-unit> </trans-unit>
<trans-unit id="backend.type" approved="yes">
<source>Type</source>
<target>Typ</target>
</trans-unit>
<trans-unit id="mlang_labels_tabdescr" approved="yes"> <trans-unit id="mlang_labels_tabdescr" approved="yes">
<source>Mail Templates</source> <source>Mail Templates</source>
<target>Mail Templates</target> <target>Mail Templates</target>
......
...@@ -48,6 +48,9 @@ ...@@ -48,6 +48,9 @@
<trans-unit id="backend.value"> <trans-unit id="backend.value">
<source>Value</source> <source>Value</source>
</trans-unit> </trans-unit>
<trans-unit id="backend.type">
<source>Type</source>
</trans-unit>
<trans-unit id="mlang_labels_tabdescr"> <trans-unit id="mlang_labels_tabdescr">
<source>Mail Templates</source> <source>Mail Templates</source>
</trans-unit> </trans-unit>
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
<thead> <thead>
<tr> <tr>
<th><f:translate key="backend.marker" /></th> <th><f:translate key="backend.marker" /></th>
<th><f:translate key="backend.type" /></th>
<th><f:translate key="backend.value" /></th> <th><f:translate key="backend.value" /></th>
<th><f:translate key="backend.description" /></th> <th><f:translate key="backend.description" /></th>
</tr> </tr>
...@@ -22,6 +23,11 @@ ...@@ -22,6 +23,11 @@
<f:for each="{selectedTemplate.marker}" as="marker"> <f:for each="{selectedTemplate.marker}" as="marker">
<tr> <tr>
<td>{marker.marker}</td> <td>{marker.marker}</td>
<td>
<f:if condition="{marker.type}">
<f:translate key="{marker.type}">{marker.type}</f:translate>
</f:if>
</td>
<td> <td>
<f:if condition="{marker.value}"> <f:if condition="{marker.value}">
<f:translate key="{marker.value}">{marker.value}</f:translate> <f:translate key="{marker.value}">{marker.value}</f:translate>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment