mirror of
https://github.com/werkraum-media/thuecat.git
synced 2024-11-17 18:56:11 +01:00
Daniel Siepmann
dc1c45f1c1
Provide first basic import mechanism. It already allows to import entities into TYPO3 database. Three entities are supported. Entities are configured through import configuration. This can be created, viewed, and edited through backend module. Imports are tracked and accessible from backend module. Still this is basic. Importing lists of entities is not supported. Multiple languages is not supported, etc. Relates: #8214
54 lines
2 KiB
HTML
54 lines
2 KiB
HTML
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
|
|
data-namespace-typo3-fluid="true">
|
|
|
|
<h1>{f:translate(id: 'module.imports.headline')}</h1>
|
|
|
|
<f:flashMessages />
|
|
|
|
<f:if condition="{imports}">
|
|
<f:then>
|
|
{f:render(section: 'Imports', arguments: {imports: imports})}
|
|
</f:then>
|
|
<f:else>
|
|
<f:be.infobox
|
|
title="{f:translate(id: 'module.imports.missing.title')}"
|
|
state="1"
|
|
>
|
|
{f:translate(id: 'module.imports.missing.text')}
|
|
</f:be.infobox>
|
|
</f:else>
|
|
</f:if>
|
|
|
|
<f:section name="Imports">
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>{f:translate(id: 'module.imports.th.created')}</th>
|
|
<th>{f:translate(id: 'module.imports.th.configuration')}</th>
|
|
<th>{f:translate(id: 'module.imports.th.amountOfRecords')}</th>
|
|
<th>{f:translate(id: 'module.imports.th.summary')}</th>
|
|
<th>{f:translate(id: 'module.imports.th.errors')}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<f:for each="{imports}" as="import">
|
|
{f:render(section: 'Import', arguments: {import: import})}
|
|
</f:for>
|
|
</tbody>
|
|
</table>
|
|
</f:section>
|
|
|
|
<f:section name="Import">
|
|
<tr class="{f:if(condition: import.errors, then: 'danger')}">
|
|
<td>{import.created -> f:format.date(format: 'd.m.Y H:i:s')}</td>
|
|
<td>{import.configuration.title}</td>
|
|
<td>{import.entries -> f:count()}</td>
|
|
<td><f:for each="{import.summaryOfEntries}" key="tableName" as="amount">
|
|
{f:translate(id: 'module.imports.summary.tableName.{tableName}')} {amount}<br>
|
|
</f:for></td>
|
|
<td><f:for each="{import.listOfErrors}" as="error">
|
|
{error}<br>
|
|
</f:for></td>
|
|
</tr>
|
|
</f:section>
|
|
</html>
|