|
293
|
1 |
{% extends "base.html" %} |
|
|
2 |
{% load i18n %} |
|
|
3 |
{% load static %} |
|
295
|
4 |
{% load thumbnail %} |
|
293
|
5 |
|
|
294
|
6 |
{% block title %}{{block.super}} > Profil utilisateur : {{ user.username }}{% endblock %} |
|
293
|
7 |
|
|
|
8 |
{% block css_import %} |
|
|
9 |
{{block.super}} |
|
|
10 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/index.css' %}" /> |
|
|
11 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/ui-lightness/jquery-ui-1.10.4.min.css' %}" /> |
|
|
12 |
<link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/profile.css' %}" /> |
|
|
13 |
{% endblock %} |
|
|
14 |
|
|
297
|
15 |
{% block js_import %} |
|
|
16 |
{{block.super}} |
|
|
17 |
<script src="{% static 'hdalab/js/profile.js' %}"></script> |
|
|
18 |
{% endblock %} |
|
|
19 |
|
|
293
|
20 |
{% block main_content %} |
|
|
21 |
<h2>Votre profil</h2> |
|
|
22 |
<p>Vos renkans : </p> |
|
|
23 |
<table> |
|
|
24 |
<tr class="border_bottom"><th>Nom</th><th>Date de modification</th><th>Preview</th><th>Actions</th></tr> |
|
294
|
25 |
{% for r in renkan_list %} |
|
293
|
26 |
<tr class="border_bottom"> |
|
294
|
27 |
<td>{{ r.title }} ({{ r.id }})</td> |
|
|
28 |
<td>{{ r.modification_date|date:"Y-m-d H:i" }}</td> |
|
295
|
29 |
<td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td> |
|
293
|
30 |
<td> |
|
297
|
31 |
<a title="Edit renkan" href="{% url 'renkan_edit' %}?rk_id={{ r.rk_id }}" class="renkan-basic-action"><span class="ui-icon ui-icon-pencil"></span></a> |
|
294
|
32 |
<a title="View renkan" href="#" class="renkan-basic-action"><span class="ui-icon ui-icon-eye"></span></a> |
|
297
|
33 |
<a title="Copy renkan" href="{% url 'renkan_copy' rk_id=r.rk_id %}" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to copy this renkan ?" %}');" ><span class="ui-icon ui-icon-copy"></span></a> |
|
|
34 |
<a title="Remove renkan" href="{% url 'renkan_delete' rk_id=r.rk_id %}" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to delete this renkan ? You cannot undo this action." %}');" ><span class="ui-icon ui-icon-trash"></span></a> |
|
293
|
35 |
</td> |
|
|
36 |
</tr> |
|
294
|
37 |
{% endfor %} |
|
293
|
38 |
</table> |
|
|
39 |
<p>Gestion du mot de passe : <a href="{% url 'auth_password_change' %}">modification</a></p> |
|
|
40 |
{% endblock %} |