Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. <script id="templates/cekongkir.html" type="text/ng-template">
  2. <ion-view view-title="" ng-controller="cekongkirController">
  3. <div class="bar bar-subheader">
  4. <h2 class="title">Cek Ongkir</h2>
  5. </div>
  6. <ion-content padding="true">
  7. <br><br>
  8. <div class="row">
  9. <div class="col col-100">
  10. <img class="img_center" src="img/logo.png" style="width:100%;margin:8px 0px;">
  11. </div>
  12. </div>
  13. <div class="row">
  14. <div class="col col-100">
  15. <span class="input-label">Kota Tujuan</span>
  16. </div>
  17. </div>
  18. <div class="row">
  19. <div class="col col-100">
  20. <label class="item item-input item-select">
  21. <div class="input-label">
  22. Provinsi
  23. </div>
  24. <select ng-model="postData.prov" ng-change="getKotaByProvinsi()">
  25. <option value="{{prov_id}}" selected ng-selected="true">{{prov}}</option>
  26. <option ng-repeat="prov in data_provinsi" value="{{prov.province_id}}" ng-value="{{prov.province_id}}">{{prov.province}}</option>
  27. </select>
  28. </label>
  29. </div>
  30. </div>
  31. <div class="row">
  32. <div class="col col-100">
  33. <label class="item item-input item-select">
  34. <div class="input-label">
  35. Kota
  36. </div>
  37. <select ng-model="postData.kota" ng-change="getKecamatanByKota()">
  38. <option value="{{kota_id}}" selected ng-selected="true">{{kota}}</option>
  39. <option ng-show="editProfilKota" ng-repeat="kota in data_kota" value="{{kota.city_id}}">{{kota.city_name}}</option>
  40. </select>
  41. </label>
  42. </div>
  43. </div>
  44. <div class="row">
  45. <div class="col col-100">
  46. <label class="item item-input item-select">
  47. <div class="input-label">
  48. Kecamatan
  49. </div>
  50. <select ng-model="postData.kecamatan">
  51. <option value="{{kecamatan_id}}" selected ng-selected="true">{{kecamatan}}</option>
  52. <option ng-show="editProfilKecamatan" ng-repeat="kecamatan in data_kecamatan" value="{{kecamatan.subdistrict_id}}">{{kecamatan.subdistrict_name}}</option>
  53. </select>
  54. </label>
  55. </div>
  56. </div>
  57. <div class="row">
  58. <div class="col col-100">
  59. <label class="item item-input">
  60. <span class="input-label">Berat</span>
  61. <input type="text" ng-model="postData.berat">
  62. </label>
  63. </div>
  64. </div>
  65. <button class="button button-assertive" ng-click="get_ongkir()">
  66. Cek Ongkir
  67. </button>
  68. </ion-content>
  69. </ion-view>
  70. </script>
  71.  
  72. <!-- Get Ongkir -->
  73. <script id="templates/get_ongkir.html" type="text/ng-template">
  74. <ion-view view-title="" ng-controller="getOngkirController">
  75. <div class="bar bar-subheader">
  76. <h2 class="title">Get Ongkir</h2>
  77. </div>
  78. <ion-content padding="true">
  79. <br><br>
  80. <div class="row">
  81. <div class="col col-100">
  82. <img class="img_center" src="img/logo.png" style="width:100%;margin:8px 0px;">
  83. </div>
  84. </div>
  85. <ion-item ng-repeat="ongkir in get_ongkir">
  86.  
  87. <p>{{ongkir.name}}</p>
  88. <p ng-repeat="cost in ongkir.costs">{{cost.service}} - {{ cost.cost[0].value | currency:"Rp.":0 }}</p>
  89. <!-- currency:"Rp.":0 -->
  90. </ion-item>
  91. </ion-content>
  92. </ion-view>
  93. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement