]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/output/CertificateTable.templ
UPD: Only show revoke checkboxes, if the cert is in an revokable state
[gigi.git] / src / org / cacert / gigi / output / CertificateTable.templ
index 29c53eb0f47359b76f6a6c0ad5e882902fcc52cd..1917d1fe35ae0777cae0c2f414bbf7e8b560fe57 100644 (file)
@@ -1,21 +1,22 @@
-<form method="post">
 <table class="wrapper dataTable">
 <thead><tr>
-<td><?=_Renew/Revoke/Delete?></td>
-<td><?=_Status?></td>
-<td><?=_Email Address?></td>
-<td><?=_SerialNumber?></td>
-<td><?=_Digest?></td>
-<td><?=_Profile?></td>
-<td><?=_Issued?></td>
-<td><?=_Revoked?></td>
-<td><?=_Expires?></td>
-<td><?=_Login?></td>
+<th><?=_Renew/Revoke/Delete?></th>
+<th><?=_Status?></th>
+<th><?=_Email Address?></th>
+<th><?=_SerialNumber?></th>
+<th><?=_Digest?></th>
+<th><?=_Profile?></th>
+<th><?=_Issued?></th>
+<th><?=_Revoked?></th>
+<th><?=_Expires?></th>
+<th><?=_Login?></th>
 </tr></thead>
 <tbody>
 <? foreach($certs) {?>
 <tr>
-       <td><input type='checkbox' name='certs[]' value='<?=$serial?>'></td>
+       <td>
+       <? if($revokable) { ?><input type='checkbox' name='certs[]' value='<?=$serial?>'><? } ?>
+       </td>
        <td><?=$state?></td>
        <td><?=$CN?></td>
        <td><a href='/account/certs/<?=$serial?>'><?=$serial?></a></td>
@@ -29,4 +30,3 @@
 <? } ?>
 </tbody>
 </table>
-</form>