Subversion Repositories bacoAlunos

Rev

Rev 1617 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1617 Rev 1618
Line 11... Line 11...
11
<%@attribute name="targetUrl" type="java.lang.String" required="false" %>
11
<%@attribute name="targetUrl" type="java.lang.String" required="false" %>
12
<%@attribute name="targetFunction" 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" %>
13
<%@attribute name="label" type="java.lang.String" required="false" %>
14
<%@attribute name="icon" 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" %>
15
<%@attribute name="btnClass" type="java.lang.String" required="false" %>
-
 
16
<%@attribute name="ng_click" type="java.lang.String" required="false" %>
16
 
17
 
17
 
18
 
18
 
19
 
19
<logic:notEmpty name="targetUrl">
20
<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
    <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}">
21
        <logic:empty name="label">
22
        <logic:empty name="label">
22
            ${label}
23
            ${label}
23
        </logic:empty>
24
        </logic:empty>
24
        <logic:notEmpty name="icon">
25
        <logic:notEmpty name="icon">
25
            <span class="${icon}"> </span>
26
            <span class="${icon}"> </span>
26
        </logic:notEmpty>
27
        </logic:notEmpty>
27
    </button>
28
    </button>
28
</logic:notEmpty>
29
</logic:notEmpty>
29
 
30
 
30
<logic:notEmpty name="targetFunction">
31
<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
    <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');">
32
        <logic:empty name="label">
33
        <logic:empty name="label">
33
            ${label}
34
            ${label}
34
        </logic:empty>
35
        </logic:empty>
35
        <logic:notEmpty name="icon">
36
        <logic:notEmpty name="icon">
36
            <span class="${icon}"> </span>
37
            <span class="${icon}"> </span>