src/hdalab/templates/profile_home.html
author rougeronj
Mon, 09 Mar 2015 13:07:57 +0100
changeset 512 fca12c75514c
parent 473 f469ab22542d
child 523 4d641dc5e7e6
permissions -rw-r--r--
add info caption on facette page
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 %}
329
ea6268cf8c83 renkan state management for staff members : publish, unpublish, reject.
cavaliet
parents: 302
diff changeset
     5
{% load hdalab_tags %}
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
     6
403
7bf61c597cb0 Add link to Editorialisation in profile page
rougeronj
parents: 400
diff changeset
     7
{% block title %}{{block.super}} > {% trans 'Profil utilisateur' %} : {{ user.username }}{% endblock %}
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
     8
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
     9
{% block css_import %}
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    10
{{block.super}}
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    11
    <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/index.css' %}" />
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    12
    <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
    13
    <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/profile.css' %}" />
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    14
{% endblock %}
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    15
301
3ec8fb1afed8 correct copy and delete renkan
cavaliet
parents: 300
diff changeset
    16
{% block profile_actif %}actif{% endblock %}
3ec8fb1afed8 correct copy and delete renkan
cavaliet
parents: 300
diff changeset
    17
344
1473ba25af1f advanced search in all renkan lists, language update and debug
cavaliet
parents: 343
diff changeset
    18
{% block js_import %}
1473ba25af1f advanced search in all renkan lists, language update and debug
cavaliet
parents: 343
diff changeset
    19
{{block.super}}
1473ba25af1f advanced search in all renkan lists, language update and debug
cavaliet
parents: 343
diff changeset
    20
<script src="{% static 'hdalab/lib/jquery-ui-1.10.4.min.js' %}"></script>
473
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    21
<script src="{% static 'hdalab/js/renkan-search.js' %}"></script>
344
1473ba25af1f advanced search in all renkan lists, language update and debug
cavaliet
parents: 343
diff changeset
    22
<script type="text/javascript">
473
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    23
    var favorite = {{favorite}};
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    24
    initSearch(favorite);
344
1473ba25af1f advanced search in all renkan lists, language update and debug
cavaliet
parents: 343
diff changeset
    25
</script>
1473ba25af1f advanced search in all renkan lists, language update and debug
cavaliet
parents: 343
diff changeset
    26
{% endblock %}
1473ba25af1f advanced search in all renkan lists, language update and debug
cavaliet
parents: 343
diff changeset
    27
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
    28
{% block main_content %}
396
064f4cdc48c3 Set up css convention for the main titles of the pages and add translation support in main pages
rougeronj
parents: 344
diff changeset
    29
    <div class="all-title">
458
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    30
        <h1>{% trans 'Mon profil' %}</h1>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    31
       </div>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    32
       {% if user.is_staff %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    33
       <div class="sub-content">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    34
        <h2>/ {% trans 'Adminsitration du Site' %}</h2>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    35
          <p>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    36
              <a href="{% url 'manage_renkans' %}" >{% trans 'Administrer les Renkan' %}</a>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    37
              / <a href="{% url 'edito_home' %}" >{% trans 'Editorialisation' %}</a>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    38
              / <a href="{% url 'admin:index' %}" >{% trans 'Administration Hdalab' %}</a>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    39
              / <a href="{% url 'hdabo_home' %}" >{% trans 'Administrer Hdabo' %}</a>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    40
          </p>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    41
       </div>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    42
       {% endif %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    43
       <div class="sub-content">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    44
        <h2>/ {% trans 'Modifier mon profil' %}</h2>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    45
        <p>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    46
            <a href="{% url 'auth_password_change' %}">Modification du mot de passe</a>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    47
        </p>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    48
       </div>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    49
    <div class="sub-content">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    50
        <h2>/ {% trans 'Gerer mes Renkan' %}</h2>
473
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    51
        <form action="{% url 'renkan_new' %}" method="post">
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    52
            {% csrf_token %}
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    53
            <button id="new-renkan-button" title="{% trans 'Nouveau Renkan' %}" class="renkan-basic-action"><div id="new-renkan">{% trans 'Nouveau Renkan' %}</div></button>
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    54
        </form>
458
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    55
        <p class="inline">{% if page.has_previous %}<a href="?page={{ page.previous_page_number }}&sort={{ sort_param }}&order={{ order_param }}{{ filters }}" >{% trans 'Previous' %}</a>{% endif %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    56
           {% if page.has_previous and page.has_next %} - {% endif %}{% if page.has_next %}<a href="?page={{ page.next_page_number }}&sort={{ sort_param }}&order={{ order_param }}{{ filters }}">{% trans 'Next' %}</a>{% endif %}</p>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    57
        <form class="inline"><p>{% if page.has_previous or page.has_next %} - {% endif %}{% trans 'Filter' %} : <input type="text" name="title" value="{{ title }}"/> - <span class="hand_cursor" id="toggle-search">{% trans 'Advanced search' %}</span></p></p></form>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    58
        <form id="advanced-form" style="display: {% if startdate != '' or enddate != '' or username != '' or state != '' %}block{% else %}none{% endif %};">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    59
          <p>{% trans 'Title' %} : <input type="text" name="title" value="{{ title }}"/></p>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    60
          <p>{% trans 'Modification date' %} : {% trans 'begin' %} <input type="text" name="startdate" value="{{ startdate }}" class="date" /> -
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    61
                                               {% trans 'end' %} : <input type="text" name="enddate" value="{{ enddate }}" class="date" /></p>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    62
          <p>{% trans 'State' %} : 
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    63
            <select name="state">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    64
                <option value=""></option>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    65
                <option value="1"{% if state == '1' %} selected="selected"{% endif %}>{% trans 'Edition' %}</option>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    66
                <option value="2"{% if state == '2' %} selected="selected"{% endif %}>{% trans 'Moderated' %}</option>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    67
                <option value="3"{% if state == '3' %} selected="selected"{% endif %}>{% trans 'Published' %}</option>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    68
                <option value="4"{% if state == '4' %} selected="selected"{% endif %}>{% trans 'Rejected' %}</option>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    69
            </select>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    70
          </p>
473
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    71
          <p>{% trans 'Favorite' %} : <input type="checkbox" id="filter-favorite-chkbx" {% if favorite >= 1 %} checked="checked" {% endif %} value="{{favorite}}" /><input type="hidden" id="filter-favorite" name="favorite" value="{{favorite}}"/></p>
458
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    72
          <p><input type="submit" value="{% trans 'Search' %}"/></p>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    73
        </form>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    74
        <table id="rk-table">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    75
          <thead>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    76
            <tr class="border_bottom">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    77
              <th><a href="?sort=title&order={% if sort_param == 'title' %}{{ opposite }}{% else %}asc{% endif %}{{ filters }}">{% trans 'Title' %}</a>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    78
                  {% if sort_param == 'title' %}<span class="ui-icon {% if opposite == 'asc' %}ui-icon-triangle-1-s{% else %}ui-icon-triangle-1-n{% endif %}"></span>{% endif %}</th>
473
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    79
              <th><a href="?sort=favorite&order={% if sort_param == 'favorite' %}{{ opposite }}{% else %}desc{% endif %}{{ filters }}">{% trans 'Fav.' %}</a>
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    80
                  {% if sort_param == 'favorite' %}<span class="ui-icon {% if opposite == 'asc' %}ui-icon-triangle-1-s{% else %}ui-icon-triangle-1-n{% endif %}"></span>{% endif %}</th>
458
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    81
              <th><a href="?sort=date&order={% if sort_param == 'date' %}{{ opposite }}{% else %}desc{% endif %}{{ filters }}">{% trans 'Modification date' %}</a>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    82
                  {% if sort_param == 'date' %}<span class="ui-icon {% if opposite == 'asc' %}ui-icon-triangle-1-s{% else %}ui-icon-triangle-1-n{% endif %}"></span>{% endif %}</th>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    83
              <th>{% trans 'Preview' %}</th>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    84
              <th><a href="?sort=state&order={% if sort_param == 'state' %}{{ opposite }}{% else %}asc{% endif %}{{ filters }}">{% trans 'State' %}</a>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    85
                  {% if sort_param == 'state' %}<span class="ui-icon {% if opposite == 'asc' %}ui-icon-triangle-1-s{% else %}ui-icon-triangle-1-n{% endif %}"></span>{% endif %}</th>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    86
              <th>{% trans 'Actions' %}</th>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    87
            </tr>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    88
          </thead>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    89
          <tbody>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    90
          {% for hr in page.object_list %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    91
           {% with hr.renkan as r %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    92
            <tr class="border_bottom">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    93
                <td><a title="View renkan" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}">{{ r.title }}</a></td>
473
f469ab22542d add favorite management
ymh <ymh.work@gmail.com>
parents: 458
diff changeset
    94
                <td>{% if hr.favorite %}{% else %}&nbsp;{% endif %}</td>
458
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    95
                <td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    96
                <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    97
                <td>{{ hr.state|state_to_str }}</td>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    98
                <td>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
    99
                    {% if hr.state == 1 %}<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>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   100
                    {% else %}<span class="ui-icon ui-icon-blank renkan-basic-action"></span>{% endif %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   101
                    <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>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   102
                    <form action="{% url 'renkan_copy' rk_id=r.rk_id %}" method="post">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   103
                        {% csrf_token %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   104
                        <input type="hidden" name="next" value="{% url 'profile_home' %}" />
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   105
                        <button title="Copy renkan" 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></button>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   106
                    </form>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   107
                    <form action="{% url 'renkan_delete' rk_id=r.rk_id %}" method="post">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   108
                        {% csrf_token %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   109
                        <input type="hidden" name="next" value="{% url 'profile_home' %}" />
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   110
                        <button title="{% trans 'remove renkan' %}" 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></button>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   111
                        </form>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   112
                    <form action="{% url 'renkan_moderate' rk_id=r.rk_id %}" method="post">
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   113
                        {% csrf_token %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   114
                        <input type="hidden" name="next" value="{% url 'profile_home' %}" />
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   115
                        {% if hr.state == 1 %}<button name="state" value="2" title="{% trans 'publish renkan' %}" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to ask to publish this renkan ?" %}');" ><span class="ui-icon ui-icon-unlocked"></span></button>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   116
                        {% else %}<button name="state" title="{% trans 'unpublish renkan' %}" value="1" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to unpublish this renkan ?" %}');" ><span class="ui-icon ui-icon-locked"></span></button>{% endif %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   117
                    </form>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   118
                </td>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   119
            </tr>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   120
           {% endwith %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   121
          {% endfor %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   122
          </tbody>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   123
        </table>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   124
        <p>{% if page.has_previous %}<a href="?page={{ page.previous_page_number }}&sort={{ sort_param }}&order={{ order_param }}{{ filters }}" >{% trans 'Previous' %}</a>{% endif %}
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   125
           {% if page.has_previous and page.has_next %} - {% endif %}{% if page.has_next %}<a href="?page={{ page.next_page_number }}&sort={{ sort_param }}&order={{ order_param }}{{ filters }}">{% trans 'Next' %}</a>{% endif %}</p>
604b887e70c3 add state history to renkan, correct get into post, generally prepare ground for mail management
ymh <ymh.work@gmail.com>
parents: 405
diff changeset
   126
    </div>
293
b33caeba7faa profile page first step
cavaliet
parents:
diff changeset
   127
{% endblock %}