diff options
author | thuva4 <tharma.thuva@gmail.com> | 2017-11-16 14:51:29 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2017-11-16 16:31:55 +0530 |
commit | 141e16fcbdcacc02ff30d861bf76082b51d4c287 (patch) | |
tree | af8f398f254d9e1ba27b392b9e36957a75af77b9 /testapi/opnfv_testapi/ui/projects/project/project.html | |
parent | 265e10a036b545d9d4e15bebef17e38e4b013af3 (diff) |
Update and Delete functionalities for projects
Implemented the update and delete functions for the
projects and wrote the e2e tests for the both
functions.
Change-Id: I917dd9503f145b0dde61dd9970bd855f9711335e
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/projects/project/project.html')
-rw-r--r-- | testapi/opnfv_testapi/ui/projects/project/project.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/ui/projects/project/project.html b/testapi/opnfv_testapi/ui/projects/project/project.html new file mode 100644 index 0000000..9d46364 --- /dev/null +++ b/testapi/opnfv_testapi/ui/projects/project/project.html @@ -0,0 +1,25 @@ +<div ng-show="ctrl.data" class="projects-table" style="margin-top:24px; margin-left:8px;"> + <table class="table"> + <tbody> + <tr> <td class="col-md-3">Name</td> <td class="col-md-9">{{ctrl.data.name}}</td> </tr> + <tr> <td>Description</td> <td>{{ctrl.data.description}}</td> </tr> + <tr> <td>Creation date</td> <td>{{ctrl.data.creation_date}}</td> </tr> + </tbody> + </table> +</div> + +<div class="row" style="margin-bottom:24px;"></div> +<div class="project-create col-md-3" style="margin-top:10px" ng-class="{ 'hidden': ! ((auth.projectNames.length>0) && + auth.isAuthenticated) }"> + <button type="submit" class="btn btn-primary" ng-click="ctrl.openDeleteModal()">Delete Project</button> + <button type="submit" class="btn btn-primary" ng-click="ctrl.openUpdateModal()">Update Project</button> +</div> +<div ng-show="ctrl.showError" class="alert alert-danger col-md-9" role="alert"> + <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> + <span class="sr-only">Error:</span> + {{ctrl.error}} +</div> +<div ng-show="ctrl.showSuccess" class="alert alert-success col-md-9" role="alert"> + <span class="glyphicon glyphicon-ok" aria-hidden="true"></span> + Update Success +</div>
\ No newline at end of file |