[%# 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 reset modified attributes of a particular host'
   description = 'This command is used to reset all modified attributes of a host.<br>This resets the internal flag. <b>Original settings</b> will then be refreshed on the <b>next core restart</b>.'
%]

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

    CHANGE_HOST_MODATTR;[% sprintf("%s;0",host_name) %]
[% END %]

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

[% END %]
[% END %]
