--- a/src/hdalab/templates/profile_home.html Mon Jul 21 16:07:00 2014 +0200
+++ b/src/hdalab/templates/profile_home.html Mon Jul 21 17:44:56 2014 +0200
@@ -15,13 +15,24 @@
{% block js_import %}
{{block.super}}
<script src="{% static 'hdalab/js/profile.js' %}"></script>
+ <script src="{% static 'hdalab/lib/jquery.tablesorter.min.js' %}"></script>
+ <script type="text/javascript">
+ $(document).ready(function(){
+ console.log("hi");
+ $("#rk-table").tablesorter({headers: { 2: { sorter: false }, 4: { sorter: false } }});
+ });
+ </script>
{% endblock %}
{% block main_content %}
<h2>Votre profil</h2>
+ <p><a href="{% url 'renkan_new' %}" >Nouveau Renkan</a></p>
<p>Vos renkans : </p>
- <table>
+ <table id="rk-table">
+ <thead>
<tr class="border_bottom"><th>Nom</th><th>Date de modification</th><th>Preview</th><th>Statut</th><th>Actions</th></tr>
+ </thead>
+ <tbody>
{% for hr in renkan_list %}
{% with hr.renkan as r %}
<tr class="border_bottom">
@@ -38,6 +49,7 @@
</tr>
{% endwith %}
{% endfor %}
+ </tbody>
</table>
<p>Gestion du mot de passe : <a href="{% url 'auth_password_change' %}">modification</a></p>
{% endblock %}
\ No newline at end of file