Adicionando campo de Idade e melhorando analise visual no Garatujas
This commit is contained in:
@@ -4857,6 +4857,7 @@ const initApp = () => {
|
||||
const contentGaratujasHistorico = document.getElementById('contentGaratujasHistorico');
|
||||
|
||||
const garatujasAlunoInput = document.getElementById('garatujasAlunoInput');
|
||||
const garatujasIdadeInput = document.getElementById('garatujasIdadeInput');
|
||||
const garatujaFileInput = document.getElementById('garatujaFileInput');
|
||||
const btnUploadGaratuja = document.getElementById('btnUploadGaratuja');
|
||||
const garatujaFileStatus = document.getElementById('garatujaFileStatus');
|
||||
@@ -4954,6 +4955,7 @@ const initApp = () => {
|
||||
if (btnGenerateGaratuja) {
|
||||
btnGenerateGaratuja.addEventListener('click', async () => {
|
||||
const alunoName = garatujasAlunoInput.value.trim();
|
||||
const alunoIdade = garatujasIdadeInput ? garatujasIdadeInput.value.trim() : '';
|
||||
const file = garatujaFileInput.files[0];
|
||||
|
||||
if (!alunoName) {
|
||||
@@ -4972,6 +4974,7 @@ const initApp = () => {
|
||||
|
||||
const formData = new FormData();
|
||||
formData.append('alunoName', alunoName);
|
||||
if (alunoIdade) formData.append('alunoIdade', alunoIdade);
|
||||
formData.append('image', file);
|
||||
|
||||
let statusMsgIdx = 0;
|
||||
|
||||
Reference in New Issue
Block a user