Admin layout

devFront
root 2018-06-06 12:25:22 +02:00
parent 8d9b89d73d
commit 99679ef5b9
2 changed files with 10 additions and 8 deletions

View File

@ -17,10 +17,10 @@
<tr>
<td>{{ question.id }}</td>
<td>{{ question.text }}</td>
<td>{{ question.date ? question.date|date('Y-m-d H:i:s') : '' }}</td>
<td>{{ question.date ? question.date|date('d/m/Y à H:i') : '' }}</td>
<td>
<a href="{{ path('question_show', {'id': question.id}) }}">show</a>
<a href="{{ path('question_edit', {'id': question.id}) }}">edit</a>
<a href="{{ path('question_show', {'id': question.id}) }}">Afficher</a>
<a href="{{ path('question_edit', {'id': question.id}) }}" class="btn btn-primary">Modifier</a>
</td>
</tr>
{% else %}
@ -33,5 +33,5 @@
<hr>
<a href="{{ path('question_new') }}">Create new</a>
<a href="{{ path('question_new') }}" class="btn btn-primary">Create new</a>
{% endblock %}

View File

@ -8,7 +8,8 @@
<tr>
<th>Id</th>
<th>Text</th>
<th>actions</th>
<th>Question</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
@ -16,9 +17,10 @@
<tr>
<td>{{ response.id }}</td>
<td>{{ response.text }}</td>
<td>{{ response.question }}</td>
<td>
<a href="{{ path('response_show', {'id': response.id}) }}">show</a>
<a href="{{ path('response_edit', {'id': response.id}) }}">edit</a>
<a href="{{ path('response_show', {'id': response.id}) }}">Afficher</a>
<a href="{{ path('response_edit', {'id': response.id}) }}" class="btn btn-primary btn-xs">Modifier</a>
</td>
</tr>
{% else %}
@ -29,5 +31,5 @@
</tbody>
</table>
<a href="{{ path('response_new') }}">Create new</a>
<a href="{{ path('response_new') }}" class="btn btn-primary">Create new</a>
{% endblock %}