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

<ion-view view-title="New Event">
<ion-content>
<div class="list">
<label class="item item-input">
<input type="text" ng-model="event.title" placeholder="Title">
</label>
<label class="item item-input">
<textarea ng-model="event.description" placeholder="Description"></textarea>
</label>
<label class="item-input">
<span class="input-label">{{'Date' | translate}}</span>
<input ng-model="event.date" type="date" placeholder="">
</label>
<label class="item-input">
<span class="input-label">{{'Hour' | translate}}</span>
<input ng-model="event.date" type="time" placeholder="">
</label>
<!--<label class="item item-input item-select">
<div class="input-label">
Categories
</div>
<select>
<option>Xerrada</option>
<option>Esport</option>
<option>Debat</option>
<option>Taller</option>
</select>
</label>-->
<label class="item item-input">
<input type="text" ng-model="event.location.direction" placeholder="Direction">
</label>
<div ng-click="getGeo()" class="button button-small c_indigo400 item-note"
ng-show="event.location.direction">
Get geolocation
</div>
</div>
<leaflet ng-show="markers[0]"
width="100%" height="40%" markers="markers" center="center"
tiles="tiles" id="map-simple-map"></leaflet>
<div class="item">
<div ng-click="postEvent()" class="button c_indigo400 item-note" ng-show="event.location.geo.lat">
Post new event!
</div>
</div>
</div>
</ion-content>
</ion-view>