2018-06-17 16:26:01 +00:00
|
|
|
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
|
|
|
|
pageEncoding="ISO-8859-1"%>
|
2018-06-21 16:39:35 +00:00
|
|
|
<%@ page import="model.*"%>
|
2018-06-17 16:26:01 +00:00
|
|
|
<%@ 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");
|
|
|
|
%>
|
2018-06-21 16:39:35 +00:00
|
|
|
<!DOCTYPE html>
|
2018-06-17 16:26:01 +00:00
|
|
|
<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); %>
|
2018-06-21 16:39:35 +00:00
|
|
|
<option value="<%= r.getKey() %>"><%= r.getName() %></option>
|
2018-06-17 16:26:01 +00:00
|
|
|
<% } %>
|
|
|
|
<% } 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); %>
|
2018-06-21 16:39:35 +00:00
|
|
|
<option value="<%= res.getKey() %>"><%= res.getUrl() %></option>
|
2018-06-17 16:26:01 +00:00
|
|
|
<% } %>
|
|
|
|
<% } else { %>
|
|
|
|
<p/><span class="heading">No hay empleados registrados</span>
|
|
|
|
<% } %>
|
|
|
|
</select>
|
|
|
|
<input type="submit" value="Submit">
|
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
</html>
|