1 |
efrain |
1 |
<!--
|
|
|
2 |
// This file is part of Moodle - http://moodle.org/
|
|
|
3 |
//
|
|
|
4 |
// Moodle is free software: you can redistribute it and/or modify
|
|
|
5 |
// it under the terms of the GNU General Public License as published by
|
|
|
6 |
// the Free Software Foundation, either version 3 of the License, or
|
|
|
7 |
// (at your option) any later version.
|
|
|
8 |
//
|
|
|
9 |
// Moodle is distributed in the hope that it will be useful,
|
|
|
10 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
// GNU General Public License for more details.
|
|
|
13 |
//
|
|
|
14 |
// You should have received a copy of the GNU General Public License
|
|
|
15 |
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* @package block_quickmail
|
|
|
19 |
* @copyright 2008 onwards Louisiana State University
|
|
|
20 |
* @copyright 2008 onwards Chad Mazilly, Robert Russo, Jason Peak, Dave Elliott, Adam Zapletal, Philip Cali
|
|
|
21 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
22 |
*/
|
|
|
23 |
-->
|
|
|
24 |
|
|
|
25 |
<div class="block_quickmail_notification_index">
|
|
|
26 |
<table class="table table-hover">
|
|
|
27 |
<thead>
|
|
|
28 |
<tr>
|
|
|
29 |
{{#modelIsSorted}}
|
|
|
30 |
{{#isSortedAsc}}
|
|
|
31 |
<th><a href="?courseid={{ courseId }}&sort=model&dir=desc">{{# str }} notification_model, block_quickmail {{/ str }}</a> {{#pix}} t/sort_asc {{/pix}}</th>
|
|
|
32 |
{{/isSortedAsc}}
|
|
|
33 |
|
|
|
34 |
{{^isSortedAsc}}
|
|
|
35 |
<th><a href="?courseid={{ courseId }}&sort=model&dir=asc">{{# str }} notification_model, block_quickmail {{/ str }}</a> {{#pix}} t/sort_desc {{/pix}}</th>
|
|
|
36 |
{{/isSortedAsc}}
|
|
|
37 |
{{/modelIsSorted}}
|
|
|
38 |
{{^modelIsSorted}}
|
|
|
39 |
<th><a href="?courseid={{ courseId }}&sort=model&dir=asc">{{# str }} notification_model, block_quickmail {{/ str }}</a></th>
|
|
|
40 |
{{/modelIsSorted}}
|
|
|
41 |
|
|
|
42 |
{{#nameIsSorted}}
|
|
|
43 |
{{#isSortedAsc}}
|
|
|
44 |
<th><a href="?courseid={{ courseId }}&sort=name&dir=desc">{{# str }} title, block_quickmail {{/ str }}</a> {{#pix}} t/sort_asc {{/pix}}</th>
|
|
|
45 |
{{/isSortedAsc}}
|
|
|
46 |
|
|
|
47 |
{{^isSortedAsc}}
|
|
|
48 |
<th><a href="?courseid={{ courseId }}&sort=name&dir=asc">{{# str }} title, block_quickmail {{/ str }}</a> {{#pix}} t/sort_desc {{/pix}}</th>
|
|
|
49 |
{{/isSortedAsc}}
|
|
|
50 |
{{/nameIsSorted}}
|
|
|
51 |
{{^nameIsSorted}}
|
|
|
52 |
<th><a href="?courseid={{ courseId }}&sort=name&dir=asc">{{# str }} title, block_quickmail {{/ str }}</a></th>
|
|
|
53 |
{{/nameIsSorted}}
|
|
|
54 |
|
|
|
55 |
<th>{{# str }} last_run_at, block_quickmail {{/ str }}</th>
|
|
|
56 |
|
|
|
57 |
<th>{{# str }} next_run_at, block_quickmail {{/ str }}</th>
|
|
|
58 |
|
|
|
59 |
{{#enabledIsSorted}}
|
|
|
60 |
{{#isSortedAsc}}
|
|
|
61 |
<th><a href="?courseid={{ courseId }}&sort=enabled&dir=desc">{{# str }} is_enabled, block_quickmail {{/ str }}</a> {{#pix}} t/sort_asc {{/pix}}</th>
|
|
|
62 |
{{/isSortedAsc}}
|
|
|
63 |
|
|
|
64 |
{{^isSortedAsc}}
|
|
|
65 |
<th><a href="?courseid={{ courseId }}&sort=enabled&dir=asc">{{# str }} is_enabled, block_quickmail {{/ str }}</a> {{#pix}} t/sort_desc {{/pix}}</th>
|
|
|
66 |
{{/isSortedAsc}}
|
|
|
67 |
{{/enabledIsSorted}}
|
|
|
68 |
{{^enabledIsSorted}}
|
|
|
69 |
<th><a href="?courseid={{ courseId }}&sort=enabled&dir=asc">{{# str }} is_enabled, block_quickmail {{/ str }}</a></th>
|
|
|
70 |
{{/enabledIsSorted}}
|
|
|
71 |
|
|
|
72 |
<th></th>
|
|
|
73 |
</tr>
|
|
|
74 |
</thead>
|
|
|
75 |
<tbody>
|
|
|
76 |
{{# tableRows }}
|
|
|
77 |
<tr>
|
|
|
78 |
<td>{{ modelDescription }}</td>
|
|
|
79 |
|
|
|
80 |
<td>{{ name }}</td>
|
|
|
81 |
|
|
|
82 |
<td>
|
|
|
83 |
{{#lastRunAt}}
|
|
|
84 |
{{ lastRunAt }}
|
|
|
85 |
{{/lastRunAt}}
|
|
|
86 |
{{^lastRunAt}}
|
|
|
87 |
--
|
|
|
88 |
{{/lastRunAt}}
|
|
|
89 |
</td>
|
|
|
90 |
|
|
|
91 |
<td>
|
|
|
92 |
{{#nextRunAt}}
|
|
|
93 |
{{ nextRunAt }}
|
|
|
94 |
{{/nextRunAt}}
|
|
|
95 |
{{^nextRunAt}}
|
|
|
96 |
--
|
|
|
97 |
{{/nextRunAt}}
|
|
|
98 |
</td>
|
|
|
99 |
|
|
|
100 |
<td>
|
|
|
101 |
{{#isEnabled}}
|
|
|
102 |
<a href="?courseid={{ courseId }}&action=disable¬ificationid={{ notificationId }}" style="color: #373a3c;">{{# pix }} t/hide, core, Disable {{/ pix }}</a>
|
|
|
103 |
{{/isEnabled}}
|
|
|
104 |
{{^isEnabled}}
|
|
|
105 |
<a href="?courseid={{ courseId }}&action=enable¬ificationid={{ notificationId }}" style="color: #81878b;">{{# pix }} t/show, core, Enable {{/ pix }}</a>
|
|
|
106 |
{{/isEnabled}}
|
|
|
107 |
</td>
|
|
|
108 |
|
|
|
109 |
<td>
|
|
|
110 |
<a href="{{ editUrl }}" class="btn btn-info btn-sm">{{# str }} edit {{/ str }}</a>
|
|
|
111 |
<a href="?courseid={{ courseId }}&action=delete¬ificationid={{ notificationId }}" class="btn btn-danger btn-sm btn-delete-notification">{{# str }} delete {{/ str }}</a>
|
|
|
112 |
</td>
|
|
|
113 |
</tr>
|
|
|
114 |
{{/ tableRows }}
|
|
|
115 |
|
|
|
116 |
{{^ tableRows }}
|
|
|
117 |
<tr>
|
|
|
118 |
<td colspan="5" align="center">{{# str }} no_sents, block_quickmail {{/ str }}</td>
|
|
|
119 |
</tr>
|
|
|
120 |
{{/ tableRows }}
|
|
|
121 |
</tbody>
|
|
|
122 |
</table>
|
|
|
123 |
|
|
|
124 |
{{< block_quickmail/pagination }}
|
|
|
125 |
{{/ block_quickmail/pagination }}
|
|
|
126 |
|
|
|
127 |
<a href="{{ urlBack }}" class="btn btn-secondary">{{ urlBackLabel }}</a>
|
|
|
128 |
<a href="{{ urlCreateNew }}" class="btn btn-primary">{{ urlCreateNewLabel }}</a>
|
|
|
129 |
</div>
|