new function lock

This commit is contained in:
2026-03-02 14:17:43 -06:00
parent 9fea87e62f
commit 1a632f15b9
8 changed files with 125 additions and 95 deletions
+6 -1
View File
@@ -47,7 +47,12 @@ export default function Inscripcion({
const month = day.getMonth();
const today = day.getDate();
const minFecha = new Date(year, month, 1).toISOString().split("T")[0];
let minMount = month
if(!lock){
minMount = month-1
}
const minFecha = new Date(year, minMount, 1).toISOString().split("T")[0];
const maxFecha = new Date(year, month, today).toISOString().split("T")[0];
//restrict this month//
+4 -4
View File
@@ -23,21 +23,21 @@
background-color: #cfcfcf;
}
.buttonLock{
.buttonLock {
padding: 0.8rem;
position: absolute;
right: 100px;
background-color: #d32f2f;
}
.buttonOpenLock{
.buttonOpenLock {
padding: 0.8rem;
position: absolute;
right: 0;
right: 100px;
background-color: #8cd32f;
}
.buttonOpenLock:hover{
.buttonOpenLock:hover {
background-color: #78b32c;
}
+6 -1
View File
@@ -26,7 +26,12 @@ export default function Receipt({ numAcount }: ReceiptsProps) {
const month = day.getMonth();
const today = day.getDate();
const minFecha = new Date(year, month, 1).toISOString().split("T")[0];
let minMount = month
if(!lock){
minMount = month-1
}
const minFecha = new Date(year, minMount, 1).toISOString().split("T")[0];
const maxFecha = new Date(year, month, today).toISOString().split("T")[0];
//restrict this month//