src/hdalab/templates/profile_home.html
changeset 297 0a742e5a25aa
parent 296 c69dfb9d410e
child 298 8234cb238783
equal deleted inserted replaced
296:c69dfb9d410e 297:0a742e5a25aa
    10     <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/index.css' %}" />
    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' %}" />
    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' %}" />
    12     <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/profile.css' %}" />
    13 {% endblock %}
    13 {% endblock %}
    14 
    14 
       
    15 {% block js_import %}
       
    16 {{block.super}}
       
    17     <script src="{% static 'hdalab/js/profile.js' %}"></script>
       
    18 {% endblock %}
       
    19 
    15 {% block main_content %}
    20 {% block main_content %}
    16     <h2>Votre profil</h2>
    21     <h2>Votre profil</h2>
    17     <p>Vos renkans : </p>
    22     <p>Vos renkans : </p>
    18     <table>
    23     <table>
    19         <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>Actions</th></tr>
    21         <tr class="border_bottom">
    26         <tr class="border_bottom">
    22             <td>{{ r.title }} ({{ r.id }})</td>
    27             <td>{{ r.title }} ({{ r.id }})</td>
    23             <td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
    28             <td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
    24             <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
    29             <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
    25             <td>
    30             <td>
    26                 <a title="Edit renkan" href="#" class="renkan-basic-action"><span class="ui-icon ui-icon-pencil"></span></a>
    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>
    27                 <a title="View renkan" href="#" class="renkan-basic-action"><span class="ui-icon ui-icon-eye"></span></a>
    32                 <a title="View renkan" href="#" class="renkan-basic-action"><span class="ui-icon ui-icon-eye"></span></a>
    28                 <a title="Copy renkan" href="{% url 'renkan_copy' rk_id=r.rk_id %}" class="renkan-basic-action"><span class="ui-icon ui-icon-copy"></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>
    29                 <a title="Remove renkan" href="#" class="renkan-basic-action"><span class="ui-icon ui-icon-trash"></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>
    30             </td>
    35             </td>
    31         </tr>
    36         </tr>
    32       {% endfor %}
    37       {% endfor %}
    33     </table>
    38     </table>
    34     <p>Gestion du mot de passe : <a href="{% url 'auth_password_change' %}">modification</a></p>
    39     <p>Gestion du mot de passe : <a href="{% url 'auth_password_change' %}">modification</a></p>