backoffice: open delete category confirmation in a popup (#57993)
This commit is contained in:
parent
aa6e53a12f
commit
16fa5cf0e3
|
@ -145,6 +145,7 @@ def test_categories_delete(pub):
|
|||
FormDef.wipe()
|
||||
app = login(get_app(pub))
|
||||
resp = app.get('/backoffice/forms/categories/1/')
|
||||
assert 'popup.js' in resp.text
|
||||
|
||||
resp = resp.click(href='delete')
|
||||
resp = resp.forms[0].submit('cancel')
|
||||
|
|
|
@ -172,6 +172,7 @@ class CategoryPage(Directory):
|
|||
|
||||
def _q_index(self):
|
||||
html_top('categories', title=self.category.name)
|
||||
get_response().add_javascript(['popup.js'])
|
||||
return template.QommonTemplateResponse(
|
||||
templates=['wcs/backoffice/category.html'],
|
||||
context={'view': self, 'category': self.category},
|
||||
|
|
Loading…
Reference in New Issue