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> <tr>
<td>{{ question.id }}</td> <td>{{ question.id }}</td>
<td>{{ question.text }}</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> <td>
<a href="{{ path('question_show', {'id': question.id}) }}">show</a> <a href="{{ path('question_show', {'id': question.id}) }}">Afficher</a>
<a href="{{ path('question_edit', {'id': question.id}) }}">edit</a> <a href="{{ path('question_edit', {'id': question.id}) }}" class="btn btn-primary">Modifier</a>
</td> </td>
</tr> </tr>
{% else %} {% else %}
@ -33,5 +33,5 @@
<hr> <hr>
<a href="{{ path('question_new') }}">Create new</a> <a href="{{ path('question_new') }}" class="btn btn-primary">Create new</a>
{% endblock %} {% endblock %}

View File

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