Source du gabarit : staff/association_list.html

{% extends 'base.html' %} {% block title %} Associations {% endblock %} {% block content %} <div class="ui main container"> <p></p> <div class="ui raised segment"> <table id="associations-table" class="ui compact selectable striped celled table" cellspacing="0" width="100%"> <thead> <tr> <th>Nom</th> <th>Surnom</th> <th>Téléphone</th> <th>Commune</th> <th>Adresse</th> <th>Réseaux sociaux</th> </tr> </thead> <tbody> {% for association in object_list %} <tr> <td>{{ association.nom }}</td> <td> {{ association.surnom |default:"/" }} </td> <td>{{ association.telephone }} {% if association.telephone_2 != None %} <br/> {{ association.telephone_2 }} {% endif %} </td> <td>{{ association.commune }}</td> <td>{{ association.address }}</td> <td class="actions"> <div class="row"> <a href="{{ association.website }}" target="_blank" class="ui {% if association.website == None %}disabled{% endif %} tiny circular globe icon button" > <i class="globe icon"></i> </a> <a href="{{ association.facebook }}" target="_blank" class="ui {% if association.facebook == None %}disabled{% endif %} tiny circular facebook icon button"> <i class="facebook icon"></i> </a> <a href="{{ association.youtube }}" target="_blank" class="ui {% if association.youtube == None %}disabled{% endif %} tiny circular youtube icon button"> <i class="youtube icon"></i> </a> <addresslink class="ui {% if association.address == None %}disabled{% endif %} tiny circular map marker alternate icon teal button">{{ association.address }} </addresslink> </div> </td> </tr> {% empty %} <td>Aucune association est ajoutée pour le moment</td> <td></td> <td></td> <td></td> <td></td> <td></td> {% endfor %} </tbody> </table> </div> </div> {% endblock %}