eventman/angular_app/import-persons.html

30 lines
1.4 KiB
HTML
Raw Normal View History

2015-03-29 00:46:42 +01:00
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{'Import from eventbrite CSV'}}</h3>
</div>
<div class="panel-body">
2015-03-29 09:58:52 +02:00
<form name="ebCSVForm" class="well" ng-controller="FileUploadCtrl">
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">
Result: total: <span>{{reply.total}}</span> valid: <span>{{reply.valid}}</span>
</div>
2015-03-29 00:46:42 +01:00
</form>
</div>
</div>
</div>