aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/homeopt.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-01-22 02:04:53 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-22 02:04:53 +0100
commit695908c7ab2a5d5f011f616d2af3368da7131a6f (patch)
treecbd6c2a43495e77863d3611e2f6b12985b1111d8 /app/view/templates/homeopt.php
parenta8ed9070e7773f3147a33dbee7d45ce24bd8959d (diff)
downloadwcms-695908c7ab2a5d5f011f616d2af3368da7131a6f.tar.gz
wcms-695908c7ab2a5d5f011f616d2af3368da7131a6f.zip
home columns and download function added
Diffstat (limited to 'app/view/templates/homeopt.php')
-rw-r--r--app/view/templates/homeopt.php8
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 } ?>