45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
|
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
|
||
|
pageEncoding="ISO-8859-1"%>
|
||
|
<%@ page import="model.entity.*"%>
|
||
|
<%@ page import="java.util.List"%>
|
||
|
<%
|
||
|
List<Role> roles = (List<Role>)request.getAttribute("roles");
|
||
|
List<Resource> resourses = (List<Resource>)request.getAttribute("resources");
|
||
|
Access a = (Access)request.getAttribute("access");
|
||
|
%>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||
|
<title>Insert title here</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<span class="nav"><a href="/access">Back</a></span><p/>
|
||
|
<form name="post" method="post" action="edit">
|
||
|
<input type="hidden" name="id" value="<%= a.getId() %>"/>
|
||
|
<input type="hidden" name="info" value="editar"/>
|
||
|
<select name="rolesl">
|
||
|
<% if (roles.size() > 0) { %>
|
||
|
<% for (int i = 0;i<roles.size();i++) { %>
|
||
|
<% Role r = (Role)roles.get(i); %>
|
||
|
<option value="<%= r.getId() %>"><%= r.getName() %></option>
|
||
|
<% } %>
|
||
|
<% } else { %>
|
||
|
<p/><span class="heading">No hay empleados registrados</span>
|
||
|
<% } %>
|
||
|
</select>
|
||
|
|
||
|
<select name="resourcesl">
|
||
|
<% if (resourses.size() > 0) { %>
|
||
|
<% for (int i = 0;i<resourses.size();i++) { %>
|
||
|
<% Resource res = (Resource)resourses.get(i); %>
|
||
|
<option value="<%= res.getId() %>"><%= res.getName() %></option>
|
||
|
<% } %>
|
||
|
<% } else { %>
|
||
|
<p/><span class="heading">No hay empleados registrados</span>
|
||
|
<% } %>
|
||
|
</select>
|
||
|
<input type="submit" value="Submit">
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|