aboutsummaryrefslogtreecommitdiff
path: root/templates/tokens.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-10-07 07:51:07 +0200
committerChristian Weiske <cweiske@cweiske.de>2014-10-07 07:51:07 +0200
commitace226e665fa77d04a61dfd61818f6cce5df6861 (patch)
tree1008ad783d7e94249cf4b4103e41ecdf25ba2591 /templates/tokens.php
parentb77c4b6b2de74543d9543139a1d2b3c4fe2f592f (diff)
downloadgrauphel-ace226e665fa77d04a61dfd61818f6cce5df6861.tar.gz
grauphel-ace226e665fa77d04a61dfd61818f6cce5df6861.zip
Deleting tokens works (without confirmation)
Diffstat (limited to 'templates/tokens.php')
-rw-r--r--templates/tokens.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/tokens.php b/templates/tokens.php
index 7707516..48e5998 100644
--- a/templates/tokens.php
+++ b/templates/tokens.php
@@ -11,7 +11,6 @@
<th>Token</th>
<th>Client</th>
<th>Last use</th>
- <th>Actions</th>
</tr>
</thead>
<tbody>
@@ -19,8 +18,13 @@
<tr>
<td><?php p($token->tokenKey); ?></td>
<td title="<?php p($token->client); ?>"><?php p($_['client']->getNiceName($token->client)); ?></td>
- <td><?php p(\OCP\Util::formatDate($token->lastuse)); ?></td>
- <td>Disable Delete</td>
+ <td>
+ <?php p(\OCP\Util::formatDate($token->lastuse)); ?>
+ <form method="POST" action="<?php p(OCP\Util::linkToRoute('grauphel.token.delete', array('username' => $_['username'], 'tokenKey' => $token->tokenKey))); ?>">
+ <input type="hidden" name="delete" value="1" />
+ <button type="submit" class="icon-delete delete action" original-title="Delete"/>
+ </form>
+ </td>
</tr>
<?php } ?>
</tbody>