Skip to content

Instantly share code, notes, and snippets.

@andrechavesg
Created November 8, 2018 06:49
Show Gist options
  • Save andrechavesg/8069b585e2524c56c97a534c085d23e9 to your computer and use it in GitHub Desktop.
Save andrechavesg/8069b585e2524c56c97a534c085d23e9 to your computer and use it in GitHub Desktop.
{% extends 'base.html.twig' %}
{% block body %}
<div class="panel panel-default">
<div class="panel-heading">
Usuario
</div>
<!-- /.panel-heading -->
<div class="panel-body">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Login</th>
<th>Permissão</th>
<th>Ações</th>
</tr>
</thead>
<tbody>
{% for usuario in usuarios %}
<tr>
<td><a href="/usuario/edita/{{ usuario.id }}">{{ usuario.login }}</a></td>
<td>{{ usuario.permissao }}</td>
<td>
<a class="btn btn-danger" href="/usuario/remove/{{ usuario.id }}">remover</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /.panel-body -->
</div>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment