[%# which one is authorized? #%]
[% IF !c.check_cmd_permissions('host', 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 enable notifications for a host'
   description = 'This command is used to enable notifications for the specified host. Notifications will only be sent out for the host state types you defined in your host definition. Note that this command <i>does not</i> enable notifications for services associated with this host.'
%]

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

    [% IF c.request.parameters.ptc %]
        ENABLE_HOST_AND_CHILD_NOTIFICATIONS;[% sprintf("%s",host_name) %]
    [% ELSE %]
        ENABLE_HOST_NOTIFICATIONS;[% sprintf("%s",host_name) %]
    [% END %]
    [%+ IF c.request.parameters.hostserviceoptions %]ENABLE_HOST_SVC_NOTIFICATIONS;[% sprintf("%s",host_name) %][% END %]
[% END %]

[%# definition of the html form data #%]
[% PROCESS _cmd_parts.tt %]
  [% PROCESS cmd_form_host %]
  [% PROCESS cmd_form_ptc name="Enable" %]

[% END %]
[% END %]
