Rev 1618 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1617 | jmachado | 1 | <%@ tag import="jomm.dao.impl.AbstractDao" %> |
2 | <%@tag description="Tag to Call Ajax Request" pageEncoding="UTF-8"%> |
||
3 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
4 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
5 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
6 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
7 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
||
8 | <%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %> |
||
9 | <%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %> |
||
10 | <%@attribute name="msg" type="java.lang.String" required="true" %> |
||
11 | <%@attribute name="targetUrl" type="java.lang.String" required="false" %> |
||
12 | <%@attribute name="targetFunction" type="java.lang.String" required="false" %> |
||
13 | <%@attribute name="label" type="java.lang.String" required="false" %> |
||
14 | <%@attribute name="icon" type="java.lang.String" required="false" %> |
||
15 | <%@attribute name="btnClass" type="java.lang.String" required="false" %> |
||
16 | |||
17 | |||
18 | |||
19 | <logic:notEmpty name="targetUrl"> |
||
20 | <button class="<%=btnClass != null ? btnClass : "btn btn-danger"%>" type="button" data-toggle="modal" data-target="#confirm-ModalGeneric" data-message="${msg}" data-href="<%=request.getContextPath()%>${targetUrl}"> |
||
21 | <logic:empty name="label"> |
||
22 | ${label} |
||
23 | </logic:empty> |
||
24 | <logic:notEmpty name="icon"> |
||
25 | <span class="${icon}"> </span> |
||
26 | </logic:notEmpty> |
||
27 | </button> |
||
28 | </logic:notEmpty> |
||
29 | |||
30 | <logic:notEmpty name="targetFunction"> |
||
31 | <button class="<%=btnClass != null ? btnClass : "btn btn-danger"%>" type="button" data-toggle="modal" data-target="#confirm-ModalFunction" data-message="${msg}" data-script="${targetFunction};$('#confirm-ModalFunction').modal('hide');"> |
||
32 | <logic:empty name="label"> |
||
33 | ${label} |
||
34 | </logic:empty> |
||
35 | <logic:notEmpty name="icon"> |
||
36 | <span class="${icon}"> </span> |
||
37 | </logic:notEmpty> |
||
38 | </button> |
||
39 | </logic:notEmpty> |