Commit f3724dd7 authored by unknown's avatar unknown
Browse files

alteração na view

parent 7ca5e2dd
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
@elseif($hoje > $evento->fimSubmissao) @elseif($hoje > $evento->fimSubmissao)
<a href="{{ route('evento.visualizarNaoLogado', ['id'=>$evento->id]) }}" style="text-decoration: none" class="encerrado"> <a href="{{ route('evento.visualizarNaoLogado', ['id'=>$evento->id]) }}" style="text-decoration: none" class="encerrado">
@else @else
<a href="{{ route('evento.visualizar',['id'=> $evento->id]) }}" style="text-decoration: none" class="vaiAbrir"> <a href="{{ route('evento.visualizarNaoLogado',['id'=> $evento->id]) }}" style="text-decoration: none" class="vaiAbrir">
@endif @endif
@endif @endif
<div class="card" style="width: 18rem; border-radius:12px; border-width:0px; margin:10px"> <div class="card" style="width: 18rem; border-radius:12px; border-width:0px; margin:10px">
...@@ -232,6 +232,11 @@ ...@@ -232,6 +232,11 @@
vaiAbrir[l].style.display = "none"; vaiAbrir[l].style.display = "none";
} }
}else if(select.value == "abrira"){ }else if(select.value == "abrira"){
for(let l = 0; l < vaiAbrir.length; l++ ){
vaiAbrir[l].style.display = "";
}
for(let i = 0; i < abertos.length; i++){ for(let i = 0; i < abertos.length; i++){
abertos[i].style.display = "none"; abertos[i].style.display = "none";
} }
...@@ -240,10 +245,12 @@ ...@@ -240,10 +245,12 @@
encerrados[j].style.display = "none"; encerrados[j].style.display = "none";
} }
for(let l = 0; l < vaiAbrir.length; l++ ){
vaiAbrir[l].style.display = "";
}
}else { }else {
for(let j = 0; j < encerrados.length; j++ ){
encerrados[j].style.display = "";
}
for(let i = 0; i < abertos.length; i++){ for(let i = 0; i < abertos.length; i++){
abertos[i].style.display = "none"; abertos[i].style.display = "none";
} }
...@@ -252,9 +259,6 @@ ...@@ -252,9 +259,6 @@
vaiAbrir[l].style.display = "none"; vaiAbrir[l].style.display = "none";
} }
for(let j = 0; j < encerrados.length; j++ ){
encerrados[j].style.display = "";
}
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment