content_mailcnf_domainlist.html
2.47 KB
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
<table class="table table-hover" >
<thead>
<tr>
<th>#</th>
<th>ID</th>
<th>Name</th>
<th>Active</th>
<th>Deleted</th>
<th>Group Id</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for list in lists %}
<tr>
</tr>
<tr>
<td>{{ list[8] }} </td>
<td>{{ list[0] }} </td>
<td>{{ list[1] }} </td>
<td >{{ list[5] }}</td>
<td>{{ list[6] }}</td>
<td>{{ list[7] }}</td>
<td>
<form action="/mailcnf/domain" method="POST"><input type="hidden" size="70" name="table" value="virtual_domains">
<input type="hidden" value="domainlist" size="70" name="mainfnc" id="" class="'">
<input type="hidden" value="mailcnf" size="70" name="module" id="" class="'">
<input type="hidden" size="70" name="fnc" value="edit">
<input type="hidden" size="70" name="tableid" value={{ list[0] }} ">
<input type="hidden" size="70" name="id" value="{{ list[0] }}">
<button type="submit" class="btn btn-primary btn-block btn-xs">Edit </button>
</form>
<form action="/mailcnf/domain" method="POST">
<input type="hidden" size="70" name="table" value="virtual_domains">
<input type="hidden" value="domainlist" size="70" name="mainfnc" id="" class="'">
<input type="hidden" value="mailcnf" size="70" name="module" id="" class="'">
<input type="hidden" size="70" name="tableid" value="{{ list[0] }} ">
<input type="hidden" size="70" name="id" value="{{ list[0] }}">
{% if list[6] == 0 %}
<input type="hidden" size="70" name="fnc" value="delete">
<button type="submit" class="btn btn-danger btn-block btn-xs">Delete </button>
{% else %}
<input type="hidden" size="70" name="fnc" value="undelete">
<button type="submit" class="btn btn-danger btn-block btn-xs">UnDelete </button>
{% end %}
</form>
</td>
</tr>
{% end %}
</tbody>
</table>