Commit 527a6709587a61e441987d819725945a412abb3f

Authored by hitier
1 parent d9f5cfc9

In agents list, Link agent to its page

Showing 1 changed file with 4 additions and 3 deletions   Show diff stats
app/main/templates/agents.html
... ... @@ -4,14 +4,15 @@
4 4 <thead>
5 5 <tr>
6 6 <th scope="col">Nom</th>
7   - <th scope="col">Prénom</th>
8 7 </tr>
9 8 </thead>
10 9 <tbody>
11 10 {% for agent in agents %}
12 11 <tr>
13   - <td>{{ agent.firstname }}</td>
14   - <td>{{agent.secondname}}</td>
  12 + <td><a href="{{url_for('main.agent', agent_id=agent.id)}}">
  13 + {{ agent.firstname }}
  14 + {{ agent.secondname }}
  15 + </a></td>
15 16 </tr>
16 17 {% endfor %}
17 18 </tbody>
... ...