src/hdalab/templates/profile_home.html
changeset 299 8e00641076e7
parent 298 8234cb238783
child 300 108fd2717177
equal deleted inserted replaced
298:8234cb238783 299:8e00641076e7
    19 
    19 
    20 {% block main_content %}
    20 {% block main_content %}
    21     <h2>Votre profil</h2>
    21     <h2>Votre profil</h2>
    22     <p>Vos renkans : </p>
    22     <p>Vos renkans : </p>
    23     <table>
    23     <table>
    24         <tr class="border_bottom"><th>Nom</th><th>Date de modification</th><th>Preview</th><th>Actions</th></tr>
    24         <tr class="border_bottom"><th>Nom</th><th>Date de modification</th><th>Preview</th><th>Statut</th><th>Actions</th></tr>
    25       {% for r in renkan_list %}
    25       {% for hr in renkan_list %}
       
    26        {% with hr.renkan as r %}
    26         <tr class="border_bottom">
    27         <tr class="border_bottom">
    27             <td>{{ r.title }} ({{ r.id }})</td>
    28             <td>{{ r.title }} ({{ r.id }})</td>
    28             <td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
    29             <td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
    29             <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
    30             <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
       
    31             <td>{{ hr.state }}</td>
    30             <td>
    32             <td>
    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>
    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>
    32                 <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>
    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>
    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>
    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>
    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>
    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>
    35             </td>
    37             </td>
    36         </tr>
    38         </tr>
       
    39        {% endwith %}
    37       {% endfor %}
    40       {% endfor %}
    38     </table>
    41     </table>
    39     <p>Gestion du mot de passe : <a href="{% url 'auth_password_change' %}">modification</a></p>
    42     <p>Gestion du mot de passe : <a href="{% url 'auth_password_change' %}">modification</a></p>
    40 {% endblock %}
    43 {% endblock %}