File tree 5 files changed +160
-149
lines changed
common/resources/translations
5 files changed +160
-149
lines changed Original file line number Diff line number Diff line change @@ -111,23 +111,6 @@ $(document).ready(() => {
111
111
112
112
} ) ;
113
113
114
- $ ( '#bo-add-challenge-model-btn' ) . click ( ( e ) => {
115
- alert ( 'Eintragen von Sponsoren ist nach dem Event nicht mehr möglich' ) ;
116
- e . stopImmediatePropagation ( ) ;
117
- } ) ;
118
-
119
-
120
- $ ( '#bo-add-sponsoring-model-btn' ) . click ( ( e ) => {
121
- alert ( 'Eintragen von Challenges ist nach dem Event nicht mehr möglich' ) ;
122
- e . stopImmediatePropagation ( ) ;
123
- } ) ;
124
-
125
- $ ( '#bo-add-offline-sponsoring-model-btn' ) . click ( ( e ) => {
126
- alert ( 'Eintragen von Sponsoren ist nach dem Event nicht mehr möglich' ) ;
127
- e . stopImmediatePropagation ( ) ;
128
- } ) ;
129
-
130
-
131
114
$ ( '#editSponsoringModal' ) . submit ( function ( e ) {
132
115
e . preventDefault ( ) ;
133
116
if ( sanityCheck ( 'editSponsoringModal' ) ) {
Original file line number Diff line number Diff line change @@ -368,7 +368,8 @@ module.exports = {
368
368
"STATUS_WITHDRAWN" : "Zurückgezogen" ,
369
369
"LABEL_EMAIL" : "Emailadresse des Sponsors (optional)" ,
370
370
"ESTIMATED_DONATE_PROMISE" : "Geschätztes Spendenversprechen" ,
371
- "SELECT_TEAM" : "Team auswählen"
371
+ "SELECT_TEAM" : "Team auswählen" ,
372
+ 'NO_NEW_SPONSORINGS' : 'Momentan können keine Sponsorings eingetragen werden.'
372
373
} ,
373
374
"CLOSED" : {
374
375
"HEADLINE" : "Anmeldung geschlossen" ,
Original file line number Diff line number Diff line change @@ -368,7 +368,8 @@ module.exports = {
368
368
"STATUS_WITHDRAWN" : "Withdrawn" ,
369
369
"LABEL_EMAIL" : "Email address of sponsor (optional)" ,
370
370
"ESTIMATED_DONATE_PROMISE" : "Estimated donate promise" ,
371
- "SELECT_TEAM" : "Select team"
371
+ "SELECT_TEAM" : "Select team" ,
372
+ "NO_NEW_SPONSORINGS" : "At the moment it is not possible to add a sponsoring."
372
373
} ,
373
374
"CLOSED" : {
374
375
"HEADLINE" : "Registration closed" ,
Original file line number Diff line number Diff line change @@ -54,23 +54,24 @@ sponsoring.showSponsorings = function*(req, res) {
54
54
let outSponsoring = [ ] ;
55
55
let outChallenges = [ ] ;
56
56
let confirmedDonations = [ ] ;
57
- //INCOMING
57
+ let teams = [ ] ;
58
58
59
+ //INCOMING
59
60
if ( req . user . status . is . team ) {
60
61
incSponsoring = yield sponsoring . getByTeam ( req ) ;
61
62
incChallenges = yield sponsoring . challenge . getByTeam ( req ) ;
62
63
confirmedDonations = yield sponsoring . invoice . getByTeam ( req ) ;
64
+ req . user . me . participant . event = yield api . event . get ( req . user . me . participant . eventId ) ;
63
65
}
64
66
65
67
//OUTGOING
66
68
if ( req . user . status . is . sponsor ) {
67
69
outSponsoring = yield sponsoring . getBySponsor ( req ) ;
68
70
outChallenges = yield sponsoring . challenge . getBySponsor ( req ) ;
71
+ teams = yield sponsoring . getAllTeamsSummary ( req ) ;
72
+ teams = teams . filter ( team => team . eventAllowNewSponsoring ) ;
69
73
}
70
74
71
-
72
- const teams = yield sponsoring . getAllTeamsSummary ( req ) ;
73
-
74
75
res . render ( 'dynamic/sponsoring/sponsoring' , {
75
76
error : req . flash ( 'error' ) ,
76
77
layout : 'master' ,
You can’t perform that action at this time.
0 commit comments