blob: 7af674cf6d5b0aac6ea2c16a651a7638df51eff1 (
plain)
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
|
<div class="floaticon">{bithelp}</div>
<div class="admin notifications">
<div class="header">
<h1>{tr}EMail notifications{/tr}</h1>
</div>
<div class="body">
{form legend="Add Notification"}
<input type="hidden" name="find" value="{$find|escape}" />
<input type="hidden" name="sort_mode" value="{$sort_mode|escape}" />
<input type="hidden" name="offset" value="{$offset|escape}" />
<div class="form-group">
{formlabel label="Event" for="event"}
{forminput}
<select name="event" id="event">
{foreach from=$events key=ename item=etext}
<option value="{$ename}">{$etext}</option>
{/foreach}
</select>
{formhelp note="Pick the event that triggers an email dispatch."}
{/forminput}
</div>
<div class="form-group">
{formlabel label="Email address" for="femail"}
{forminput}
<input type="text" id="femail" name="email" />
<br />
<a href="#" onclick="javascript:document.getElementById('femail').value='{$cuser_mail}'">{tr}use your email{/tr}</a>
<br />
<a href="#" onclick="javascript:document.getElementById('femail').value='{$admin_mail}'">{tr}use admin email{/tr}</a>
{/forminput}
</div>
<div class="form-group submit">
<input type="submit" class="btn btn-default" name="add" value="{tr}Add{/tr}" />
</div>
{/form}
{minifind sort_mode=$sort_mode find=$find}
<table class="table data">
<caption>{tr}Active Notifications{/tr}</caption>
<tr>
<th>{smartlink ititle="Event" isort="event" offset=$offset idefault=1}</th>
<th>{smartlink ititle="Object" isort="object" offset=$offset}</th>
<th>{smartlink ititle="Email" isort="email" offset=$offset}</th>
<th>{tr}action{/tr}</th>
</tr>
{section name=user loop=$channels}
<tr class="{cycle values='odd,even'}">
<td>{$channels[user].event}</td>
<td>{$channels[user].object}</td>
<td>{$channels[user].email}</td>
<td class="actionicon">{smartlink ititle="remove" biticon="edit-delete" offset=$offset removeevent=$channels[user].event object=$channels[user].object email=$channels[user].email}</td>
</tr>
{sectionelse}
<tr class="norecords"><td colspan="4">{tr}No records found{/tr}</td></tr>
{/section}
</table>
{pagination}
</div><!-- end .body -->
</div><!-- end .notifications -->
|