Allow users to navigate folders when copying

We already have a pattern for navigation folders and searching for
templates – let’s use it for the copy page too. And I reckon we can
represent services as folders if the user has multiple services they
could copy a template from.
This commit is contained in:
Chris Hill-Scott
2019-01-07 14:49:33 +00:00
parent 0b22fff751
commit 206a7806d4
10 changed files with 545 additions and 81 deletions

View File

@@ -28,9 +28,9 @@ def _folder(name, folder_id=None, parent=None):
}
def _template(template_type, name, parent=None):
def _template(template_type, name, parent=None, template_id=None):
return {
'id': str(uuid.uuid4()),
'id': template_id or str(uuid.uuid4()),
'name': name,
'template_type': template_type,
'folder': parent,