1
0
forked from ScoDoc/ScoDoc

Assiduites : lisibilité conflit + UX

This commit is contained in:
iziram 2023-07-26 07:32:32 +02:00
parent 4e5e15092e
commit 70cda5a553
4 changed files with 10 additions and 7 deletions

View File

@ -315,7 +315,7 @@
padding: 20px; padding: 20px;
border: 1px solid #888; border: 1px solid #888;
width: 80%; width: 80%;
height: 40%; height: 320px;
position: relative; position: relative;
border-radius: 10px; border-radius: 10px;

View File

@ -129,6 +129,7 @@
</div> </div>
<div class="action-buttons"> <div class="action-buttons">
<button id="finish" class="btnPrompt">Terminer la résolution</button>
<button id="delete" class="btnPrompt" disabled>Supprimer</button> <button id="delete" class="btnPrompt" disabled>Supprimer</button>
<button id="split" class="btnPrompt" disabled>Séparer</button> <button id="split" class="btnPrompt" disabled>Séparer</button>
<button id="edit" class="btnPrompt" disabled>Modifier l'état</button> <button id="edit" class="btnPrompt" disabled>Modifier l'état</button>
@ -157,6 +158,7 @@
this.deleteBtn.addEventListener('click', () => { this.deleteAssiduiteModal() }); this.deleteBtn.addEventListener('click', () => { this.deleteAssiduiteModal() });
this.editBtn.addEventListener('click', () => { this.editAssiduiteModal() }); this.editBtn.addEventListener('click', () => { this.editAssiduiteModal() });
this.splitBtn.addEventListener('click', () => { this.splitAssiduiteModal() }); this.splitBtn.addEventListener('click', () => { this.splitAssiduiteModal() });
document.querySelector("#myModal #finish").addEventListener('click', () => { this.close() })
document.querySelector('#myModal .close').addEventListener('click', () => { this.close() }) document.querySelector('#myModal .close').addEventListener('click', () => { this.close() })
@ -311,7 +313,7 @@
} }
}; };
openPromptModal("Entrée demandée", fieldSet, success, () => { }, "#37f05f"); openPromptModal("Séparation de l'assiduité sélectionnée", fieldSet, success, () => { }, "#23aa40");
} }
/** /**
@ -355,7 +357,7 @@
}; };
//Affichage du prompt //Affichage du prompt
openPromptModal("Entrée demandée", fieldSet, success, () => { }, "#37f05f"); openPromptModal("Modification de l'état de l'assiduité sélectionnée", fieldSet, success, () => { }, "#23aa40");
} }
/** /**

View File

@ -149,9 +149,10 @@
} }
.btnPrompt:disabled { .btnPrompt:disabled {
opacity: 0.7; color: black;
opacity: 0.8;
background-color: whitesmoke; background-color: whitesmoke;
background-image: repeating-linear-gradient(135deg, transparent, transparent 5px, rgba(81, 81, 81, 0.61) 5px, rgba(81, 81, 81, 0.61) 10px) background-image: repeating-linear-gradient(135deg, transparent, transparent 5px, rgba(81, 81, 81, 0.337) 5px, rgba(81, 81, 81, 0.337) 10px)
} }
</style> </style>

View File

@ -935,6 +935,6 @@ def _get_etuds_dem_def(formsemestre):
json_str += template.replace("£", str(etud[0])).replace("$", etud[1]) json_str += template.replace("£", str(etud[0])).replace("$", etud[1])
if json_str != "{": if json_str != "{":
json_str = json_str[:-1] + "}" json_str = json_str[:-1]
return json_str return json_str + "}"