summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/components/projects/project/project.html
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2017-11-22 01:26:45 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-22 01:26:45 +0000
commit7773c55be4b63fc36c1135edf9226cae35f3d2db (patch)
tree316a77a85b65a4031d7c564073b3e748581de710 /testapi/opnfv_testapi/ui/components/projects/project/project.html
parent3af2359063684a0547b023ff98f406fe88a44e85 (diff)
parent30b87f5d9c3fd3a27755e3974435afab2a42d081 (diff)
Merge "move self-developed front-end codes to ui/"
Diffstat (limited to 'testapi/opnfv_testapi/ui/components/projects/project/project.html')
-rw-r--r--testapi/opnfv_testapi/ui/components/projects/project/project.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/ui/components/projects/project/project.html b/testapi/opnfv_testapi/ui/components/projects/project/project.html
new file mode 100644
index 0000000..9d46364
--- /dev/null
+++ b/testapi/opnfv_testapi/ui/components/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