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.

48 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 item-select">
  19. <div class="input-label">
  20. Categories
  21. </div>
  22. <select>
  23. <option>Xerrada</option>
  24. <option>Esport</option>
  25. <option>Debat</option>
  26. <option>Taller</option>
  27. </select>
  28. </label>-->
  29. <label class="item item-input">
  30. <input type="text" ng-model="event.location.direction" placeholder="Direction">
  31. </label>
  32. <div ng-click="getGeo()" class="button button-small c_indigo400 item-note"
  33. ng-show="event.location.direction">
  34. Get geolocation
  35. </div>
  36. </div>
  37. <leaflet ng-show="markers[0]"
  38. width="100%" height="40%" markers="markers" center="center"
  39. tiles="tiles" id="map-simple-map"></leaflet>
  40. <div class="item">
  41. <div ng-click="postEvent()" class="button c_indigo400 item-note" ng-show="event.location.geo.lat">
  42. Post new event!
  43. </div>
  44. </div>
  45. </div>
  46. </ion-content>
  47. </ion-view>