Commit d4e72033 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[BUGFIX] Fix edit links in list view

parent 6fb995a2
{namespace sg=SGalinski\SgMail\ViewHelpers}
{namespace be=TYPO3\CMS\Backend\ViewHelpers}
<f:layout name="Default" />
<f:section name="iconButtons">
<a href="#" class="btn btn-default btn-sm" title="{f:translate(key: 'backend.button_create_layout')}" onclick="{sg:backend.editOnClick(table: 'tx_sgmail_domain_model_layout', uid: pageUid, new: 1)}">
<be:link.newRecord table="tx_sgmail_domain_model_layout" pid="{pageUid}" class="btn btn-default btn-sm" title="{f:translate(key: 'backend.button_create_layout')}">
<core:icon identifier="actions-document-new" />
</a>
</be:link.newRecord>
<f:if condition="{pasteButton}">
<a href="{pasteButton.url}" class="btn btn-sm btn-default t3js-modal-trigger" data-severity="warning"
data-content="{pasteButton.message}"
......@@ -33,11 +34,11 @@
</f:format.raw>
</td>
<td nowrap="nowrap">
<a href="#" onclick="{sg:backend.editOnClick(table: 'tx_sgmail_domain_model_layout', uid: layout.uid)}">
<be:link.editRecord uid="{layout.uid}" table="tx_sgmail_domain_model_layout">
<span>
{layout.name}
</span>
</a>
</be:link.editRecord>
</td>
<td nowrap="nowrap" class="col-control">
<f:format.raw>
......
{namespace sgm=SGalinski\SgMail\ViewHelpers}
<f:layout name="Queue" />
<f:section name="iconButtons">
......@@ -30,7 +31,6 @@
</thead>
<tbody>
<f:for each="{paginatedMails}" as="mail">
{sgm:backend.editOnClick(table: 'tx_sgmail_domain_model_mail', uid: mail.uid) -> sgm:set(name: 'editOnClick')}
<tr data-uid="{mail.uid}">
<td nowrap="nowrap" class="col-icon">
<sgm:backend.icon table="tx_sgmail_domain_model_mail" row="{mail}" />
......
Markdown is supported
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