applications: add menu entry to delete application (#71967)
This commit is contained in:
parent
1d5794ef2a
commit
727dece839
|
@ -11,6 +11,9 @@
|
|||
<p>
|
||||
{% trans 'Are you sure you want to remove this application?' %}
|
||||
</p>
|
||||
<p>
|
||||
{% trans "Its components won't be removed." %}
|
||||
</p>
|
||||
<div class="buttons">
|
||||
<button class="delete-button">{% trans 'Delete' %}</button>
|
||||
<a class="cancel" href="{% url 'application-manifest' app_slug=view.kwargs.slug %}">{% trans 'Cancel' %}</a>
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
{% endif %}
|
||||
<ul class="extra-actions-menu">
|
||||
<li><a href="{% url 'application-versions' app_slug=app.slug %}">{% trans 'See all versions' %}</a></li>
|
||||
<li><a rel="popup" href="{% url 'application-delete' slug=app.slug %}">{% trans 'Delete' %}</a></li>
|
||||
</ul>
|
||||
</span>
|
||||
{% endblock %}
|
||||
|
|
|
@ -731,7 +731,9 @@ def test_delete_application(app, admin_user, settings):
|
|||
|
||||
assert Application.objects.count() == 2
|
||||
|
||||
resp = app.get('/applications/manifest/app_to_delete/delete/')
|
||||
with HTTMock(mocked_http):
|
||||
resp = app.get('/applications/manifest/app_to_delete/')
|
||||
resp = resp.click(re.compile('^Delete$'))
|
||||
|
||||
resp = resp.forms[0].submit()
|
||||
resp = resp.follow()
|
||||
|
|
Loading…
Reference in New Issue