diff options
author | Markus Cisler <m@kuchen.io> | 2013-09-25 12:38:32 +0200 |
---|---|---|
committer | Markus Cisler <m@kuchen.io> | 2013-09-25 12:38:32 +0200 |
commit | 4340ea3039362867aba32b173b212e762e293f80 (patch) | |
tree | 43b9e1d3ae504d887b82c0d595c5aca3e474bea9 /application/views/user | |
parent | 8e7db58e04368b3a5da1a62a43d5439aee96ca7d (diff) |
Make tables responsive
Diffstat (limited to 'application/views/user')
-rw-r--r-- | application/views/user/apikeys.php | 54 | ||||
-rw-r--r-- | application/views/user/invite.php | 36 |
2 files changed, 47 insertions, 43 deletions
diff --git a/application/views/user/apikeys.php b/application/views/user/apikeys.php index 02a11767c..872eb9ef0 100644 --- a/application/views/user/apikeys.php +++ b/application/views/user/apikeys.php @@ -1,32 +1,34 @@ <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-xs" 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-inline")); ?> diff --git a/application/views/user/invite.php b/application/views/user/invite.php index 5cea4e742..d3e2fb7a6 100644 --- a/application/views/user/invite.php +++ b/application/views/user/invite.php @@ -10,25 +10,27 @@ </div> <h2>Unused invitation keys</h2> -<table class="table table-striped"> - <thead> - <tr> - <th>#</th> - <th style="width: 70%;">Key</th> - <th>Created on</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 anchor("user/register/".$item["key"], $item["key"]) ?></td> - <td><?php echo date("Y/m/d H:i", $item["date"]) ?></td> + <th>#</th> + <th style="width: 70%;">Key</th> + <th>Created on</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 anchor("user/register/".$item["key"], $item["key"]) ?></td> + <td><?php echo date("Y/m/d H:i", $item["date"]) ?></td> + </tr> + <?php endforeach; ?> + </tbody> + </table> +</div> <p> <?php echo form_open('user/create_invitation_key'); ?> |