You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.5 KiB

  1. <ion-view view-title="{{'Ask_For_Package' | translate}}">
  2. <ion-content>
  3. <div class="padding">
  4. <label class="item item-input">
  5. <span class="input-label">{{'Title' | translate}}</span>
  6. <input type="text" ng-model="newtravel.title">
  7. </label>
  8. <div layout="row">
  9. <label class="item item-input">
  10. <span class="input-label">{{'From' | translate}}</span>
  11. <input type="text" ng-model="newtravel.from.name">
  12. </label>
  13. <label class="item item-input">
  14. <span class="input-label">{{'To' | translate}}</span>
  15. <input type="text" ng-model="newtravel.to.name">
  16. </label>
  17. </div>
  18. </div><!-- end of padding -->
  19. <a ng-click="getGeo()" ng-show="newtravel.from.name && newtravel.to.name"
  20. class="button o_purple300">{{'Get_positions' | translate}}</a>
  21. <leaflet ng-show="markers[0]"
  22. width="100%" height="40%" markers="markers" center="center"
  23. tiles="tiles" id="map-simple-map"></leaflet>
  24. <div class="padding" ng-show="markers[0]">
  25. <!--<label class="item item-input">
  26. <span class="input-label">{{'n_Seats' | translate}}</span>
  27. <input ng-model="newtravel.seats" type="number">
  28. </label>-->
  29. <label class="item-input">
  30. <span class="input-label">{{'Date' | translate}}</span>
  31. <input ng-model="newtravel.date" type="date" placeholder="">
  32. </label>
  33. <label class="item-input">
  34. <span class="input-label">{{'Hour' | translate}}</span>
  35. <input ng-model="newtravel.date" type="time" placeholder="">
  36. </label>
  37. <!--<ion-toggle ng-model="newtravel.package" toggle-class="toggle-calm">
  38. <i class="icon ion-ios-box"></i>
  39. {{'Can_carry_package' | translate}}
  40. </ion-toggle>
  41. <ion-toggle ng-model="newtravel.collectivized" toggle-class="toggle-calm">
  42. {{'Collectivized_car' | translate}}
  43. </ion-toggle>-->
  44. <label class="item item-input">
  45. <span class="input-label">{{'Description' | translate}}</span>
  46. <input type="text" ng-model="newtravel.description">
  47. </label>
  48. <p class="padding">
  49. <a ng-click="createTravel()" class="button o_purple400 o_floatRight">
  50. {{'Ask_for_package' | translate}}
  51. </a>
  52. </p>
  53. </div><!-- end of padding -->
  54. </ion-content>
  55. </ion-view>