47 lines
1.4 KiB
Twig
47 lines
1.4 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Node index{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>Node index</h1>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Quantity</th>
|
|
<th>Coordinate</th>
|
|
<th>Youtube</th>
|
|
<th>CreateAt</th>
|
|
<th>ModifiedAt</th>
|
|
<th>Version</th>
|
|
<th>IsDeleted</th>
|
|
<th>actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for node in nodes %}
|
|
<tr>
|
|
<td>{{ node.id }}</td>
|
|
<td>{{ node.quantity }}</td>
|
|
<td>{{ node.coordinate ? node.coordinate|json_encode : '' }}</td>
|
|
<td>{{ node.youtube }}</td>
|
|
<td>{{ node.createAt ? node.createAt|date('Y-m-d H:i:s') : '' }}</td>
|
|
<td>{{ node.modifiedAt ? node.modifiedAt|date('Y-m-d H:i:s') : '' }}</td>
|
|
<td>{{ node.version }}</td>
|
|
<td>{{ node.isDeleted ? 'Yes' : 'No' }}</td>
|
|
<td>
|
|
<a href="{{ path('bo_node_edit', {'id': node.id}) }}">edit</a>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="9">no records found</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{#<a href="{{ path('bo_node_new') }}">Create new</a>#}
|
|
{% endblock %}
|