Enhancement on Dashboard
[policy/engine.git] / POLICY-SDK-APP / src / main / webapp / app / policyApp / policy-models / policy_DashboardCRUD.html
diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_DashboardCRUD.html b/POLICY-SDK-APP/src/main/webapp/app/policyApp/policy-models/policy_DashboardCRUD.html
new file mode 100644 (file)
index 0000000..cb02a1c
--- /dev/null
@@ -0,0 +1,99 @@
+<!--/*-
+ * ============LICENSE_START=======================================================
+ * ONAP Policy Engine
+ * ================================================================================
+ * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */-->
+<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"/> 
+<div id="page-content" style="margin-bottom: 20px; width: 100%" ng-app ng-controller = "policyDashboardCRUDDataController">
+       <div>
+               <h1 style="text-align: left;font-size: 25px;color: #066090;padding-top: 15px;">Policy Status Info</h1>
+               <div ng-show="showLoader" class="span loader-container">
+                       <i class="icon-spinner" role="img"
+                               aria-label="Please wait while we load your content"></i>
+               </div>
+       </div>
+       <div ng-hide="showLoader">
+               <div class="btn-group" role="group">
+                               <button class="btn btn-secondary" type="button"
+                                       onClick="window.location='policy#/Dashboard';">Logging</button>
+                               <button class="btn btn-secondary" type="button"
+                                       onClick="window.location='policy#/Dashboard_Health';">Health</button>
+                               <button class="btn btn-primary" type="button"
+                                       onClick="window.location='policy#/Dashboard_crud';">CRUD Info</button>  
+               </div>
+       </div>
+       <br>
+       <a id='advancedSearch' href="" ng-click="advancedSearch()" title="" class="ng-binding">Advanced Search<i id='advancedSearchArrow' class="arrowdown"></i></a>
+    <br>
+       <br>
+       <div id="dashBoardAdvanceSearch">
+               <form>
+                       <div class="well">
+       
+                               <div class="row">
+                                       <div class="form-group col-sm-2">
+                                               <input type="text"
+                                                       class="form-control" 
+                                                       ng-model="dashboardAdsearch.scope" required pattern="\S+"
+                                                       title="Enter scope name without any spaces" placeholder="Scope like *" />
+                                       </div>
+                                       <div class="form-group col-sm-2">
+                                               <select 
+                                                       class="form-control" 
+                                                       ng-model="dashboardAdsearch.stage"
+                                                       required pattern="\S+" title="Select the dropdown PAP or PDP.">
+                                                       <option value="both" selected>Select Stage...</option>
+                                                       <option>PAP</option>
+                                                       <option>PDP</option>
+                              </select>
+                                       </div>
+                                       <div class="form-group col-sm-2">
+                                               <select 
+                                                       class="form-control" 
+                                                       ng-model="dashboardAdsearch.isDelected"
+                                                       required pattern="\S+" title="Select the dropdown Yes or No">
+                                                       <option value="both" selected>Is Deleted ?</option>
+                                                       <option>Yes</option>
+                                                       <option>No</option>
+                              </select>
+                                       </div>
+                                       <div class="form-group col-sm-2">
+                                               <input type="text" id="ttlDate_after"
+                                                       class="form-control" name="ttlDate_after" 
+                                                       ng-model="dashboardAdsearch.ttlDate_after" title="Select the date from calender onclick on the field." placeholder="Creation Date After..." />
+                                       </div>
+                                       <div class="form-group col-sm-2">
+                                               <input type="text" id="ttlDate_before"
+                                                       class="form-control" name="ttlDate_before" 
+                                                       ng-model="dashboardAdsearch.ttlDate_before" title="Select the date from calender onclick on the field." placeholder="Creation Date Before..."/>
+                                       </div>
+                                       <div class="form-group col-sm-2">
+                           <button class="" herf="javascript:void(0)" ng-click="startAdvancedSearch(dashboardAdsearch);" title="Search the data entered in the Policy fields."><i class="fa fa-search"></i></button>
+                                       </div>
+       
+                               </div>
+                       </div>
+       
+               </form>
+       </div>
+     <p id=recordsMessage>Policies were retrieved for last 30 days...</p>
+       <h4 style="text-align: left; color: #157bb2"></h4>
+       <div ui-grid="papCRUDStatusDatas" ui-grid-pagination ui-grid-selection
+               ui-grid-resize-columns ui-grid-exporter class="grid" ></div>
+</div>
+       
\ No newline at end of file