<%args> $type => undef $id => undef

<% i18nGettext ('I18N_OPENXPKI_CLIENT_HTML_MASON_ACTIVITY_CRR_REVOKE_CERTIFICATE_TITLE') %>

<% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_ACTIVITY_CRR_REVOKE_CERTIFICATE_DESCRIPTION') %>

<& /service/create_csr/print_errors.mhtml, 'errors' => \@errors &> <%init> my @errors = (); ## call the 'revoke_certificate' activity my $msg = $context->{client}->send_receive_command_msg ( "execute_workflow_activity", { WORKFLOW => $type, ID => $id, ACTIVITY => 'I18N_OPENXPKI_WF_ACTION_REVOKE_CERTIFICATE', }, ); if (exists $msg->{SERVICE_MSG} and $msg->{SERVICE_MSG} eq "ERROR") { @errors = $m->comp ('/lib/get_deep_error.mhtml', 'msg' => $msg); } elsif ($msg->{PARAMS}->{WORKFLOW}->{STATE} eq 'SUCCESS') { return $m->comp('/service/create_crr/success.mhtml', 'msg' => $msg, 'type' => $type, 'id' => $id, ); } else { return $m->comp ('/service/workflow/show_instance.html', 'msg' => $msg, 'type' => $type, 'id' => $id); }