aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/media.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-01-23 01:18:33 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-01-23 01:18:33 +0100
commita66df8c97f4aa70977b25478fc3b6413ebd9b9db (patch)
tree564670e31f82083411dd6749ccfb27f5038907fe /app/view/templates/media.php
parent11c729472634682fbcaa40caa5c510d490acfa4a (diff)
downloadwcms-a66df8c97f4aa70977b25478fc3b6413ebd9b9db.tar.gz
wcms-a66df8c97f4aa70977b25478fc3b6413ebd9b9db.zip
new media types
Diffstat (limited to 'app/view/templates/media.php')
-rw-r--r--app/view/templates/media.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/app/view/templates/media.php b/app/view/templates/media.php
index 1f70d35..ba385cb 100644
--- a/app/view/templates/media.php
+++ b/app/view/templates/media.php
@@ -1,4 +1,8 @@
-<?php $this->layout('layout', ['title' => 'media', 'css' => $css . 'home.css']) ?>
+<?php
+
+use Wcms\Model;
+
+$this->layout('layout', ['title' => 'media', 'css' => $css . 'home.css']) ?>
<?php $this->start('page') ?>
@@ -39,12 +43,7 @@
<form action="" method="get">
<fieldset>
<legend>Type</legend>
- <ul>
- <li><input type="checkbox" name="type[]" id="image" value="image" <?= in_array('image', $mediaopt->type()) ? 'checked' : '' ?>><label for="image">image</label></li>
- <li><input type="checkbox" name="type[]" id="sound" value="sound" <?= in_array('sound', $mediaopt->type()) ? 'checked' : '' ?>><label for="sound">sound</label></li>
- <li><input type="checkbox" name="type[]" id="video" value="video" <?= in_array('video', $mediaopt->type()) ? 'checked' : '' ?>><label for="video">video</label></li>
- <li><input type="checkbox" name="type[]" id="other" value="other" <?= in_array('other', $mediaopt->type()) ? 'checked' : '' ?>><label for="other">other</label></li>
- </ul>
+ <?= checkboxes('type', Model::mediatypes(), $mediaopt->type()) ?>
</fieldset>
<fieldset>
<legend>Sort</legend>