web interface: sort descriptions like the form fields in get_info, cert_search
[openxpki.git] / trunk / clients / perl / OpenXPKI-Client-HTML-Mason / htdocs / service / api / cert_search.html
blobf0e2558838b4609ece4df93daa6b4916369e898a
1 <%args>
2 $revocation => 0
3 </%args>
4 <h1>
5 <% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_API_CERT_SEARCH_TITLE') %>
6 </h1>
7 <p>
8 <% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_API_CERT_SEARCH_DESCRIPTION') %>
9 </p>
11 <& /service/open_form.mhtml, action => $context->{menu}->get_root().'/service/api/cert_list.html' &>
13 <& /lib/html/hidden.mhtml, name => 'revocation', value => $revocation &>
14 <table>
15 <tr>
16 <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_TABLE_HEAD_NAME') %></th>
17 <th><% i18nGettext('I18N_OPENXPKI_CLIENT_HTML_MASON_TABLE_HEAD_VALUE') %></th>
18 </tr>
19 <tr>
20 <td><% i18nGettext('I18N_OPENXPKI_CERT_EMAIL') %></td>
21 <td><& /lib/html/input.mhtml, name => 'email' &>
22 </tr>
23 <tr>
24 <td><% i18nGettext('I18N_OPENXPKI_CERT_SUBJECT') %></td>
25 <td><& /lib/html/input.mhtml, name => 'subject' &>
26 </tr>
27 <tr>
28 <td><% i18nGettext('I18N_OPENXPKI_CERT_SERIAL') %></td>
29 <td><& /lib/html/input.mhtml, name => 'cert_serial' &>
30 </tr>
31 <tr>
32 <td><% i18nGettext('I18N_OPENXPKI_CSR_SERIAL') %></td>
33 <td><& /lib/html/input.mhtml, name => 'csr_serial' &>
34 </tr>
35 <tr>
36 <td><% i18nGettext('I18N_OPENXPKI_CERT_ISSUER') %></td>
37 <td><& /lib/html/input.mhtml, name => 'issuer' &>
38 </tr>
39 </table>
41 <& /service/send_form.mhtml &>
42 <& /service/close_form.mhtml &>
44 <& /service/create_csr/print_descriptions.mhtml, 'descriptions' => \@descriptions &>
46 <%init>
47 my @descriptions = ();
48 my @raw = ("EMAIL", "SUBJECT", "ISSUER", "CERT_SERIAL", "CSR_SERIAL");
50 foreach my $key (@raw)
52 my $label = "I18N_OPENXPKI_CERT_SEARCH_".uc($key);
53 push @descriptions, [
54 i18nGettext($label),
55 i18nGettext($label . '_DESCRIPTION'),
58 </%init>
60 <%once>
61 ## fields for i18n scan
63 ## I18N_OPENXPKI_CERT_SEARCH_SUBJECT
64 ## I18N_OPENXPKI_CERT_SEARCH_SUBJECT_DESCRIPTION
66 ## I18N_OPENXPKI_CERT_SEARCH_EMAIL
67 ## I18N_OPENXPKI_CERT_SEARCH_EMAIL_DESCRIPTION
69 ## I18N_OPENXPKI_CERT_SEARCH_ISSUER
70 ## I18N_OPENXPKI_CERT_SEARCH_ISSUER_DESCRIPTION
72 ## I18N_OPENXPKI_CERT_SEARCH_CERT_SERIAL
73 ## I18N_OPENXPKI_CERT_SEARCH_CERT_SERIAL_DESCRIPTION
75 ## I18N_OPENXPKI_CERT_SEARCH_CSR_SERIAL
76 ## I18N_OPENXPKI_CERT_SEARCH_CSR_SERIAL_DESCRIPTION
78 </%once>