[% IF ctx.event != -1 %]
[% IF ctx.sms_notify %]
[% l('Your message has been sent!') %]
[% l('Return to record') %][% ctx.event.template_output.data %][% ELSE %]
[% l('Text call number') %]
[% l('Return to record') %][% ctx.event.template_output.data %]
[% END %] [% ELSE %] [% l('SMS not enabled for this site.') %] [% END %]