ajusta y agrega vista de lista al calendario
This commit is contained in:
parent
5e1422f7ce
commit
0842aaeaf4
@ -55,43 +55,39 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
url: "/api/eventos/premiados",
|
url: "/api/eventos/premiados",
|
||||||
color: "darkred",
|
color: "darkred",
|
||||||
},
|
},
|
||||||
{ url:"/api/eventos/sesiones/",
|
{ url: "/api/eventos/sesiones/", color: "gray" },
|
||||||
color: "gray",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
events: function(info,success,fail){
|
events: function (info, success, fail) {
|
||||||
let comisiones = [];
|
let comisiones = [];
|
||||||
for(let i=0;i<3;i++){
|
for (let i = 0; i < 3; i++) {
|
||||||
comisiones.push({
|
comisiones.push({
|
||||||
title: "Comisión de Género",
|
title: "Comisión de Género",
|
||||||
start: `2021-09-${14 + i}T18:30-0300`,
|
start: `2021-09-${14 + i}T18:30-0300`,
|
||||||
end: `2021-09-${14 + i}T19:30-0300`,
|
end: `2021-09-${14 + i}T19:30-0300`,
|
||||||
speaker: { nombre: "organizadores" },
|
speaker: { nombre: "organizadores" },
|
||||||
description: "Reuniones de Comisión de Género de UMALCA",
|
description: "Reuniones de Comisión de Género de UMALCA",
|
||||||
color: "#812c64",
|
color: "#812c64",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
success(comisiones);
|
success(comisiones);
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
events: function(info,success,fail){
|
events: function (info, success, fail) {
|
||||||
let asamblea = {
|
let asamblea = {
|
||||||
title: "Asamblea UMALCA",
|
title: "Asamblea UMALCA",
|
||||||
start: "2021-09-13T19:00-0300",
|
start: "2021-09-13T19:00-0300",
|
||||||
end: "2019-09-13T20:00-0300",
|
end: "2019-09-13T20:00-0300",
|
||||||
speaker: { nombre: "organizadores" },
|
speaker: { nombre: "organizadores" },
|
||||||
color: "black",
|
color: "black",
|
||||||
}
|
};
|
||||||
success([asamblea])
|
success([asamblea]);
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
headerToolbar: {
|
headerToolbar: {
|
||||||
center: "timeGridAll,timeGridThree,timeGridOne",
|
center: "timeGridAll,timeGridThree,timeGridOne,listView",
|
||||||
},
|
},
|
||||||
eventTimeFormat: {
|
eventTimeFormat: {
|
||||||
hour: "numeric",
|
hour: "numeric",
|
||||||
@ -109,7 +105,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
nowIndicator: true,
|
nowIndicator: true,
|
||||||
now: "2021-09-12",
|
now: "2021-09-12",
|
||||||
slotMinTime: "11:00:00",
|
slotMinTime: "11:00:00",
|
||||||
slotMaxTime: "21:00:00",
|
slotMaxTime: "21:00:00",
|
||||||
slotDuration: "00:15",
|
slotDuration: "00:15",
|
||||||
allDaySlot: false,
|
allDaySlot: false,
|
||||||
slotLabelFormat: {
|
slotLabelFormat: {
|
||||||
@ -135,7 +131,18 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
duration: { days: 1 },
|
duration: { days: 1 },
|
||||||
buttonText: "1 dia",
|
buttonText: "1 dia",
|
||||||
},
|
},
|
||||||
duration: { days: 1 },
|
dayGridD: {
|
||||||
|
type: "dayGridDay",
|
||||||
|
},
|
||||||
|
dayGridW: {
|
||||||
|
type: "dayGridWeek",
|
||||||
|
duration: { days: 2 },
|
||||||
|
},
|
||||||
|
listView:{
|
||||||
|
type:"listWeek",
|
||||||
|
buttonText:"Lista"
|
||||||
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
calendar.render();
|
calendar.render();
|
||||||
@ -152,6 +159,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
start: "2021-09-13",
|
start: "2021-09-13",
|
||||||
end: "2021-09-18",
|
end: "2021-09-18",
|
||||||
});
|
});
|
||||||
|
calendar.changeView("timeGridAll");
|
||||||
break;
|
break;
|
||||||
case "UTC":
|
case "UTC":
|
||||||
calendar.setOption("slotMinTime", "14:00:00");
|
calendar.setOption("slotMinTime", "14:00:00");
|
||||||
@ -161,8 +169,10 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
start: "2021-09-13",
|
start: "2021-09-13",
|
||||||
end: "2021-09-18",
|
end: "2021-09-18",
|
||||||
});
|
});
|
||||||
|
calendar.changeView("timeGridAll");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
calendar.changeView("dayGridW");
|
||||||
let initial = moment("2021-09-13T14:00Z");
|
let initial = moment("2021-09-13T14:00Z");
|
||||||
let final = moment("2021-09-17T23:30Z");
|
let final = moment("2021-09-17T23:30Z");
|
||||||
let offset = initial.utcOffset();
|
let offset = initial.utcOffset();
|
||||||
|
Loading…
Reference in New Issue
Block a user