Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
WE.SpreadsheetImport
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Labels
Merge Requests
0
Merge Requests
0
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
packages
WE.SpreadsheetImport
Commits
e3eacb0f
Commit
e3eacb0f
authored
Jun 29, 2017
by
Simon Gadient
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IMP] Support label text to overwrite label id
refs KIME-5498
parent
69bce401
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
Classes/WE/SpreadsheetImport/Annotations/Mapping.php
Classes/WE/SpreadsheetImport/Annotations/Mapping.php
+7
-0
Resources/Private/Templates/SpreadsheetImport/Mapping.html
Resources/Private/Templates/SpreadsheetImport/Mapping.html
+6
-1
Resources/Private/Templates/SpreadsheetImport/Preview.html
Resources/Private/Templates/SpreadsheetImport/Preview.html
+6
-1
No files found.
Classes/WE/SpreadsheetImport/Annotations/Mapping.php
View file @
e3eacb0f
...
...
@@ -26,6 +26,13 @@ final class Mapping {
*/
public
$labelId
=
''
;
/**
* Label text for the property mapping if no labelId is set
*
* @var string
*/
public
$labelText
=
''
;
/**
* Flag if property is handled as an identifier for updates
*
...
...
Resources/Private/Templates/SpreadsheetImport/Mapping.html
View file @
e3eacb0f
...
...
@@ -10,8 +10,13 @@
<label
for=
"{property}"
>
<f:if
condition=
"{columnMapping.mapping.labelId}"
>
<f:then><f:translate
id=
"{columnMapping.mapping.labelId}"
/></f:then>
<f:else>
<f:if
condition=
"{columnMapping.mapping.labelText}"
>
<f:then>
{columnMapping.mapping.labelText}
</f:then>
<f:else>
{property}
</f:else>
</f:if>
</f:else>
</f:if>
<f:if
condition=
"{columnMapping.mapping.identifier}"
>
<span
class=
"require"
>
*
</span>
</f:if>
...
...
Resources/Private/Templates/SpreadsheetImport/Preview.html
View file @
e3eacb0f
...
...
@@ -23,8 +23,13 @@
<label
class=
"{f:if(condition: previewMapping.error, then: 'error-text')}"
>
<f:if
condition=
"{previewMapping.mapping.labelId}"
>
<f:then><f:translate
id=
"{previewMapping.mapping.labelId}"
/>
:
</f:then>
<f:else>
<f:if
condition=
"{previewMapping.mapping.labelText}"
>
<f:then>
{previewMapping.mapping.labelText}:
</f:then>
<f:else>
{property}:
</f:else>
</f:if>
</f:else>
</f:if>
</label>
<div
class=
"{f:if(condition: previewMapping.error, then: 'error-text')}"
>
{previewMapping.value}
</div>
</div>
...
...
Write
Preview
Markdown
is supported
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