summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/components/projects/projects.html
diff options
context:
space:
mode:
Diffstat (limited to 'testapi/opnfv_testapi/ui/components/projects/projects.html')
-rw-r--r--testapi/opnfv_testapi/ui/components/projects/projects.html28
1 files changed, 26 insertions, 2 deletions
diff --git a/testapi/opnfv_testapi/ui/components/projects/projects.html b/testapi/opnfv_testapi/ui/components/projects/projects.html
index 55f8683..28c08b1 100644
--- a/testapi/opnfv_testapi/ui/components/projects/projects.html
+++ b/testapi/opnfv_testapi/ui/components/projects/projects.html
@@ -23,12 +23,12 @@
<button type="submit" class="btn btn-primary" ng-click="ctrl.create()">Create</button>
</div>
<div class="col-md-11 col-sm-11 col-xs-11">
- <div ng-show="ctrl.showError" class="alert alert-danger" role="alert">
+ <div ng-show="ctrl.showCreateError" class="alert alert-danger" 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" role="alert">
+ <div ng-show="ctrl.showCreateSuccess" class="alert alert-success" role="alert">
<span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
Create Success
</div>
@@ -37,6 +37,30 @@
</div>
+<div class="project-filters">
+ <h4>Filters</h4>
+ <div class="row">
+ <div class="col-md-3">
+ <label for="cpid">Name</label>
+ <input type="text" class="form-control"
+ ng-model="ctrl.filterName"/>
+ </div>
+ <div class="col-md-1" style="margin-top:24px;">
+ <button type="submit" class="btn btn-primary" ng-click="ctrl.update()">Filter</button>
+ </div>
+ <div class="col-md-1" style="margin-top:24px;">
+ <button type="submit" class="btn btn-primary btn-danger" ng-click="ctrl.clearFilters()">Clear</button>
+ </div>
+ <div class="col-md-7" style="margin-top:10px;">
+ <div ng-show="ctrl.showUpdateError" class="alert alert-danger" role="alert">
+ <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
+ <span class="sr-only">Error:</span>
+ {{ctrl.error}}
+ </div>
+ </div>
+ </div>
+</div>
+
<div ng-show="ctrl.data" class="projects-table" style="margin-top:24px; margin-left:8px;">
<table ng-data="ctrl.data.projects" ng-show="ctrl.data" class="table table-striped table-hover">
<tbody>