2023-06-22 13:17:51 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
|
|
|
<f:layout name="FrontEndEditor"/>
|
|
|
|
|
|
|
|
<f:section name="main">
|
|
|
|
<h2>
|
|
|
|
<f:translate key="plugin.frontEndEditor.index.heading"/>
|
|
|
|
</h2>
|
|
|
|
|
2023-06-22 20:30:12 +02:00
|
|
|
<p class="btn btn-link">
|
|
|
|
<f:link.action action="new">
|
|
|
|
<f:translate key="plugin.frontEndEditor.action.new"/>
|
|
|
|
</f:link.action>
|
|
|
|
</p>
|
|
|
|
|
2023-06-22 13:17:51 +02:00
|
|
|
<f:if condition="{teas}">
|
|
|
|
<f:then>
|
|
|
|
<table class="table table-striped table-hover">
|
|
|
|
<tr>
|
|
|
|
<th scope="col">
|
|
|
|
<f:translate key="plugin.frontEndEditor.property.uid"/>
|
|
|
|
</th>
|
|
|
|
<th scope="col">
|
|
|
|
<f:translate key="plugin.frontEndEditor.property.title"/>
|
|
|
|
</th>
|
2023-06-23 11:55:19 +02:00
|
|
|
<th scope="col" colspan="2">
|
2023-06-22 14:20:14 +02:00
|
|
|
<f:translate key="plugin.frontEndEditor.action.actions"/>
|
|
|
|
</th>
|
2023-11-27 15:44:16 +01:00
|
|
|
<th scope="col" colspan="2">
|
|
|
|
<f:translate key="plugin.frontEndEditor.action.rating"/>
|
|
|
|
</th>
|
2023-06-22 13:17:51 +02:00
|
|
|
</tr>
|
|
|
|
<f:for each="{teas}" as="tea">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
{tea.uid}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{tea.title}
|
|
|
|
</td>
|
2023-06-22 14:20:14 +02:00
|
|
|
<td>
|
|
|
|
<f:link.action action="edit" arguments="{tea: tea}">
|
|
|
|
<f:translate key="plugin.frontEndEditor.action.edit"/>
|
|
|
|
</f:link.action>
|
|
|
|
</td>
|
2023-06-23 11:55:19 +02:00
|
|
|
<td>
|
|
|
|
<f:form action="delete" name="tea" object="{tea}">
|
|
|
|
<f:form.submit value="{f:translate(key: 'plugin.frontEndEditor.action.delete')}"
|
|
|
|
class="btn btn-danger"/>
|
|
|
|
</f:form>
|
|
|
|
</td>
|
2023-11-27 15:44:16 +01:00
|
|
|
<td>
|
|
|
|
<f:link.action action="rating" controller="Rating" arguments="{tea:tea,stars:1}">1</f:link.action>
|
|
|
|
<f:link.action action="rating" controller="Rating" arguments="{tea:tea,stars:2}">2</f:link.action>
|
|
|
|
<f:link.action action="rating" controller="Rating" arguments="{tea:tea,stars:3}">3</f:link.action>
|
|
|
|
<f:link.action action="rating" controller="Rating" arguments="{tea:tea,stars:4}">4</f:link.action>
|
|
|
|
<f:link.action action="rating" controller="Rating" arguments="{tea:tea,stars:5}">5</f:link.action>
|
|
|
|
({tea.stars})
|
|
|
|
</td>
|
2023-06-22 13:17:51 +02:00
|
|
|
</tr>
|
|
|
|
</f:for>
|
|
|
|
</table>
|
|
|
|
</f:then>
|
|
|
|
<f:else>
|
|
|
|
<p class="alert alert-info" role="alert">
|
|
|
|
<f:translate key="plugin.frontEndEditor.message.noTeas"/>
|
|
|
|
</p>
|
|
|
|
</f:else>
|
|
|
|
</f:if>
|
|
|
|
</f:section>
|
|
|
|
</html>
|