src/hdalab/templates/renkan_list.html
changeset 586 32d9c3ff86eb
parent 531 82758bd0ce10
child 607 17f3582ecdb1
equal deleted inserted replaced
585:7d3adb87b8f7 586:32d9c3ff86eb
    24 </script>
    24 </script>
    25 {% endblock %}
    25 {% endblock %}
    26 
    26 
    27 {% block main_content %}
    27 {% block main_content %}
    28 	<div class="all-title">
    28 	<div class="all-title">
    29             <h1>{{ list_title }}</h1>
    29             {% block main_content_title %}<h1>{% trans 'Public Renkans list' %}</h1>&nbsp;<h2><a href="{% url 'renkan_favorite_list' %}">{% trans 'Marked Renkans list' %}</a></h2>{% endblock %}
    30             <div id="new_renkan">
    30             <div id="new_renkan">
    31             	<form action="{% url 'renkan_new' %}" method="post">
    31                 <form action="{% url 'renkan_new' %}" method="post">
    32 		            {% csrf_token %}
    32                     {% csrf_token %}
    33 		            <button id="new-renkan-button" title="{% trans 'Nouveau Renkan' %}" class="renkan-basic-action"><div id="new-renkan">{% trans 'Nouveau Renkan' %}</div></button>
    33                     <button id="new-renkan-button" title="{% trans 'Nouveau Renkan' %}" class="renkan-basic-action"><div id="new-renkan">{% trans 'Nouveau Renkan' %}</div></button>
    34 		        </form>
    34                 </form>
    35             	<p>{% blocktrans %}Construisez votre carte de connaissances à partir des ressources Histoires des arts et Wikipedia.{% endblocktrans %}</p>
    35                 <p>{% blocktrans %}Construisez votre carte de connaissances à partir des ressources Histoires des arts et Wikipedia.{% endblocktrans %}</p>
    36             </div>
    36             </div>
    37 	</div>
    37     </div>
    38     
    38     
    39     <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 %}
    39     <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 %}
    40        {% 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>
    40        {% 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>
    41     <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>
    41     <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>
    42     <form id="advanced-form" style="display: {% if startdate != '' or enddate != '' or username != '' or state != '' %}block{% else %}none{% endif %};">
    42     <form id="advanced-form" style="display: {% if startdate != '' or enddate != '' or username != '' or state != '' %}block{% else %}none{% endif %};">
    73             <td>{% if hr.favorite %}✓{% else %}&nbsp;{% endif %}</td>
    73             <td>{% if hr.favorite %}✓{% else %}&nbsp;{% endif %}</td>
    74             {% endif %}
    74             {% endif %}
    75             <td>{{ r.owner.username }}</td>
    75             <td>{{ r.owner.username }}</td>
    76             <td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
    76             <td>{{ r.modification_date|date:"Y-m-d H:i" }}</td>
    77             <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
    77             <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
    78             <td>
    78             <td class="renkan_list_actions">
    79                 <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>
    79                 <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>
    80                 <form action="{% url 'renkan_copy' rk_id=r.rk_id %}" method="post">
    80                 <form action="{% url 'renkan_copy' rk_id=r.rk_id %}" method="post">
    81                     {% csrf_token %}
    81                     {% csrf_token %}
    82                     <input type="hidden" name="next" value="{% url 'profile_home' %}" />
    82                     <input type="hidden" name="next" value="{% url 'profile_home' %}" />
    83                     <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>
    83                     <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>