A free, self-hostable news aggregator…
Liste catégories en select à la place de radio
Marien Fressinauda2f5826d67b4
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtmlindex 4c56d12fc..cab6944e2 100644--- a/app/layout/aside_feed.phtml+++ b/app/layout/aside_feed.phtml@@ -13,14 +13,15 @@<li class="dropdown-header"><?php echo Translate::t ('category'); ?></li>- <?php foreach ($this->categories as $cat) { ?>- <li class="item">- <label class="radio" for="radio_<?php echo $cat->id (); ?>">- <input type="radio" name="category" id="radio_<?php echo $cat->id (); ?>" value="<?php echo $cat->id (); ?>"<?php echo $cat->id ()=='000000' ? ' checked="checked"' : ''; ?>/>- <?php echo $cat->name (); ?>- </label>+ <li class="input">+ <select name="category" id="category">+ <?php foreach ($this->categories as $cat) { ?>+ <option value="<?php echo $cat->id (); ?>"<?php echo $cat->id () == '000000' ? ' selected="selected"' : ''; ?>>+ <?php echo $cat->name (); ?>+ </option>+ <?php } ?>+ </select></li>- <?php } ?><li class="separator"></li>diff --git a/public/themes/default/global.css b/public/themes/default/global.cssindex e65816a28..0fc0f835e 100644--- a/public/themes/default/global.css+++ b/public/themes/default/global.css@@ -386,6 +386,7 @@ input, select, textarea {font-size: 90%;line-height: 30px;}+ .dropdown .dropdown-menu .input select,.dropdown .dropdown-menu .input input {display: block;height: 20px;@@ -394,6 +395,10 @@ input, select, textarea {padding: 2px 5px;border-radius: 3px;}+ .dropdown .dropdown-menu .input select {+ width: 70%;+ height: auto;+ }.dropdown .dropdown-menu .separator {display: block;height: 0;diff --git a/public/themes/flat-design/global.css b/public/themes/flat-design/global.cssindex e988fdcff..f24966b33 100644--- a/public/themes/flat-design/global.css+++ b/public/themes/flat-design/global.css@@ -380,6 +380,7 @@ input, select, textarea {.dropdown .dropdown-menu label {font-weight: normal;}+ .dropdown .dropdown-menu .input select,.dropdown .dropdown-menu .input input {display: block;height: 20px;@@ -388,6 +389,10 @@ input, select, textarea {padding: 2px 5px;border-radius: 3px;}+ .dropdown .dropdown-menu .input select {+ width: 70%;+ height: auto;+ }.dropdown .dropdown-menu .separator {display: block;height: 0;