site_message.html
1 <#if message.type = 0 >
2 <#assign messageClass = 'info' />
3 <#assign messageTitle='#i18n{portal.util.message.titleWarning}' />
4 <#assign messageIcon = 'info-circle' />
5 <#elseif message.type = 1 >
6 <#assign messageClass = 'info' />
7 <#assign messageTitle='#i18n{portal.util.message.titleWarning}' />
8 <#assign messageIcon = 'help-circle' />
9 <#elseif message.type = 2 >
10 <#assign messageClass = 'danger' />
11 <#assign messageTitle='#i18n{portal.util.message.titleError}' />
12 <#assign messageIcon = 'alert-circle' />
13 <#elseif message.type = 3 >
14 <#assign messageClass = 'warning' />
15 <#assign messageTitle='#i18n{portal.util.message.titleWarning}' />
16 <#assign messageIcon = 'alert-triangle' />
17 <#elseif message.type = 4 >
18 <#assign messageClass = 'success' />
19 <#assign messageTitle='#i18n{portal.util.message.titleConfirmation}' />
20 <#assign messageIcon = 'circle-circle' />
21 <#elseif message.type = 5 >
22 <#assign messageClass = 'danger' />
23 <#assign messageTitle='#i18n{portal.util.message.titleStop}' />
24 <#assign messageIcon = 'alert-circle' />
25 <#else>
26 <#assign messageClass = 'info' />
27 <#assign messageTitle='#i18n{portal.util.message.titleQuestion}' />
28 <#assign messageIcon = 'help-circle' />
29 </#if>
30 <div class="row">
31 <div class="col-sm-12 col-md-4 offset-md-4">
32 <div class="alert alert-${messageClass}">
33 <h3 class="h3"><i class="ti ti-${messageIcon}"></i> ${messageTitle} ${title!}</h3>
34 ${text}
35 </div>
36 <div class="row">
37 <div class="col">
38 <#if list_parameters?exists><#assign keys = list_parameters?keys></#if>
39 <#if url?has_content>
40 <form method="post" action="${url!}" target="${target!}" class="form-inline">
41 <#if list_parameters?exists><#list keys as key><input type="hidden" name="${key}" value="${list_parameters[key]}" /></#list></#if>
42 <button type="submit"class="btn btn-primary">
43 <i class="ti ti-circle-check"></i> #i18n{portal.util.labelValidate}
44 </button>
45 </form>
46 </#if>
47 <#if back_url?has_content>
48 <form method="post" action="${back_url}" class="form-inline" >
49 <#if list_parameters?exists><#list keys as key><input type="hidden" name="${key}" value="${list_parameters[key]}" ></#list></#if>
50 <button type="submit" name="cancel" class="btn btn-primary">
51 <i class="ti ti-circle-x"></i> <#if cancel_button = 1>#i18n{portal.util.labelBack}<#elseif cancel_button = 2>#i18n{portal.util.labelCancel}</#if>
52 </button>
53 </form>
54 <#else>
55 <button type="button" class="btn btn-primary" onclick="javascript:window.history.back();">
56 <i class="ti ti-circle-x"></i>
57 <#if cancel_button = 1>#i18n{portal.util.labelBack}<#elseif cancel_button = 2>#i18n{portal.util.labelCancel}</#if>
58 </button>
59 </#if>
60 </div>
61 </div>
62 </div>
63 </div>