commit
ff92f21e02
4 changed files with 12 additions and 3 deletions
|
@ -56,7 +56,7 @@
|
|||
<tr ng-repeat="person in event.persons | splittedFilter:query | orderBy:personsOrderProp">
|
||||
<td>
|
||||
<span><strong><a ui-sref="person.info({id: person.person_id})"><span>{{person.name}}</span> <span>{{person.surname}}</span></a></strong></span><span ng-if="person.email"> <{{person.email}}></span>
|
||||
<p ng-if="person.company"><i>{{person.company}}</i></p>
|
||||
<p ng-if="person.company || person.job"><i ng-if="person.job">{{person.job}}</i><span ng-if="person.company && person.job"> @ </span><i ng-if="person.company">{{person.company}}</i></p>
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-link" name="switch-attended" ng-click="updateAttendee(person, !person.attended)"><span class="glyphicon {{(person.attended) && 'glyphicon-ok-sign text-success' || 'glyphicon-remove-sign text-danger'}}"></span></button>
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
<input name="company" class="form-control" placeholder="{{'Acme Corporation' | translate}}" ng-model="person.company">
|
||||
</div>
|
||||
|
||||
<div class="input-group top5">
|
||||
<span class="input-group-addon">{{'Job' | translate}}</span>
|
||||
<input name="job" class="form-control" placeholder="{{'Evil Ruler' | translate}}" ng-model="person.job">
|
||||
</div>
|
||||
|
||||
<div class="form-group top5">
|
||||
<label for="addToEvent">{{'Add to event:' | translate}}</label>
|
||||
<select class="form-control" id="addToEvent" ng-model="addToEvent">
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<tr ng-repeat="person in persons | splittedFilter:query | orderBy:personsOrderProp">
|
||||
<td>
|
||||
<span><strong><a ui-sref="person.info({id: person._id})"><span>{{person.name}}</span> <span>{{person.surname}}</span></a></strong></span><span ng-if="person.email"> <{{person.email}}></span>
|
||||
<p ng-if="person.company"><i>{{person.company}}</i></p>
|
||||
<p ng-if="person.company || person.job"><i ng-if="person.job">{{person.job}}</i><span ng-if="person.company && person.job"> @ </span><i ng-if="person.company">{{person.company}}</i></p>
|
||||
</td>
|
||||
<td>
|
||||
<button ng-click="remove(person._id)" type="button" class="btn btn-link glyphicon glyphicon-trash"></button>
|
||||
|
|
|
@ -352,9 +352,13 @@ class EbCSVImportPersonsHandler(BaseHandler):
|
|||
'Data check-in': 'checkin_datetime',
|
||||
'Ordine n.': 'order_nr',
|
||||
'ID ordine': 'order_nr',
|
||||
'Titolo professionale': 'job',
|
||||
'Azienda': 'company',
|
||||
'Prefisso': 'name_title',
|
||||
'Prefisso (Sig., Sig.ra, ecc.)': 'name_title',
|
||||
}
|
||||
keepPersonData = ('name', 'surname', 'email', 'name_title')
|
||||
# Only these information are stored in the person collection.
|
||||
keepPersonData = ('name', 'surname', 'email', 'name_title', 'company', 'job')
|
||||
|
||||
@gen.coroutine
|
||||
def post(self, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue