0001-make-edit-delete-links-target-specific-forms-24166.patch
fargo/templates/fargo/table.html | ||
---|---|---|
41 | 41 |
<td class="action-column" rowspan={{ row.record.description|yesno:"2,1" }}> |
42 | 42 |
{% block action-column %} |
43 | 43 |
{% if table.context.include_edit_link or include_edit_link %}<!-- dj11 compatibility --> |
44 |
<a class="icon-edit" rel="popup" href="{% url 'edit' pk=row.record.pk %}"></a> |
|
44 |
<a class="icon-edit" rel="popup" data-selector="#edit-form" href="{% url 'edit' pk=row.record.pk %}"></a>
|
|
45 | 45 |
{% endif %} |
46 | 46 |
{% if row.record.deletable_by_user %} |
47 |
<a class="icon-remove" rel="popup" href="{% url 'delete' pk=row.record.pk %}"></a> |
|
47 |
<a class="icon-remove" rel="popup" data-selector="#delete-form" href="{% url 'delete' pk=row.record.pk %}"></a>
|
|
48 | 48 |
{% endif %} |
49 | 49 |
{% endblock %} |
50 | 50 |
</td> |
fargo/templates/fargo/userdocument_confirm_delete.html | ||
---|---|---|
2 | 2 |
{% load i18n %} |
3 | 3 | |
4 | 4 |
{% block content %} |
5 |
<form method="post"> |
|
5 |
<form method="post" id="delete-form">
|
|
6 | 6 |
{% csrf_token %} |
7 | 7 |
<p> |
8 | 8 |
{% blocktrans %}Are you sure you want to delete "{{ object }}"?{% endblocktrans %} |
fargo/templates/fargo/userdocument_form.html | ||
---|---|---|
6 | 6 |
<h2>{% trans "Edit" %}</h2> |
7 | 7 |
</div> |
8 | 8 | |
9 |
<form action="{% url 'edit' pk=object.pk %}" method="post"> |
|
9 |
<form action="{% url 'edit' pk=object.pk %}" method="post" id="edit-form">
|
|
10 | 10 |
{% csrf_token %} |
11 | 11 |
{{form.as_p}} |
12 | 12 |
<div class="buttons"> |
13 |
- |