summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-05-10 15:23:58 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-05-10 15:23:58 +0200
commitc13689813e71413f3c98664568c47c167c00580a (patch)
tree1dc202379157c1c5926d251b13a148238db249fc /data/templates
parent967ba79ece58dd0164accbf46078964c58fec230 (diff)
downloadsemanticscuttle-c13689813e71413f3c98664568c47c167c00580a.tar.gz
semanticscuttle-c13689813e71413f3c98664568c47c167c00580a.tar.bz2
prepare user interface to register and delete client certificates on the profile page
Diffstat (limited to 'data/templates')
-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 } ?>