summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-05-11 06:48:40 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-05-11 06:48:40 +0200
commit73792c5807238045b426177a848f5a2cb429bb7c (patch)
treea8ba57ffaad057c8a80aa5bdbaf6355319296abe
parent9d91f1bee197f8f23547eb81080f2fff22cb49db (diff)
downloadsemanticscuttle-73792c5807238045b426177a848f5a2cb429bb7c.tar.gz
semanticscuttle-73792c5807238045b426177a848f5a2cb429bb7c.tar.bz2
document template parameters and correct form action
-rw-r--r--data/templates/editprofile-sslclientcerts.tpl.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/data/templates/editprofile-sslclientcerts.tpl.php b/data/templates/editprofile-sslclientcerts.tpl.php
index 246fb73..900c193 100644
--- a/data/templates/editprofile-sslclientcerts.tpl.php
+++ b/data/templates/editprofile-sslclientcerts.tpl.php
@@ -1,3 +1,13 @@
+<?php
+/**
+ * User's own profile page: SSL client certificate settings
+ *
+ * @param array $sslClientCerts Array of SSL client certificate objects
+ * @param string $formaction URL where to send the forms to
+ * @param SemanticScuttle_Model_User_SslClientCert
+ * $currentCert Current SSL client certificate (may be null)
+ */
+?>
<h3><?php echo T_('SSL client certificates'); ?></h3>
<?php if (count($sslClientCerts)) { ?>
<table>
@@ -14,7 +24,8 @@
<?php foreach($sslClientCerts as $cert) { ?>
<tr <?php if ($cert->isCurrent()) { echo 'class="ssl-current"'; } ?>>
<td>
- <form method="post" action="#FIXME">
+ <form method="post" action="<?php echo $formaction; ?>">
+ <input type="hidden" name="certId" value="<?php echo $cert->id; ?>"/>
<button type="submit" name="action" value="deleteClientCert">
<?php echo T_('delete'); ?>
</button>
@@ -37,7 +48,7 @@
<p><?php echo T_('Your current certificate is already registered with your account.'); ?></p>
<?php } else { ?>
<p>
- <form method="post" action="#FIXME">
+ <form method="post" action="<?php echo $formaction; ?>">
<button type="submit" name="action" value="registerCurrentCert">
<?php echo T_('Register current certificate to automatically login.'); ?>
</button>