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
6675670c
Commit
6675670c
authored
Jun 29, 2017
by
Chivy Lim
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'KIME-5498' into 'master'
[IMP] Support label text to overwrite label id See merge request
!20
parents
69bce401
e3eacb0f
Changes
3
Hide 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 @
6675670c
...
...
@@ -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 @
6675670c
...
...
@@ -10,7 +10,12 @@
<label
for=
"{property}"
>
<f:if
condition=
"{columnMapping.mapping.labelId}"
>
<f:then><f:translate
id=
"{columnMapping.mapping.labelId}"
/></f:then>
<f:else>
{property}
</f:else>
<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>
...
...
Resources/Private/Templates/SpreadsheetImport/Preview.html
View file @
6675670c
...
...
@@ -23,7 +23,12 @@
<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>
{property}:
</f:else>
<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>
...
...
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