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,14 +4,15 @@
4 <thead> 4 <thead>
5 <tr> 5 <tr>
6 <th scope="col">Nom</th> 6 <th scope="col">Nom</th>
7 - <th scope="col">Prénom</th>  
8 </tr> 7 </tr>
9 </thead> 8 </thead>
10 <tbody> 9 <tbody>
11 {% for agent in agents %} 10 {% for agent in agents %}
12 <tr> 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 </tr> 16 </tr>
16 {% endfor %} 17 {% endfor %}
17 </tbody> 18 </tbody>