Skip to content

Instantly share code, notes, and snippets.

@hason
Created November 9, 2017 14:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Test
{% extends "base.html.twig" %}
{% block body %}
<h1>Students</h1>
<form name="student" action="{{ path('app_student_register') }}" method="post">
<table>
<tr>
<th>#</th>
<th>Name</th>
<th>Isic</th>
<th>Actions</th>
</tr>
{% for student in students %}
<tr>
<td>{{ loop.index }}</td>
<td>{{ student.name }}</td>
<td>{{ student.isic }}</td>
<td></td>
</tr>
{% endfor %}
<tr>
<td></td>
<td><input type="text" name="name"></td>
<td><input type="text" name="isic"></td>
<td><button type="submit">Register</button></td>
</tr>
</table>
</form>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment