| .. | .. |
|---|
| 111 | 111 | </ul> |
|---|
| 112 | 112 | <form class="navbar-form navbar-right" role="search"> |
|---|
| 113 | 113 | <div class="form-group"> |
|---|
| 114 | | - <input type="text" class="form-control" placeholder="Search"> |
|---|
| 114 | + <input type="text" class="form-control" placeholder="Search" ng-model="searchText"> |
|---|
| 115 | 115 | </div> |
|---|
| 116 | 116 | <button type="submit" class="btn btn-default"> |
|---|
| 117 | 117 | <span class="glyphicon glyphicon-search"></span> |
|---|
| .. | .. |
|---|
| 122 | 122 | </nav> |
|---|
| 123 | 123 | <div class="panel panel-default animate-show ng-hide" ng-show="showForm"> |
|---|
| 124 | 124 | <form role="form" class="form-horizontal " name="catalogForm" id="catalogForm" ng-submit="saveCatalog()" > |
|---|
| 125 | | - <pre>Form: {{catalogForm | json}}</pre> |
|---|
| 126 | | - <pre>formu: {{formu | json}}</pre> |
|---|
| 125 | +<!-- <pre>formu: {{formu | json}}</pre>--> |
|---|
| 127 | 126 | <div class="form-group" ng-repeat="field in catalogMetadata.fields" ng-if="!isNew || !field.readOnly"> |
|---|
| 128 | 127 | <label class="col-md-3 control-label" for="{{field.name}}">{{field.display}}</label> |
|---|
| 129 | 128 | <div class="col-md-5"> |
|---|
| .. | .. |
|---|
| 152 | 151 | |
|---|
| 153 | 152 | </div> |
|---|
| 154 | 153 | |
|---|
| 155 | | - <div class="panel panel-default"> |
|---|
| 154 | + <div class="panel panel-default" ng-controller="CatalogListCtrl"> |
|---|
| 156 | 155 | <div class="panel-heading"> |
|---|
| 157 | | - Licenses for pack <strong>BP-CICS-002</strong> <span |
|---|
| 158 | | - class="badge pull-right" style="color: #ccffcc;">4</span> <span |
|---|
| 159 | | - class="badge pull-right">15</span> |
|---|
| 156 | + {{catalog.name}} <span class="badge pull-right" ng-bind="list.length || 0"></span> |
|---|
| 160 | 157 | </div> |
|---|
| 161 | 158 | |
|---|
| 162 | 159 | <table class="table table-hover table-condensed"> |
|---|
| 163 | 160 | <thead> |
|---|
| 164 | 161 | <tr> |
|---|
| 165 | | - <th>License</th> |
|---|
| 166 | | - <th>Email</th> |
|---|
| 167 | | - <th>Status</th> |
|---|
| 162 | + <th ng-repeat="field in catalogMetadata.list_fields" ng-bind="display(field)"></th> |
|---|
| 168 | 163 | <th></th> |
|---|
| 169 | 164 | </tr> |
|---|
| 170 | 165 | </thead> |
|---|
| 171 | 166 | <tbody> |
|---|
| 172 | | - |
|---|
| 173 | | - <tr> |
|---|
| 174 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 175 | | - <td>user1@bp.com</td> |
|---|
| 176 | | - <td class="success"><span |
|---|
| 177 | | - class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 167 | + <tr ng-repeat="row in list | filter:searchText"> |
|---|
| 168 | + <td ng-repeat="field in catalogMetadata.list_fields" ng-bind="row[field] "></td> |
|---|
| 169 | + |
|---|
| 178 | 170 | <td><span ng-click="editRow()" |
|---|
| 179 | 171 | class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 180 | | - </tr> |
|---|
| 181 | | - <tr> |
|---|
| 182 | | - <td>BP-CICS-0029HAHAHA UK</td> |
|---|
| 183 | | - <td>user2@bp.com</td> |
|---|
| 184 | | - <td class="success"><span |
|---|
| 185 | | - class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 186 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 187 | | - </tr> |
|---|
| 188 | | - <tr> |
|---|
| 189 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 190 | | - <td>user3@bp.com</td> |
|---|
| 191 | | - <td class="danger"><span |
|---|
| 192 | | - class="glyphicon glyphicon-warning-sign"></span></td> |
|---|
| 193 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 194 | | - </tr> |
|---|
| 195 | | - <tr> |
|---|
| 196 | | - <td>BP-CICS-0128HAHAHA UK</td> |
|---|
| 197 | | - <td>user4@bp.com</td> |
|---|
| 198 | | - <td class="danger"><span |
|---|
| 199 | | - class="glyphicon glyphicon-warning-sign"></span></td> |
|---|
| 200 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 201 | | - </tr> |
|---|
| 202 | | - <tr> |
|---|
| 203 | | - <td>BP-CICS-00qqasddHA UK</td> |
|---|
| 204 | | - <td>user5@bp.com</td> |
|---|
| 205 | | - <td class="success"><span |
|---|
| 206 | | - class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 207 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 208 | | - </tr> |
|---|
| 209 | | - <tr> |
|---|
| 210 | | - <td>BP-CICS-0028HAaaHA UK</td> |
|---|
| 211 | | - <td>user6@bp.com</td> |
|---|
| 212 | | - <td class="warning"><span |
|---|
| 213 | | - class="glyphicon glyphicon-question-sign"></span></td> |
|---|
| 214 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 215 | | - </tr> |
|---|
| 216 | | - <tr> |
|---|
| 217 | | - <td>BP-CICS-0028aaaaHA UK</td> |
|---|
| 218 | | - <td>user7@bp.com</td> |
|---|
| 219 | | - <td class="warning"><span |
|---|
| 220 | | - class="glyphicon glyphicon-question-sign"></span></td> |
|---|
| 221 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 222 | | - </tr> |
|---|
| 223 | | - <tr> |
|---|
| 224 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 225 | | - <td>user8@bp.com</td> |
|---|
| 226 | | - <td class="success"><span |
|---|
| 227 | | - class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 228 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 229 | | - </tr> |
|---|
| 230 | | - <tr> |
|---|
| 231 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 232 | | - <td>user9@bp.com</td> |
|---|
| 233 | | - <td><span class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 234 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 235 | | - </tr> |
|---|
| 236 | | - <tr> |
|---|
| 237 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 238 | | - <td>user0@bp.com</td> |
|---|
| 239 | | - <td><span class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 240 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 241 | | - </tr> |
|---|
| 242 | | - <tr> |
|---|
| 243 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 244 | | - <td>user11@bp.com</td> |
|---|
| 245 | | - <td><span class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 246 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 247 | | - </tr> |
|---|
| 248 | | - <tr> |
|---|
| 249 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 250 | | - <td>user12@bp.com</td> |
|---|
| 251 | | - <td><span class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 252 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 253 | | - </tr> |
|---|
| 254 | | - <tr> |
|---|
| 255 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 256 | | - <td>user13@bp.com</td> |
|---|
| 257 | | - <td><span class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 258 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 259 | | - </tr> |
|---|
| 260 | | - <tr> |
|---|
| 261 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 262 | | - <td>user14@bp.com</td> |
|---|
| 263 | | - <td><span class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 264 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 265 | | - </tr> |
|---|
| 266 | | - <tr> |
|---|
| 267 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 268 | | - <td>user15@bp.com</td> |
|---|
| 269 | | - <td><span class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 270 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 271 | | - </tr> |
|---|
| 272 | | - <tr> |
|---|
| 273 | | - <td>BP-CICS-0028HAHAHA UK</td> |
|---|
| 274 | | - <td>user16@bp.com</td> |
|---|
| 275 | | - <td><span class="glyphicon glyphicon-ok-circle"></span></td> |
|---|
| 276 | | - <td><span class="glyphicon glyphicon-pencil"></span></td> |
|---|
| 277 | 172 | </tr> |
|---|
| 278 | 173 | </tbody> |
|---|
| 279 | 174 | <tfoot> |
|---|
| .. | .. |
|---|
| 293 | 188 | </div> |
|---|
| 294 | 189 | <!-- /container --> |
|---|
| 295 | 190 | <script |
|---|
| 191 | + src="/js/jquery.min.js"></script> |
|---|
| 192 | + <script type="text/javascript" |
|---|
| 193 | + src="/js/bootstrap.min.js"></script> |
|---|
| 194 | + <script type="text/javascript" |
|---|
| 195 | + src="/js/angular.min.js"></script> |
|---|
| 196 | + <script type="text/javascript" |
|---|
| 197 | + src="/js/angular-route.min.js"></script> |
|---|
| 198 | + <script type="text/javascript" |
|---|
| 199 | + src="/js/angular-resource.min.js"></script> |
|---|
| 200 | + <script type="text/javascript" |
|---|
| 201 | + src="/js/angular-animate.min.js"></script> |
|---|
| 202 | + <!-- |
|---|
| 203 | + <script |
|---|
| 296 | 204 | src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> |
|---|
| 297 | | - |
|---|
| 298 | 205 | <script type="text/javascript" |
|---|
| 299 | 206 | src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> |
|---|
| 300 | 207 | <script type="text/javascript" |
|---|
| 301 | | - src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.6/angular.min.js"></script> |
|---|
| 208 | + src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular.min.js"></script> |
|---|
| 302 | 209 | <script type="text/javascript" |
|---|
| 303 | | - src="//code.angularjs.org/1.2.6/angular-route.js"></script> |
|---|
| 210 | + src="//code.angularjs.org/1.2.7/angular-route.js"></script> |
|---|
| 304 | 211 | <script type="text/javascript" |
|---|
| 305 | | - src="//code.angularjs.org/1.2.6/angular-resource.js"></script> |
|---|
| 212 | + src="//code.angularjs.org/1.2.7/angular-resource.js"></script> |
|---|
| 306 | 213 | <script type="text/javascript" |
|---|
| 307 | | - src="//code.angularjs.org/1.2.6/angular-animate.js"></script> |
|---|
| 308 | | - <script type="text/javascript" src="js/admin.js"></script> |
|---|
| 214 | + src="//code.angularjs.org/1.2.7/angular-animate.js"></script> |
|---|
| 215 | + --> |
|---|
| 216 | + <script type="text/javascript" src="js/admin.js"></script> |
|---|
| 309 | 217 | |
|---|
| 310 | 218 | <!-- <script src="js/main.js"></script> --> |
|---|
| 311 | 219 | <script type="text/javascript"> |
|---|