summaryrefslogtreecommitdiffstats
path: root/application/views/user/apikeys.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/user/apikeys.php')
-rw-r--r--application/views/user/apikeys.php62
1 files changed, 32 insertions, 30 deletions
diff --git a/application/views/user/apikeys.php b/application/views/user/apikeys.php
index aa268d678..872eb9ef0 100644
--- a/application/views/user/apikeys.php
+++ b/application/views/user/apikeys.php
@@ -1,36 +1,38 @@
<h2>API keys</h2>
-<table class="table table-striped">
- <thead>
- <tr>
- <th>#</th>
- <th>Key</th>
- <th style="width: 30%;">Comment</th>
- <th>Created on</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <?php $i = 1; ?>
- <?php foreach($query as $key => $item): ?>
+<div class="table-responsive">
+ <table class="table table-striped">
+ <thead>
<tr>
- <td><?php echo $i++; ?></td>
- <td><?php echo $item["key"]; ?></td>
- <td><?php echo htmlentities($item["comment"]); ?></td>
- <td><?php echo date("Y/m/d H:i", $item["created"]); ?></td>
- <td>
- <?php echo form_open("user/delete_apikey", array("style" => "margin-bottom: 0")); ?>
- <?php echo form_hidden("key", $item["key"]); ?>
- <button class="btn btn-danger btn-mini" type="submit">Delete</input>
- </form>
- </td>
+ <th>#</th>
+ <th>Key</th>
+ <th style="width: 30%;">Comment</th>
+ <th>Created on</th>
+ <th></th>
</tr>
- <?php endforeach; ?>
- </tbody>
-</table>
+ </thead>
+ <tbody>
+ <?php $i = 1; ?>
+ <?php foreach($query as $key => $item): ?>
+ <tr>
+ <td><?php echo $i++; ?></td>
+ <td><?php echo $item["key"]; ?></td>
+ <td><?php echo htmlentities($item["comment"]); ?></td>
+ <td><?php echo date("Y/m/d H:i", $item["created"]); ?></td>
+ <td>
+ <?php echo form_open("user/delete_apikey", array("style" => "margin-bottom: 0")); ?>
+ <?php echo form_hidden("key", $item["key"]); ?>
+ <button class="btn btn-danger btn-xs" type="submit">Delete</input>
+ </form>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ </tbody>
+ </table>
+</div>
<p>
- <?php echo form_open('user/create_apikey', array("class" => "form-horizontal")); ?>
- <input type="text" name="comment" placeholder="Comment" />
- <input class="btn btn-primary" type="submit" value="Create a new key" name="process" />
- </form>
+ <?php echo form_open('user/create_apikey', array("class" => "form-inline")); ?>
+ <input type="text" name="comment" placeholder="Comment" class="form-control" style="width: 200px;"/>
+ <input class="btn btn-primary" type="submit" value="Create a new key" name="process" />
+</form>
</p>