search.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <form ng-submit="search()">
  2. <div class="row">
  3. <div class="col-md-10">
  4. <input class="form-control filterinput" type="text" placeholder="Search Apps" value="" ng-model="data.searchTerm">
  5. <input class="countryCheck ng-pristine ng-valid ng-empty ng-touched" type="checkbox" placeholder="" value="" ng-model="data.countryCheck"> Include Apps From Germany
  6. </div>
  7. <div class="col-md-2">
  8. <button class="btn btn-primary" type="submit" ng-click="search()">Search</button>
  9. </div>
  10. </div>
  11. </form>
  12. <table class="table" ng-show="searchResults.length">
  13. <caption>Search Result</caption>
  14. <thead>
  15. <tr>
  16. <th>#</th>
  17. <th>App ID</th>
  18. <th>Score</th>
  19. <th>Title</th>
  20. <th>Already Downloaded</th>
  21. <th></th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <tr ng-repeat="app in searchResults">
  26. <th scope="row">{{$index+1}}</th>
  27. <td>{{app.appId}}</td>
  28. <td>{{app.score}}</td>
  29. <td>{{app.title}}</td>
  30. <td>
  31. <a ng-if="app.isAlreadyDownloaded" href="#!/download/{{app.appId}}">Download Info</a>
  32. <a ng-if="!app.isAlreadyDownloaded" href="#!/download/{{app.appId}}">Download</a>
  33. </td>
  34. </tr>
  35. </tbody>
  36. </table>