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.

56 lines
2.4 KiB

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