diff options
Diffstat (limited to 'app/view/templates/homeopt.php')
-rw-r--r-- | app/view/templates/homeopt.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php index 5dab881..4008a71 100644 --- a/app/view/templates/homeopt.php +++ b/app/view/templates/homeopt.php @@ -84,16 +84,16 @@ if ($in = true || $out = true) { <h2>Columns</h2> -<form action="" method="post"> +<form action="<?= $this->url('homecolumns') ?>" method="post"> <ul> <?php -foreach ($opt->col() as $col) { +foreach (Model::COLUMNS as $col) { ?> <li> - <input type="checkbox" name="col[]" id="col_<?= $col ?>"> + <input type="checkbox" name="columns[]" value="<?= $col ?>" id="col_<?= $col ?>" <?= in_array($col, $user->columns()) ? 'checked' : '' ?>> <label for="col_<?= $col ?>"><?= $col ?></label> </li> <?php @@ -103,6 +103,8 @@ foreach ($opt->col() as $col) { </ul> +<input type="submit" value="update columns"> + </form> <?php } ?> |