Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
TYPO3
sg_mail
Commits
ad2de583
Commit
ad2de583
authored
Feb 13, 2017
by
Torsten Oppermann
Browse files
[TASK] Adding types to markers
parent
49d269ce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Classes/Service/MailTemplateService.php
View file @
ad2de583
...
...
@@ -44,6 +44,21 @@ use TYPO3\CMS\Fluid\View\StandaloneView;
*/
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
*/
...
...
Resources/Private/Language/de.locallang.xlf
View file @
ad2de583
...
...
@@ -61,6 +61,10 @@
<source>
Value
</source>
<target>
Wert
</target>
</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"
>
<source>
Mail Templates
</source>
<target>
Mail Templates
</target>
...
...
Resources/Private/Language/locallang.xlf
View file @
ad2de583
...
...
@@ -48,6 +48,9 @@
<trans-unit
id=
"backend.value"
>
<source>
Value
</source>
</trans-unit>
<trans-unit
id=
"backend.type"
>
<source>
Type
</source>
</trans-unit>
<trans-unit
id=
"mlang_labels_tabdescr"
>
<source>
Mail Templates
</source>
</trans-unit>
...
...
Resources/Private/Templates/Mail/Index.html
View file @
ad2de583
...
...
@@ -15,6 +15,7 @@
<thead>
<tr>
<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.description"
/></th>
</tr>
...
...
@@ -22,6 +23,11 @@
<f:for
each=
"{selectedTemplate.marker}"
as=
"marker"
>
<tr>
<td>
{marker.marker}
</td>
<td>
<f:if
condition=
"{marker.type}"
>
<f:translate
key=
"{marker.type}"
>
{marker.type}
</f:translate>
</f:if>
</td>
<td>
<f:if
condition=
"{marker.value}"
>
<f:translate
key=
"{marker.value}"
>
{marker.value}
</f:translate>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment