forked from Netsach/bootstrap.alert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template_modal.html
50 lines (50 loc) · 2 KB
/
template_modal.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<div class="modal fade bootstrap-alert-modal <%= extra_class %> " tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header
<% switch(type) {
case "info":
%> alert-info <%
break;
case "success":
%> alert-success <%
break;
case "danger":
%> alert-danger <%
break;
case "warning":
%> alert-warning <%
break;
default:
%> "" <%
break;
} %>">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title"><%= title %></h4>
</div>
<div class="modal-body">
<p><%= body %></p>
</div>
<div class="modal-footer">
<% if(text_decline){ %>
<button type="button" class="btn btn-default" data-dismiss="modal">
<div class="row">
<% if(!text_confirm){ %><div class="col-xs-4 timecircle-timer" data-timer="<%= timer_modal %>" style="height: 40px; margin-top: 7px;"></div><% } %>
<div class="col-xs-<% if(!text_confirm){ %>7<% }else{ %>12 <% } %> inline-label" style="line-height: 48px; <% if(text_confirm){ %>min-width: 50px; height: 48px; <% } %>"><%= text_decline %></div>
</div>
</button>
<% } %>
<% if(text_confirm){ %>
<% if(is_delayed) { %>
<button type="button" class="btn btn-primary confirmed">
<div class="row">
<div class="col-xs-4 timecircle-timer" data-timer="<%= timer_modal %>" style="height: 40px; margin-top: 7px;"></div>
<div class="col-xs-7 inline-label" style="margin-top: 13px;"><%= text_confirm %></div>
</div>
</button>
<% } %>
<% } %>
</div>
</div>
</div>
</div>