Rev 1618 | Details | Compare with Previous | 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" %> |
||
1618 | jmachado | 16 | <%@attribute name="ng_click" type="java.lang.String" required="false" %> |
1617 | jmachado | 17 | |
18 | |||
19 | |||
20 | <logic:notEmpty name="targetUrl"> |
||
1618 | jmachado | 21 | <button <%=ng_click!= null ? "ng-click=\"" + ng_click + "\"":""%> class="<%=btnClass != null ? btnClass : "btn btn-danger"%>" type="button" data-toggle="modal" data-target="#confirm-ModalGeneric" data-message="${msg}" data-href="<%=request.getContextPath()%>${targetUrl}"> |
1692 | jmachado | 22 | <logic:notEmpty name="label"> |
1617 | jmachado | 23 | ${label} |
1692 | jmachado | 24 | </logic:notEmpty> |
1617 | jmachado | 25 | <logic:notEmpty name="icon"> |
26 | <span class="${icon}"> </span> |
||
27 | </logic:notEmpty> |
||
28 | </button> |
||
29 | </logic:notEmpty> |
||
30 | |||
31 | <logic:notEmpty name="targetFunction"> |
||
1618 | jmachado | 32 | <button <%=ng_click!= null ? "ng-click=\"" + ng_click + "\"":""%> 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');"> |
1692 | jmachado | 33 | <logic:notEmpty name="label"> |
1617 | jmachado | 34 | ${label} |
1692 | jmachado | 35 | </logic:notEmpty> |
1617 | jmachado | 36 | <logic:notEmpty name="icon"> |
37 | <span class="${icon}"> </span> |
||
38 | </logic:notEmpty> |
||
39 | </button> |
||
40 | </logic:notEmpty> |
||
1692 | jmachado | 41 |