Skip to content

Commit f8ed00a

Browse files
att
1 parent 3751855 commit f8ed00a

15 files changed

Lines changed: 30 additions & 137 deletions

ProjetoPI/WebContent/ListarGrupos.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<c:import url="common/menu.jsp" />
2323
</header>
2424

25-
<div id="main" class="container">
25+
<div id="main" class="container" role="main">
2626
<form action="controller.do" method="post" autocomplete="off">
2727

2828
<div id="top" class="row">

ProjetoPI/WebContent/VisualizarAtividade.jsp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<c:if test="${not empty lista_atividade}">
3131
<div id="list" class="row">
3232
<div class="col align-self-start">
33-
<h4>Lista de todos as Atividades</h4>
34-
<table class="table table-striped">
33+
<h4>Lista de Atividade pendentes</h4>
34+
<table class="table table-hover">
3535
<thead>
3636
<tr>
3737
<!-- <th>Tema</th> -->
@@ -61,10 +61,12 @@
6161
${atividade.dtFim}
6262
</td>
6363
<td class="actions">
64-
<button id="btn${atividade.id}" type="button" entrega="entrega"
65-
class="btn btn-info btn-sm" data-toggle= "modal"
66-
data-target="#entrega-modal" data-atividade="${atividade.id}" >Realizar Entrega</button>
67-
<!-- &atividade=${atividade.formatoEntrega} -->
64+
<c:if test="${not empty sessionScope['alunoLogado']}">
65+
<button id="btn${atividade.id}" type="button" entrega="entrega"
66+
class="btn btn-outline-info btn-sm" data-toggle= "modal"
67+
data-target="#entrega-modal" data-atividade="${atividade.id}" >Realizar Entrega
68+
</button>
69+
</c:if>
6870
</td>
6971
</tr>
7072
</c:forEach>
@@ -74,10 +76,10 @@
7476
</div>
7577
</div>
7678
</c:if>
77-
79+
<hr>
7880
<div id="actions" class="row">
7981
<div class="col-md-12">
80-
<a href="" class="btn btn-secondary">Voltar</a>
82+
<a href="home.jsp" class="btn btn-outline-primary">Voltar</a>
8183
</div>
8284
</div>
8385
</form>

ProjetoPI/WebContent/css/bootstrap.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ProjetoPI/WebContent/logout.jsp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@
1010

1111
<body>
1212
<%
13-
session.removeAttribute("alunoLogado");
14-
session.removeAttribute("profLogado");
15-
session.removeAttribute("admLogado");
16-
session.removeAttribute("userLogado");
13+
session.invalidate();
1714
%>
1815
<c:redirect url="index.jsp" />
1916
</body>

ProjetoPI/WebContent/navbar-teste.jsp

Lines changed: 0 additions & 48 deletions
This file was deleted.

ProjetoPI/WebContent/registrar.jsp

Lines changed: 0 additions & 27 deletions
This file was deleted.

ProjetoPI/WebContent/teste.html

Whitespace-only changes.
-6 Bytes
Binary file not shown.
-14 Bytes
Binary file not shown.

ProjetoPI/src/command/EnviarAtividade.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import javax.servlet.http.HttpServletResponse;
1010
import javax.servlet.http.HttpSession;
1111

12-
import model.Atividade;
1312
import model.Atividade;
1413
import model.Entrega;
1514
import model.Grupo;
@@ -44,13 +43,7 @@ public void executar(HttpServletRequest request, HttpServletResponse response)
4443
entrega.setLinkAtividade(linkEntrega);
4544

4645
EntregaService entregaService = new EntregaService();
47-
entregaService.criar(entrega);
48-
49-
disp = request.getRequestDispatcher("VisualizarAtividade.jsp");
50-
disp.forward(request, response);
51-
52-
53-
46+
entregaService.criar(entrega);
5447

5548
@SuppressWarnings("unchecked")
5649
//ATT A LISTA DE atividade
@@ -74,4 +67,4 @@ public int busca(Atividade atividade, ArrayList<Atividade> listaAtividade) {
7467
return 0;
7568
}
7669

77-
}
70+
}

0 commit comments

Comments
 (0)