Skip to content

Commit

Permalink
Alterações na JSP e COMMAND
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavopedro20 committed May 3, 2019
1 parent e3bf74e commit edd765f
Show file tree
Hide file tree
Showing 59 changed files with 3,171 additions and 1,345 deletions.
89 changes: 44 additions & 45 deletions ProjetoPI/WebContent/AlterarGrupo.jsp
Original file line number Diff line number Diff line change
@@ -1,52 +1,51 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html lang="pt-br">
<!DOCTYPE html>
<html lang="pt-br">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Alterar Grupo</title>
<head>
<c:import url="common/meta-link.jsp" />
<title>USJT - Alterar Grupo</title>
</head>

<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>

<body>
<!-- Barra superior com os menus de navegação -->
<c:import url="Menu.jsp"/>
<!-- Container Principal -->
<div id="main" class="container">
<h3 class="page-header">Alterar Grupo #${grupo.id }</h3>
<!-- Formulario para alteração de clientes -->
<form action="controller.do" method="post">
<!-- area de campos do form -->
<input type="hidden" name="id" value="${grupo.id }" />
<div class="row">
<div class="form-group col-md-12">
<label for="nome">Nome</label>
<input type="text" class="form-control" name="nome" id="nome" required maxlength="100" placeholder="nome" value="${grupo.nome }">
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label for="nome">Numero</label>
<input type="text" class="form-control" name="numero" id="numero" required maxlength="100" placeholder="numero" value="${grupo.num }">
</div>
</div>
<hr />
<div id="actions" class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-primary" name="command" value="AlterarGrupo">Salvar</button>
<a href="ListarGrupos.jsp" class="btn btn-default">Cancelar</a>
</div>
</div>
</form>
<body class="background-image">
<!-- Barra superior com os menus de navegação -->
<c:import url="common/menu.jsp" />
<!-- Container Principal -->
<div id="main" class="container">
<h3 class="page-header">Alterar Grupo #${grupo.id }</h3>
<!-- Formulario para alteração de clientes -->
<form action="controller.do" method="post" autocomplete="off">
<!-- area de campos do form -->
<input type="hidden" name="id" value="${grupo.id }" />
<div class="row">
<div class="form-group col-md-12">
<label for="nome">Nome</label>
<input type="text" class="form-control" name="nome" id="nome" required maxlength="100"
placeholder="nome" value="${grupo.nome }">
</div>
</div>
<div class="row">
<div class="form-group col-md-12">
<label for="nome">Numero</label>
<input type="text" class="form-control" name="numero" id="numero" required maxlength="100"
placeholder="numero" value="${grupo.num }">
</div>
</div>
<hr />
<div id="actions" class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-primary" name="command" value="AlterarGrupo">Salvar</button>
<a href="ListarGrupos.jsp" class="btn btn-default">Cancelar</a>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</div>
</form>
</div>

<footer>
<c:import url="common/footer.jsp" />
</footer>
</body>

</html>
</html>
38 changes: 25 additions & 13 deletions ProjetoPI/WebContent/CriarGrupo.jsp
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html lang="pt-br">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Criar Grupo</title>

<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<c:import url="common/meta-link.jsp" />
<title>USJT - Criar Grupo</title>
</head>

<body>
<body class="background-image">
<!-- Barra superior com os menus de navegação -->
<c:import url="Menu.jsp"/>
<c:import url="common/menu.jsp"/>
<!-- Container Principal -->
<div id="main" class="container">
<h3 class="page-header">Incluir Grupo</h3>
<!-- Formulario para inclusao de clientes -->
<form action="controller.do" method="post">
<form action="controller.do" method="post" autocomplete="off">
<!-- area de campos do form -->

<div class="row">
<div class="col-sm-3">
<select class="form-control">
<c:forEach var="professor" items="${lista_professor}">

<option value="${professor.id}">${professor.nome}</option>

</c:forEach>
</select>
</div>
</div>
<br />


<div class="row">
<div class="form-group col-md-12">
Expand All @@ -40,13 +50,15 @@
<div id="actions" class="row">
<div class="col-md-12">
<button type="submit" class="btn btn-primary" name="command" value="CriarGrupo">Salvar</button>
<a href="index.jsp" class="btn btn-default">Cancelar</a>
<a href="ListarGrupos.jsp" class="btn btn-default">Cancelar</a>
</div>
</div>
</form>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>

<footer>
<c:import url="common/footer.jsp" />
</footer>
</body>

</html>
Loading

0 comments on commit edd765f

Please sign in to comment.