eventman/angular_app/import-persons.html

31 lines
1.5 KiB
HTML
Raw Normal View History

2016-07-10 09:35:55 +02:00
<!-- import tickets -->
2015-03-29 00:46:42 +01:00
<div class="container">
2015-04-05 20:12:54 +02:00
<div class="panel panel-primary">
2015-03-29 00:46:42 +01:00
<div class="panel-heading">
2016-07-10 09:35:55 +02:00
<div class="panel-title"><h1>{{'Import tickets from Eventbrite CSV' | translate}}</h1></div>
2015-03-29 00:46:42 +01:00
</div>
<div class="panel-body">
<form name="ebCSVForm" class="well">
2015-03-29 00:46:42 +01:00
<div class="form-group">
<label for="eb-csv-import">{{'CSV file' | translate}}</label>
2015-03-29 15:05:01 +02:00
<input name="file" ng-file-select ng-model="file" type="file" id="eb-csv-import" ng-required="true">
2016-07-10 09:35:55 +02:00
<p class="help-block">{{'CSV exported from Eventbrite' | translate}}</p>
2015-03-29 00:46:42 +01:00
</div>
2015-03-29 15:50:36 +02:00
<div class="form-group">
2016-07-10 09:35:55 +02:00
<label for="forEvent">{{'Associate tickets to this event' | translate}}</label>
2016-07-07 23:10:52 +02:00
<select class="form-control" id="forEvent" ng-model="targetEvent" ng-required="true">
2015-03-29 15:50:36 +02:00
<option ng-repeat="event in events" value="{{event._id}}">{{event.title}}</option>
</select>
</div>
2015-03-29 00:46:42 +01:00
2015-03-29 15:05:01 +02:00
<input type="submit" value="{{'Import' | translate}}" ng-click="upload(file, '/ebcsvpersons')" />
2015-03-29 15:50:36 +02:00
<div class="form-group top5">
Result: total: <span>{{reply.total}}</span> valid: <span>{{reply.valid}}</span> new: <span>{{reply.new_in_event}}</span>
2015-03-29 15:50:36 +02:00
</div>
2015-03-29 00:46:42 +01:00
</form>
</div>
</div>
</div>