#18 -> Incorporar congresos virtuales e inscripciones en web externa
This commit is contained in:
parent
00492d0ed7
commit
379ebb0bf6
@ -18,9 +18,13 @@ const getStateCode = (event) => {
|
||||
} else {
|
||||
if (currentDate.isBefore(init_availableDate)){
|
||||
return 'future_registrations'
|
||||
} else {
|
||||
} else {
|
||||
if (currentDate.isBetween(init_availableDate, end_availableDate)) {
|
||||
return (event.sold_out == 1) ? 'waitinglist_open' : 'registrations_open';
|
||||
if (event.url_registration) {
|
||||
return 'url_registrations_open';
|
||||
} else {
|
||||
return (event.sold_out == 1) ? 'waitinglist_open' : 'registrations_open';
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (currentDate.isAfter(end_availableDate))
|
||||
@ -51,7 +55,11 @@ const getStateText = (event) => {
|
||||
return 'Inscripciones a partir del ' + init_availableDate.format('D [de] MMMM');
|
||||
} else {
|
||||
if (currentDate.isBetween(init_availableDate, end_availableDate)) {
|
||||
return (event.sold_out == 1) ? 'Inscripciones abiertas a lista de espera' : 'Inscripciones abiertas';
|
||||
if (event.url_registration) {
|
||||
return 'Inscripciones abiertas';
|
||||
} else {
|
||||
return (event.sold_out == 1) ? 'Inscripciones abiertas a lista de espera' : 'Inscripciones abiertas';
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (currentDate.isAfter(end_availableDate))
|
||||
@ -178,7 +186,12 @@ module.exports = function (sequelize, DataTypes) {
|
||||
featured: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
defaultValue: false,
|
||||
},
|
||||
virtual: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
defaultValue: false,
|
||||
}
|
||||
|
||||
}, {
|
||||
tableName: 'events',
|
||||
freezeTableName: true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user