eventman/angular_app/import-persons.html

32 lines
1.5 KiB
HTML
Raw Normal View History

2015-04-05 22:16:11 +02:00
<!-- import persons -->
2015-03-29 00:46:42 +01:00
<div class="container">
2015-04-05 20:12:54 +02:00
<h1>{{'Import persons' | translate}}</h1>
<div class="panel panel-primary">
2015-03-29 00:46:42 +01:00
<div class="panel-heading">
2015-04-05 20:12:54 +02:00
<div class="panel-title">{{'Import persons from eventbrite CSV' | translate}}</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">
2015-03-29 00:46:42 +01:00
<p class="help-block">{{'CSV exported from eventbrite' | translate}}</p>
</div>
2015-03-29 15:50:36 +02:00
<div class="form-group">
<label for="forEvent">{{'Associate users to this event' | translate}}</label>
<select class="form-control" id="forEvent" ng-model="targetEvent">
<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">
2015-03-30 21:31:09 +02:00
Result: total: <span>{{reply.total}}</span> valid: <span>{{reply.valid}}</span> merged: <span>{{reply.merged}}</span> new: <span>{{reply.valid - reply.merged}}</span>
2015-03-29 15:50:36 +02:00
</div>
2015-03-29 00:46:42 +01:00
</form>
</div>
</div>
</div>