Skip to content

Commit a5861c8

Browse files
authored
Merge branch 'development' into user-payment-information
2 parents 97984e8 + 93f9157 commit a5861c8

File tree

23 files changed

+138
-51
lines changed

23 files changed

+138
-51
lines changed

app/components/explore/side-bar.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export default Component.extend({
1313
customEndDate : null,
1414
showFilters : false,
1515

16-
hideClearFilters: computed('category', 'sub_category', 'event_type', 'startDate', 'endDate', 'location', 'ticket_type', function() {
17-
return !(this.category || this.sub_category || this.event_type || this.startDate || this.endDate || this.location || this.ticket_type !== null);
16+
hideClearFilters: computed('category', 'sub_category', 'event_type', 'startDate', 'endDate', 'location', 'ticket_type', 'cfs', function() {
17+
return !(this.category || this.sub_category || this.event_type || this.startDate || this.endDate || this.location || this.ticket_type || this.cfs);
1818
}),
1919

2020
showAllCategories: computed('category', 'sub_category', function() {
@@ -61,6 +61,10 @@ export default Component.extend({
6161
this.send('selectDateFilter', 'custom_dates');
6262
},
6363

64+
selectEventCfs(cfs) {
65+
this.set('cfs', cfs === this.cfs ? null : cfs);
66+
},
67+
6468
selectDateFilter(dateType) {
6569
let newStartDate = null;
6670
let newEndDate = null;
@@ -128,7 +132,6 @@ export default Component.extend({
128132
},
129133
clearFilterTypes() {
130134
this.set('event_type', null);
131-
132135
},
133136

134137
clearFilters() {
@@ -140,15 +143,13 @@ export default Component.extend({
140143
sub_category : null,
141144
event_type : null,
142145
location : null,
143-
ticket_type : null
146+
ticket_type : null,
147+
cfs : null
144148
});
145-
146-
147149
},
148150

149151
toggleFilters() {
150152
this.set('showFilters', !this.showFilters);
151-
152153
}
153154
}
154155
});

app/components/forms/orders/order-form.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
compulsoryProtocolValidUrlPattern, validTwitterProfileUrlPattern, validFacebookProfileUrlPattern,
1212
validGithubProfileUrlPattern
1313
} from 'open-event-frontend/utils/validators';
14+
import { genders } from 'open-event-frontend/utils/dictionary/genders';
1415

1516
export default Component.extend(FormMixin, {
1617
router: service(),
@@ -466,6 +467,8 @@ export default Component.extend(FormMixin, {
466467
return orderBy(countries, 'name');
467468
}),
468469

470+
genders: orderBy(genders, 'name'),
471+
469472
actions: {
470473
submit(data) {
471474
this.onValid(() => {
File renamed without changes.

app/controllers/events/list.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
import Controller from '@ember/controller';
22
import { computed, action } from '@ember/object';
3+
import EmberTableControllerMixin from 'open-event-frontend/mixins/ember-table-controller';
4+
5+
export default class extends Controller.extend(EmberTableControllerMixin) {
36

4-
export default class extends Controller {
5-
queryParams = ['page', 'per_page'];
6-
page = 1;
7-
per_page = 10;
8-
search = null;
9-
sort_dir = null;
10-
sort_by = null;
11-
sorts = [];
127
@computed()
138
get columns() {
149
return [
1510
{
1611
name : 'Name',
1712
valuePath : 'name',
13+
width : 150,
1814
isSortable : true,
1915
extraValuePaths : ['startsAt', 'endAt'],
2016
headerComponent : 'tables/headers/sort',
@@ -39,6 +35,7 @@ export default class extends Controller {
3935
{
4036
name : 'Roles',
4137
valuePath : 'roles',
38+
width : 180,
4239
cellComponent : 'ui-table/cell/cell-roles',
4340
isSortable : false
4441
},
@@ -65,6 +62,7 @@ export default class extends Controller {
6562
{
6663
name : 'Public URL',
6764
valuePath : 'url',
65+
width : 250,
6866
cellComponent : 'ui-table/cell/cell-link',
6967
isSortable : false
7068
}

app/controllers/explore.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import Controller from '@ember/controller';
22

33
export default Controller.extend({
4-
queryParams : ['category', 'sub_category', 'event_type', 'start_date', 'end_date', 'location', 'ticket_type'],
4+
queryParams : ['category', 'sub_category', 'event_type', 'start_date', 'end_date', 'location', 'ticket_type', 'cfs'],
55
category : null,
66
sub_category : null,
77
event_type : null,
88
start_date : null,
99
end_date : null,
1010
location : null,
1111
ticket_type : null,
12+
cfs : null,
1213

1314
actions: {
1415
shareEvent(event) {
@@ -37,6 +38,9 @@ export default Controller.extend({
3738
if (filterType === 'ticket_type') {
3839
this.set('ticket_type', null);
3940
}
41+
if (filterType === 'cfs') {
42+
this.set('cfs', null);
43+
}
4044
}
4145
}
4246
});
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
<div class="resize-container">
2-
<table class="ui unstackable table">
3-
{{yield (hash
4-
api=api
5-
head=(component "ember-thead" api=api)
6-
body=(component "ember-tbody" api=api)
7-
foot=(component "ember-tfoot" api=api)
8-
)}}
9-
</table>
10-
</div>
1+
2+
<table class="ui unstackable table">
3+
{{yield (hash
4+
api=api
5+
head=(component "ember-thead" api=api)
6+
body=(component "ember-tbody" api=api)
7+
foot=(component "ember-tfoot" api=api)
8+
)}}
9+
</table>

app/mixins/custom-form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export default Mixin.create(MutableArray, {
286286
this.store.createRecord('custom-form', {
287287
fieldIdentifier : 'gender',
288288
form : 'attendee',
289-
type : 'text',
289+
type : 'select',
290290
isRequired : false,
291291
isIncluded : false,
292292
event : parent
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import Mixin from '@ember/object/mixin';
2+
3+
export default Mixin.create({
4+
queryParams : ['page', 'per_page', 'search', 'sort_dir', 'sort_by'],
5+
page : 1,
6+
per_page : 10,
7+
search : null,
8+
sort_dir : null,
9+
sort_by : null,
10+
sorts : []
11+
});
File renamed without changes.

app/models/admin-sales-fee.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ export default ModelBase.extend({
77
feePercentage : attr('number'),
88
maximumFee : attr('number'),
99
revenue : attr('number'),
10-
ticketCount : attr('number')
10+
ticketCount : attr('number'),
11+
eventDate : attr('moment')
1112
});

0 commit comments

Comments
 (0)