Rev 1347 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1347 | Rev 1348 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | <%@ page import="pt.estgp.estgweb.domain.views.UserView" %> |
|
- | 2 | <%@ page import="pt.estgp.estgweb.web.form.CertificadoForm" %> |
|
1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
3 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
4 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
3 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
5 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
4 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
6 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
5 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
7 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
6 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
8 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
7 | 9 | ||
- | 10 | ||
- | 11 | ||
- | 12 | <%--<%=frm.getUsers().size()%>--%> |
|
- | 13 | ||
- | 14 | ||
- | 15 | ||
- | 16 | ||
- | 17 | ||
8 | <html:errors/> |
18 | <html:errors/> |
9 | <html:form styleClass="form-horizontal" action="/admin/criarCertificadoController"> |
19 | <html:form styleClass="form-horizontal" action="/admin/criarCertificadoController"> |
- | 20 | ||
10 | <input type="hidden" name="dispatch" value="criarCertificadoPeloId"/> |
21 | <input type="hidden" name="dispatch" value="criarCertificadoPeloId"/> |
11 | 22 | ||
12 | <div class="form-group"> |
23 | <div class="form-group"> |
13 | <label class="col-sm-2">Id do user</label> |
24 | <label class="col-sm-2">Id do user</label> |
14 | <div class="col-sm-10"> |
25 | <div class="col-sm-10"> |
15 | <html:text styleClass="form-control" property="userId"/> |
26 | <html:text styleId="userID" styleClass="form-control" property="userId"/> |
16 | </div> |
27 | </div> |
17 | </div> |
28 | </div> |
18 | 29 | ||
19 | <div class="form-group"> |
30 | <div class="form-group"> |
20 | <label class="col-sm-2">Pesquisar</label> |
31 | <label class="col-sm-2">Pesquisar</label> |
21 | <div class="col-sm-10"> |
32 | <div class="col-sm-10"> |
22 | <html:text styleClass="form-control" property="textoPesquisar"/> |
33 | <html:text styleClass="form-control" property="textoPesquisar"/> |
23 | </div> |
34 | </div> |
24 | </div> |
35 | </div> |
25 | 36 | ||
26 | 37 | ||
- | 38 | <button type="button" onclick="set(form,'searchUsers');form.submit()">Pesquisar</button> |
|
- | 39 | ||
27 | <html:submit/> |
40 | <html:submit/> |
28 | 41 | ||
29 | 42 | ||
- | 43 | <logic:present name="CertificadoForm" property="users"> |
|
- | 44 | <ul> |
|
- | 45 | <logic:iterate id="user" name="CertificadoForm" property="users" type="pt.estgp.estgweb.domain.views.UserView"> |
|
- | 46 | <li> |
|
- | 47 | <a href="javascript:$('#userID').attr('value','${user.id}')"> |
|
- | 48 | ${user.name} ${user.safeEmail} |
|
- | 49 | </a> |
|
- | 50 | ||
- | 51 | </li> |
|
- | 52 | </logic:iterate> |
|
- | 53 | </ul> |
|
- | 54 | </logic:present> |
|
- | 55 | ||
30 | 56 | ||
31 | </html:form> |
57 | </html:form> |
32 | 58 |