src/hdalab/templates/profile_home.html
author cavaliet
Mon, 21 Jul 2014 16:07:00 +0200
changeset 299 8e00641076e7
parent 298 8234cb238783
child 300 108fd2717177
permissions -rw-r--r--
remove renkan management to an other django app (see renkan hg repo)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
     1
{% extends "base.html" %}
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
     2
{% load i18n %}
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
     3
{% load static %}
295
af29252631ac renkan object with thumbnail
cavaliet
parents: 294
diff changeset
     4
{% load thumbnail %}
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
     5
294
6c12ccf29a95 loop on profile's renkans
cavaliet
parents: 293
diff changeset
     6
{% block title %}{{block.super}} > Profil utilisateur : {{ user.username }}{% endblock %}
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
     7
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
     8
{% block css_import %}
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
     9
{{block.super}}
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    10
    <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/index.css' %}" />
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    11
    <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/ui-lightness/jquery-ui-1.10.4.min.css' %}" />
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    12
    <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/profile.css' %}" />
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    13
{% endblock %}
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    14
297
0a742e5a25aa save and load renkan to edit from profile page
cavaliet
parents: 296
diff changeset
    15
{% block js_import %}
0a742e5a25aa save and load renkan to edit from profile page
cavaliet
parents: 296
diff changeset
    16
{{block.super}}
0a742e5a25aa save and load renkan to edit from profile page
cavaliet
parents: 296
diff changeset
    17
    <script src="{% static 'hdalab/js/profile.js' %}"></script>
0a742e5a25aa save and load renkan to edit from profile page
cavaliet
parents: 296
diff changeset
    18
{% endblock %}
0a742e5a25aa save and load renkan to edit from profile page
cavaliet
parents: 296
diff changeset
    19
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    20
{% block main_content %}
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    21
    <h2>Votre profil</h2>
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    22
    <p>Vos renkans : </p>
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    23
    <table>
299
8e00641076e7 remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents: 298
diff changeset
    24
        <tr class="border_bottom"><th>Nom</th><th>Date de modification</th><th>Preview</th><th>Statut</th><th>Actions</th></tr>
8e00641076e7 remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents: 298
diff changeset
    25
      {% for hr in renkan_list %}
8e00641076e7 remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents: 298
diff changeset
    26
       {% with hr.renkan as r %}
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    27
        <tr class="border_bottom">
294
6c12ccf29a95 loop on profile's renkans
cavaliet
parents: 293
diff changeset
    28
            <td>{{ r.title }} ({{ r.id }})</td>
6c12ccf29a95 loop on profile's renkans
cavaliet
parents: 293
diff changeset
    29
            <td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
295
af29252631ac renkan object with thumbnail
cavaliet
parents: 294
diff changeset
    30
            <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
299
8e00641076e7 remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents: 298
diff changeset
    31
            <td>{{ hr.state }}</td>
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    32
            <td>
297
0a742e5a25aa save and load renkan to edit from profile page
cavaliet
parents: 296
diff changeset
    33
                <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>
298
8234cb238783 renkan view first step
cavaliet
parents: 297
diff changeset
    34
                <a title="View renkan" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}" class="renkan-basic-action"><span class="ui-icon ui-icon-eye"></span></a>
299
8e00641076e7 remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents: 298
diff changeset
    35
                <a title="Copy renkan" href="{% url 'renkan_copy' rk_id=r.rk_id %}?next={% url 'profile_home' %}" 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>
8e00641076e7 remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents: 298
diff changeset
    36
                <a title="Remove renkan" href="{% url 'renkan_delete' rk_id=r.rk_id %}?next={% url 'profile_home' %}" 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
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    37
            </td>
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    38
        </tr>
299
8e00641076e7 remove renkan management to an other django app (see renkan hg repo)
cavaliet
parents: 298
diff changeset
    39
       {% endwith %}
294
6c12ccf29a95 loop on profile's renkans
cavaliet
parents: 293
diff changeset
    40
      {% endfor %}
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    41
    </table>
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    42
    <p>Gestion du mot de passe : <a href="{% url 'auth_password_change' %}">modification</a></p>
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    43
{% endblock %}