Lines 99-118
Link Here
|
99 |
<td data-order="[% QUEUED_MESSAGE.time_queued | html %]">[% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %]</td> |
99 |
<td data-order="[% QUEUED_MESSAGE.time_queued | html %]">[% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %]</td> |
100 |
<td> |
100 |
<td> |
101 |
[% IF ( QUEUED_MESSAGE.failure_code ) %] |
101 |
[% IF ( QUEUED_MESSAGE.failure_code ) %] |
102 |
[% IF ( QUEUED_MESSAGE.failure_code == "INVALID_BORNUMBER" ) %]<span>Invalid borrowernumber [% borrowernumber | html %]</span> |
102 |
[% IF ( QUEUED_MESSAGE.failure_code == "INVALID_BORNUMBER" ) %]<span class="clearfix">Invalid borrowernumber [% borrowernumber | html %]</span> |
103 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_EMAIL' ) %]<span>Unable to find an email address for this borrower</span> |
103 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_EMAIL' ) %]<span class="clearfix">Unable to find an email address for this borrower</span> |
104 |
[% ELSIF (matches = QUEUED_MESSAGE.failure_code.match('INVALID_EMAIL:(\w+)') ) %]<span>Invalid [% matches.0 | html %] email address found [% borrowernumber | html %]</span> |
104 |
[% ELSIF (matches = QUEUED_MESSAGE.failure_code.match('INVALID_EMAIL:(\w+)') ) %]<span class="clearfix">Invalid [% matches.0 | html %] email address found [% borrowernumber | html %]</span> |
105 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_FROM' ) %]<span>Missing from email address</span> |
105 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_FROM' ) %]<span class="clearfix">Missing from email address</span> |
106 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'MISSING_SMS' ) %]<span>Missing SMS number</span> |
106 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'MISSING_SMS' ) %]<span class="clearfix">Missing SMS number</span> |
107 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'DUPLICATE_MESSAGE' ) %]<span>Message is duplicate</span> |
107 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'DUPLICATE_MESSAGE' ) %]<span class="clearfix">Message is duplicate</span> |
108 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_NOTES' ) %]<span>No notes from SMS driver</span> |
108 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'NO_NOTES' ) %]<span class="clearfix">No notes from SMS driver</span> |
109 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'SENDMAIL' ) %]<span>Unhandled email failure, check the logs for further details</span> |
109 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == 'SENDMAIL' ) %]<span class="clearfix">Unhandled email failure, check the logs for further details</span> |
110 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == "UNKNOWN_ERROR" ) %]<span>Unknown error</span> |
110 |
[% ELSIF ( QUEUED_MESSAGE.failure_code == "UNKNOWN_ERROR" ) %]<span class="clearfix">Unknown error</span> |
111 |
[% ELSE %]<span>Error occurred while sending email.</span> |
111 |
[% ELSE %]<span class="clearfix">Error occurred while sending email.</span> |
112 |
[% END %] |
112 |
[% END %] |
113 |
[% END %] |
113 |
[% END %] |
114 |
[% IF ( QUEUED_MESSAGE.cc_address ) %] |
114 |
[% IF ( QUEUED_MESSAGE.status == 'sent' ) %] |
115 |
<span>Notice copied to: [% QUEUED_MESSAGE.cc_address | html %]</span> |
115 |
[% IF ( QUEUED_MESSAGE.from_address ) %] |
|
|
116 |
<span class="clearfix"><span class="label">from:</span> [% QUEUED_MESSAGE.from_address | html %]</span> |
117 |
[% END %] |
118 |
[% IF ( QUEUED_MESSAGE.to_address ) %] |
119 |
<span class="clearfix"><span class="label">to:</span> [% QUEUED_MESSAGE.to_address | html %]</span> |
120 |
[% END %] |
121 |
[% IF ( QUEUED_MESSAGE.cc_address ) %] |
122 |
<span class="clearfix"><span class="label">cc:</span> [% QUEUED_MESSAGE.cc_address | html %]</span> |
123 |
[% END %] |
116 |
[% END %] |
124 |
[% END %] |
117 |
</td> |
125 |
</td> |
118 |
</tr> |
126 |
</tr> |
119 |
- |
|
|