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_view_message_component">
|
|
|
26 |
|
|
|
27 |
<div style="display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px;">
|
|
|
28 |
<h4>{{ messageSubject }}</h4>
|
|
|
29 |
|
|
|
30 |
<a href="{{ urlBack }}">{{ urlBackLabel }}</a>
|
|
|
31 |
</div>
|
|
|
32 |
|
|
|
33 |
<div style="display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 12px;">
|
|
|
34 |
<div style="margin-bottom: 12px; padding-right: 10px;">
|
|
|
35 |
<small class="text-muted" style="margin-top: 0px;">{{# str }} status, block_quickmail {{/ str }}</small>
|
|
|
36 |
<p style="margin-bottom: 0px;">{{ status }}</p>
|
|
|
37 |
</div>
|
|
|
38 |
|
|
|
39 |
<div style="margin-bottom: 12px; padding-right: 10px;">
|
|
|
40 |
<small class="text-muted" style="margin-top: 0px;">{{# str }} from_email, block_quickmail {{/ str }}</small>
|
|
|
41 |
<p style="margin-bottom: 0px;">{{ fromEmail }}</p>
|
|
|
42 |
</div>
|
|
|
43 |
|
|
|
44 |
<div style="margin-bottom: 12px; padding-right: 10px;">
|
|
|
45 |
<small class="text-muted" style="margin-top: 0px;">{{# str }} status, block_quickmail {{/ str }}</small>
|
|
|
46 |
<p style="margin-bottom: 0px;">{{ courseName }}</p>
|
|
|
47 |
</div>
|
|
|
48 |
|
|
|
49 |
{{^isSending}}
|
|
|
50 |
<div style="margin-bottom: 12px; padding-right: 10px;">
|
|
|
51 |
<small class="text-muted" style="margin-top: 0px;">{{# str }} date {{/ str }}</small>
|
|
|
52 |
<p style="margin-bottom: 0px;">{{ sendDate }}</p>
|
|
|
53 |
</div>
|
|
|
54 |
{{/isSending}}
|
|
|
55 |
</div>
|
|
|
56 |
|
|
|
57 |
<h6>{{ messageType }} {{# str }} content {{/ str }}</h6>
|
|
|
58 |
<div style="margin-bottom: 30px;">
|
|
|
59 |
{{{ messageBody }}}
|
|
|
60 |
</div>
|
|
|
61 |
|
|
|
62 |
<!-- if message is queued, show all unsent recipients as "recipients" and do not show unsent -->
|
|
|
63 |
{{#isQueued}}
|
|
|
64 |
<h6>{{# str }} recipients, block_quickmail {{/ str }} <span class="badge badge-primary">{{ unsentRecipientCount }}</span></h6>
|
|
|
65 |
<div style="margin-bottom: 30px;">
|
|
|
66 |
{{#unsentRecipientUsers}}
|
|
|
67 |
<span class="label recipients">{{{ . }}}</span>
|
|
|
68 |
{{/unsentRecipientUsers}}
|
|
|
69 |
</div>
|
|
|
70 |
{{/isQueued}}
|
|
|
71 |
|
|
|
72 |
<!-- if message is not queued then it must be sent or sending, show both sent and unsent recipients individually -->
|
|
|
73 |
{{^isQueued}}
|
|
|
74 |
<h6>{{# str }} recipients, block_quickmail {{/ str }} <span class="badge badge-primary">{{ sentRecipientCount }}</span></h6>
|
|
|
75 |
<small>{{# str }} success_recipients_promise, block_quickmail {{/ str }}</small>
|
|
|
76 |
<div style="margin-bottom: 30px;">
|
|
|
77 |
{{#sentRecipientUsers}}
|
|
|
78 |
<span class="label recipients">{{{ . }}}</span>
|
|
|
79 |
{{/sentRecipientUsers}}
|
|
|
80 |
</div>
|
|
|
81 |
|
|
|
82 |
{{#wasSent}}
|
|
|
83 |
<h6>{{# str }} failed_recipients, block_quickmail {{/ str }} <span class="badge badge-primary">{{ unsentRecipientCount }}</span></h6>
|
|
|
84 |
<small>{{# str }} failed_recipients_promise, block_quickmail {{/ str }}</small>
|
|
|
85 |
{{/wasSent}}
|
|
|
86 |
|
|
|
87 |
{{#isSending}}
|
|
|
88 |
<h6>{{# str }} pending_recipients, block_quickmail {{/ str }} <span class="badge badge-primary">{{ unsentRecipientCount }}</span></h6>
|
|
|
89 |
<small>{{# str }} pending_recipients_promise, block_quickmail {{/ str }}</small>
|
|
|
90 |
{{/isSending}}
|
|
|
91 |
<div style="margin-bottom: 30px;">
|
|
|
92 |
{{#unsentRecipientUsers}}
|
|
|
93 |
<span class="label recipients">{{{ . }}}</span>
|
|
|
94 |
{{/unsentRecipientUsers}}
|
|
|
95 |
</div>
|
|
|
96 |
{{/isQueued}}
|
|
|
97 |
|
|
|
98 |
<h6>{{# str }} additional_emails, block_quickmail {{/ str }} <span class="badge badge-primary">{{ additionalEmailCount }}</span></h6>
|
|
|
99 |
<div style="margin-bottom: 30px;">
|
|
|
100 |
{{#additionalEmails}}
|
|
|
101 |
<span class="label recipients">{{{ . }}}</span>
|
|
|
102 |
{{/additionalEmails}}
|
|
|
103 |
</div>
|
|
|
104 |
|
|
|
105 |
<h6>{{# str }} mentors_copied, block_quickmail {{/ str }}</h6>
|
|
|
106 |
<div style="margin-bottom: 20px;">
|
|
|
107 |
{{#mentorCopyRequested}}
|
|
|
108 |
<small>{{# str }} yes {{/ str }}</small>
|
|
|
109 |
{{/mentorCopyRequested}}
|
|
|
110 |
|
|
|
111 |
{{^mentorCopyRequested}}
|
|
|
112 |
<small>{{# str }} no {{/ str }}</small>
|
|
|
113 |
{{/mentorCopyRequested}}
|
|
|
114 |
</div>
|
|
|
115 |
|
|
|
116 |
<h6>{{# str }} attachments, block_quickmail {{/ str }} <span class="badge badge-primary">{{ attachmentCount }}</span></h6>
|
|
|
117 |
|
|
|
118 |
<div style="margin-bottom: 30px;">
|
|
|
119 |
{{#attachments}}
|
|
|
120 |
<p>{{{ . }}}</p>
|
|
|
121 |
{{/attachments}}
|
|
|
122 |
</div>
|
|
|
123 |
|
|
|
124 |
<div style="display: flex;">
|
|
|
125 |
<a href="{{ urlBack }}" class="btn" style="margin-right: 10px;">{{ urlBackLabel }}</a>
|
|
|
126 |
|
|
|
127 |
{{^wasSent}}
|
|
|
128 |
<a href="{{ urlSendNow }}" class="btn btn-success" style="margin-right: 10px;">{{# str }} send_now, block_quickmail {{/ str }}</a>
|
|
|
129 |
{{/wasSent}}
|
|
|
130 |
|
|
|
131 |
{{^wasSent}}
|
|
|
132 |
<a href="{{ urlUnqueue }}" class="btn btn-warning" style="margin-right: 10px;">{{# str }} unqueue, block_quickmail {{/ str }}</a>
|
|
|
133 |
{{/wasSent}}
|
|
|
134 |
|
|
|
135 |
<a href="{{ urlDuplicate }}" class="btn btn-info">{{# str }} duplicate, block_quickmail {{/ str }}</a>
|
|
|
136 |
</div>
|
|
|
137 |
|
|
|
138 |
</div>
|