[%# which one is authorized? #%]
[% IF !c.check_cmd_permissions('service', c.request.parameters.service, c.request.parameters.host) %]
  [% WRAPPER error.tt errorMessage = "you are not authorized for this command" errorDescription = "check your configuration if you believe this is an error" %][% END %]
[% ELSE %]

[%# description used by the commands page #%]
[% WRAPPER $cmd_tt
   request     = 'You are requesting to cancel scheduled downtime for a particular service'
   description = 'This command is used to cancel active or pending scheduled downtime for the specified service.'
%]

[%# definition of the command send to your backend #%]
[% BLOCK action %]
    [% downtime_id          = c.request.parameters.down_id %]

    DEL_SVC_DOWNTIME;[% sprintf("%lu",downtime_id) %]
[% END %]

[%# definition of the html form data #%]
[% PROCESS _cmd_parts.tt %]
  [% PROCESS cmd_form_down_id %]

[% END %]
[% END %]
