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.

47 lines
2.0 KiB

  1. <ion-view view-title="New Event">
  2. <ion-content>
  3. <div class="list">
  4. <label class="item item-input">
  5. <input type="text" ng-model="event.title" placeholder="Title">
  6. </label>
  7. <label class="item item-input">
  8. <textarea ng-model="event.description" placeholder="Description"></textarea>
  9. </label>
  10. <label class="item-input">
  11. <span class="input-label">{{'Date' | translate}}</span>
  12. <input ng-model="event.date" type="date" placeholder="">
  13. </label>
  14. <label class="item-input">
  15. <span class="input-label">{{'Hour' | translate}}</span>
  16. <input ng-model="event.date" type="time" placeholder="">
  17. </label>
  18. <label class="item item-input">
  19. <input type="text" ng-model="event.img" placeholder="img">
  20. </label>
  21. <ion-list>
  22. Categories:
  23. <ion-checkbox ng-model="category.selected" ng-repeat="category in categories"
  24. ng-click="categorySelected()">
  25. {{category.name}}
  26. </ion-checkbox>
  27. </ion-list>
  28. <label class="item item-input">
  29. <input type="text" ng-model="event.location.direction" placeholder="Direction">
  30. </label>
  31. <div ng-click="getGeo()" class="button button-small c_indigo400 item-note"
  32. ng-show="event.location.direction">
  33. Get geolocation
  34. </div>
  35. </div>
  36. <leaflet ng-show="markers[0]"
  37. width="100%" height="40%" markers="markers" center="center"
  38. tiles="tiles" id="map-simple-map"></leaflet>
  39. <div class="item">
  40. <div ng-click="postEvent()" class="button c_indigo400 item-note" ng-show="event.location.geo.lat">
  41. Post new event!
  42. </div>
  43. </div>
  44. </div>
  45. </ion-content>
  46. </ion-view>