2 $workflow_type => undef
8 <& /service/open_form.mhtml &>
9 <& /lib/html/hidden_reqargs.mhtml &>
12 <& /service/open_form.mhtml, action => $context->{menu}->get_root() . '/service/create_csr/bulk/profile.html' &>
17 <h1><% i18nGettext ('I18N_OPENXPKI_CLIENT_HTML_MASON_CREATE_CSR_GET_ROLE_TITLE') %></h1>
19 <% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_CREATE_CSR_GET_ROLE_DESCRIPTION') %>
23 <h1><% i18nGettext ('I18N_OPENXPKI_CLIENT_HTML_MASON_CREATE_CSR_GET_ROLE_BULK_TITLE') %></h1>
25 <% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_CREATE_CSR_GET_ROLE_BULK_DESCRIPTION') %>
30 <& /lib/html/select.mhtml,
32 'default' => [ $role ],
33 'values' => [ @roles ] &>
35 <& /service/send_form.mhtml &>
36 <& /service/close_form.mhtml &>
39 <& /service/create_csr/print_errors.mhtml, 'errors' => \@errors &>
42 ## read all roles from the server
44 my $msg = $context->{client}->send_receive_command_msg(
45 "get_available_cert_roles",
48 if (ref $msg->{PARAMS} eq 'ARRAY') {
49 @roles = @{$msg->{PARAMS}};
52 if (ref $msg eq 'ARRAY' && $msg->[0]->{LABEL} ne 'I18N_OPENXPKI_SERVER_API_WORKFLOW_MISSING_REQUIRED_FIELDS') {
54 push @errors, @{ $msg };
56 ## return the role if it exists
58 grep /^$role$/, @roles)
63 ## if we have only one configuration
64 ## then we have not to ask the user
65 if (scalar @roles == 1)
70 ## ok, we have to ask the user