Subversion Repositories bacoAlunos

Rev

Rev 1347 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1348 jmachado 1
<%@ page import="pt.estgp.estgweb.domain.views.UserView" %>
2
<%@ page import="pt.estgp.estgweb.web.form.CertificadoForm" %>
1344 jmachado 3
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
4
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld"  prefix="html" %>
5
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld"  prefix="nested" %>
6
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld"  prefix="logic" %>
7
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld"  prefix="bean" %>
8
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld"  prefix="tiles" %>
1345 jmachado 9
 
1348 jmachado 10
 
11
 
12
<%--<%=frm.getUsers().size()%>--%>
13
 
14
 
15
 
16
 
17
 
1345 jmachado 18
<html:errors/>
1347 jmachado 19
<html:form styleClass="form-horizontal" action="/admin/criarCertificadoController">
1348 jmachado 20
 
1345 jmachado 21
    <input type="hidden" name="dispatch" value="criarCertificadoPeloId"/>
1347 jmachado 22
 
1345 jmachado 23
    <div class="form-group">
1347 jmachado 24
        <label class="col-sm-2">Id do user</label>
1345 jmachado 25
        <div class="col-sm-10">
1348 jmachado 26
            <html:text styleId="userID" styleClass="form-control" property="userId"/>
1345 jmachado 27
        </div>
28
    </div>
29
 
1347 jmachado 30
    <div class="form-group">
31
        <label class="col-sm-2">Pesquisar</label>
32
        <div class="col-sm-10">
1348 jmachado 33
            <html:text styleClass="form-control"  property="textoPesquisar"/>
1347 jmachado 34
        </div>
35
    </div>
36
 
37
 
1348 jmachado 38
    <button type="button" onclick="set(form,'searchUsers');form.submit()">Pesquisar</button>
39
 
1345 jmachado 40
    <html:submit/>
41
 
1348 jmachado 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
 
1345 jmachado 56
 
57
</html:form>