summaryrefslogtreecommitdiff
path: root/data/templates/editprofile-sslclientcerts.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/editprofile-sslclientcerts.tpl.php')
-rw-r--r--data/templates/editprofile-sslclientcerts.tpl.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/data/templates/editprofile-sslclientcerts.tpl.php b/data/templates/editprofile-sslclientcerts.tpl.php
index e6fc5c3..c43def4 100644
--- a/data/templates/editprofile-sslclientcerts.tpl.php
+++ b/data/templates/editprofile-sslclientcerts.tpl.php
@@ -3,6 +3,7 @@
<table>
<thead>
<tr>
+ <th>Options</th>
<th><?php echo T_('Serial'); ?></th>
<th><?php echo T_('Name'); ?></th>
<th><?php echo T_('Email'); ?></th>
@@ -11,7 +12,8 @@
</thead>
<tbody>
<?php foreach($sslClientCerts as $cert) { ?>
- <tr <?php if ($cert->isCurrent()) { echo 'class="ssl-current"'; } ?>>
+ <tr <?php if ($cert->isCurrent()) { echo 'class="ssl-current"'; } ?>>
+ <td><a href="#FIXME">delete</a></td>
<td><?php echo htmlspecialchars($cert->sslSerial); ?></td>
<td><?php echo htmlspecialchars($cert->sslName); ?></td>
<td><?php echo htmlspecialchars($cert->sslEmail); ?></td>
@@ -23,3 +25,17 @@
<?php } else { ?>
<p><?php echo T_('No certificates registered'); ?></p>
<?php } ?>
+
+<?php if ($currentCert) { ?>
+ <?php if ($currentCert->isRegistered($sslClientCerts)) { ?>
+ <p><?php echo T_('Your current certificate is already registered with your account.'); ?></p>
+ <?php } else { ?>
+ <p>
+ <a href="#FIXME">
+ <?php echo T_('Register current certificate to automatically login.'); ?>
+ </a>
+ </p>
+ <?php } ?>
+<?php } else { ?>
+ <p><?php echo T_('Your browser does not provide a certificate.'); ?></p>
+<?php } ?>