diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2022-12-16 22:08:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2022-12-16 22:08:06 +0000 |
commit | 8ddc7e820e120f1dde4e901d3cb6f1dd3f281e65 (patch) | |
tree | b8251f8703550bbdce86239364749025aafccbb8 /src/workflow/models.py | |
parent | 1773e2b7fc4564e693dfbf29074374379ed86ebb (diff) | |
parent | 4edb8881357e043fd7ea15efeb2d592c9fb55efc (diff) |
Merge "Laas Dashboard Front End Improvements"
Diffstat (limited to 'src/workflow/models.py')
-rw-r--r-- | src/workflow/models.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/workflow/models.py b/src/workflow/models.py index 91a216c..e065202 100644 --- a/src/workflow/models.py +++ b/src/workflow/models.py @@ -326,11 +326,15 @@ class Confirmation_Step(WorkflowStep): def get_context(self): context = super(Confirmation_Step, self).get_context() context['form'] = ConfirmationForm() - context['confirmation_info'] = yaml.dump( - self.repo_get(self.repo.CONFIRMATION), - default_flow_style=False - ).strip() - + # Summary of submitted form data shown on the 'confirm' step of the workflow + confirm_details = "\nPod:\n Name: '{name}'\n Description: '{desc}'\nLab: '{lab}'".format( + name=self.repo_get(self.repo.CONFIRMATION)['resource']['name'], + desc=self.repo_get(self.repo.CONFIRMATION)['resource']['description'], + lab=self.repo_get(self.repo.CONFIRMATION)['template']['lab']) + confirm_details += "\nResources:" + for i, device in enumerate(self.repo_get(self.repo.RESOURCE_TEMPLATE_MODELS)['resources']): + confirm_details += "\n " + str(device) + ": " + str(self.repo_get(self.repo.CONFIRMATION)['template']['resources'][i]['profile']) + context['confirmation_info'] = confirm_details if self.valid == WorkflowStepStatus.VALID: context["confirm_succeeded"] = "true" |