update form
This commit is contained in:
46
templates/post/show.html.twig
Normal file
46
templates/post/show.html.twig
Normal file
@@ -0,0 +1,46 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Post{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Post</h1>
|
||||
|
||||
<table class="table">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<td>{{ post.id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>FoundDate</th>
|
||||
<td>{{ post.foundDate ? post.foundDate|date('Y-m-d H:i:s') : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>PublicationDate</th>
|
||||
<td>{{ post.publicationDate ? post.publicationDate|date('Y-m-d H:i:s') : '' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Latitude</th>
|
||||
<td>{{ post.latitude }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Longitude</th>
|
||||
<td>{{ post.longitude }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Altitude</th>
|
||||
<td>{{ post.altitude }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentary</th>
|
||||
<td>{{ post.commentary }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<a href="{{ path('app_post_index') }}">back to list</a>
|
||||
|
||||
<a href="{{ path('app_post_edit', {'id': post.id}) }}">edit</a>
|
||||
|
||||
{{ include('post/_delete_form.html.twig') }}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user