-
Notifications
You must be signed in to change notification settings - Fork 0
/
globalemsg.html
executable file
·94 lines (83 loc) · 4.12 KB
/
globalemsg.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="css/globalemsg.css" />
<div id="globalemsg-header-container"><!-- --></div>
<div id="globalemsg-gms-container"><!-- --></div>
<div id="globalemsg-container"><!--
{if isEnabled}
<form id="globalemsg-gms-form" class="form-horizontal" role="form">
<div class="form-group">
<label for="globalemsg-gms-title">__MSG__GMS_TITLE__</label>
<input type="text" name="title" class="form-control required" id="globalemsg-gms-title" placeholder="__MSG__ENTER_A_GMS_TITLE__">
</div>
<div class="form-group">
<label for="globalemsg-gms-description">__MSG__GMS_DESCRIPTION__</label>
<textarea name="description" class="form-control required" id="globalemsg-gms-description" placeholder="__MSG__ENTER_A_GMS_DESCRIPTION__"></textarea>
</div>
<div class="form-group">
<label for="globalemsg-gms-dateend">__MSG__GMS_DATESTART__ YYYY-MM-DD</label>
<input type="text" name="date_start" class="form-control required date" id="globalemsg-gms-datestart" placeholder="__MSG__ENTER_A_GMS_DATESTART__">
</div>
<div class="form-group">
<label for="globalemsg-gms-dateend">__MSG__GMS_DATEEND__</label>
<input type="text" name="date_end" class="form-control required date" id="globalemsg-gms-dateend" placeholder="__MSG__ENTER_A_GMS_DATEEND__">
</div>
<div class="form-group">
<label for="globalemsg-gms-sendmail">__MSG__GMS_SENDMAIL__</label>
<input type="radio" name="send_mail" value="1"> __MSG__GMS_YES__
<input type="radio" name="send_mail" value="0" checked> __MSG__GMS_NO__
</div>
<div class="form-group">
<label for="globalemsg-gms-level">__MSG__GMS_LEVEL__</label><br>
<input type="radio" name="level" value="1" checked> __MSG__GMS_NORMAL__<br>
<input type="radio" name="level" value="2"> __MSG__GMS_WARNING__<br>
<input type="radio" name="level" value="3"> __MSG__GMS_CRITICAL__
</div>
<button type="submit" class="btn btn-default">__MSG__CREATE_GMS__</button>
</form>
{/if}
{if isDisabled}
<h3 class="panel-title oae-threedots">__MSG__GMS_DISABLED__ </h3>
{/if}
--></div>
<div id="globalemsg-header-template"><!--
${listHeader('__MSG__GMS_LIST__', false, false, false)}
--></div>
<div id="globalemsg-gms-template"><!--
{for gms in gmss}
<div class="panel panel-info">
<div class="panel-heading">
<button type="button" class="btn btn-danger pull-right globalemsg-gms-delete" data-created="${gms.created}">
{var title = oae.api.util.security().encodeForHTML(gms.title)}
{var description = oae.api.util.security().encodeForHTML(gms.description)}
{var date_start = new Date(gms.date_start);}
{var date_end = new Date(gms.date_end);}
<span class="sr-only">__MSG__DELETE_GMS_NAME__</span>
<i class="icon-trash"></i>
</button>
<h3 class="panel-title oae-threedots">__MSG__GMS_TITLE__ : ${title}</h3>
</div>
<div class="panel-body">__MSG__GMS_DESCRIPTION__ : ${gms.description|encodeForHTML}<br>
__MSG__GMS_DATESTART__ ${date_start.toLocaleDateString("en-GB")} __MSG__GMS_DATEEND__ ${date_end.toLocaleDateString("en-GB")}
<br>__MSG__GMS_SENDMAIL__ :
{if gms.send_mail !== 0}
__MSG__GMS_YES__
{/if}
{if gms.send_mail === 0}
__MSG__GMS_NO__
{/if}
<br>__MSG__GMS_LEVEL__ :
{if gms.level === 1}
__MSG__GMS_NORMAL__
{/if}
{if gms.level === 2}
__MSG__GMS_WARNING__
{/if}
{if gms.level === 3}
__MSG__GMS_CRITICAL__
{/if}
</p></div>
</div>
{/for}
--></div>
<!-- JAVASCRIPT -->
<script type="text/javascript" src="js/globalemsg.js"></script>