Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <ion-view title="Search & Buy">
  2. <ion-content class="padding">
  3. <!--Search input-->
  4. <div class="list" ng-hide="search">
  5. <label class="item item-input">
  6. <i class="icon ion-search placeholder-icon"></i>
  7. <input
  8. type="text"
  9. placeholder="What are you looking for?"
  10. ng-model="itemName">
  11. </label>
  12. <label class="item item-input item-select">
  13. <div class="input-label">Area</div>
  14. <select ng-model="item.selectedArea">
  15. <option selected></option>
  16. <option ng-repeat="area in areas">{{area.name}}</option>
  17. </select>
  18. </label>
  19. <label class="item item-input item-select">
  20. <div class="input-label">Category</div>
  21. <select ng-model="item.selectedCategory">
  22. <option selected></option>
  23. <option ng-repeat="category in categories">{{category.name}}</option>
  24. </select>
  25. </label>
  26. </div>
  27. <!--Find Button-->
  28. <div class="row" style="margin-bottom:20px;">
  29. <div class="col col-33 col-offset-33">
  30. <button
  31. style="width:100%"
  32. class="button button-energized"
  33. ng-click="findItem(itemName, item)"> Find it!
  34. </button>
  35. </div>
  36. </div>
  37. <!--Loading Animation-->
  38. <div class="row" ng-show="load" style="text-align:center;">
  39. <div class="col col-33 col-offset-33">
  40. <li
  41. class="ion-loading-c"
  42. data-pack="default"
  43. data-tags="spinner, waiting, refresh, animation"
  44. data-animation="true">
  45. </li>
  46. </div>
  47. </div>
  48. <!--Offers Output-->
  49. <div>
  50. <ion-list class="list">
  51. <ion-item ng-show="visible"> {{items.length+' Offers' || 'No Offer' }} </ion-item>
  52. <ion-item
  53. class="item item-thumbnail-left complex-item"
  54. ng-repeat="item in items"
  55. ng-click="goToItemView(item.area[0], item.tags[0], item.description, item.name, item.price, item.dt_create, item.photo, item.owner)">
  56. <img ng-src="{{item.photo}}">
  57. <h2>{{item.name}}</h2>
  58. <p>{{item.description}}</p>
  59. <p>
  60. {{item.dt_create | date:'mediumDate'}}
  61. <span
  62. class="badge badge-positive"
  63. style="position:inherit;float:right;">$ {{item.price}}
  64. </span>
  65. </p>
  66. </ion-item>
  67. </ion-list>
  68. </div>
  69. </ion-content>
  70. </ion-view>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement