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