Révision bf5d84a3
Ajouté par Serghei Mihai (congés, retour 15/05) il y a plus de 7 ans
corbo/templates/corbo/announce_form.html | ||
---|---|---|
4 | 4 |
{% block breadcrumb %} |
5 | 5 |
{{ block.super }} |
6 | 6 |
{% if category %} |
7 |
<a href='{% url "view_category" pk=category.pk %}'>{{ category }}</a>
|
|
7 |
<a href='{% url "view_category" slug=category.slug %}'>{{ category }}</a>
|
|
8 | 8 |
{% endif %} |
9 | 9 |
{% endblock %} |
10 | 10 |
|
... | ... | |
26 | 26 |
{{ form.as_p }} |
27 | 27 |
<div class="buttons"> |
28 | 28 |
<button>{% trans "Save" %}</button> |
29 |
<a class="cancel" href="{% url 'view_category' pk=category.pk %}">{% trans 'Cancel' %}</a>
|
|
29 |
<a class="cancel" href="{% url 'view_category' slug=category.slug %}">{% trans 'Cancel' %}</a>
|
|
30 | 30 |
</div> |
31 | 31 |
<script type="text/javascript"> |
32 | 32 |
$(function() { |
Formats disponibles : Unified diff
use unique category slugs in urls (#13791)