diff options
| author | 2013-10-07 20:01:08 +0200 | |
|---|---|---|
| committer | 2013-10-07 20:01:08 +0200 | |
| commit | a2f5826d67b4070a7bb5358a7d10f0fdc70874c5 (patch) | |
| tree | 8cb15a5ec393e65e8836fa82ae7667e172a5e8d3 | |
| parent | 6eb901acc84ee6c1229492222ca8d2945aaf49d0 (diff) | |
Liste catégories en select à la place de radio
Le changement est maintenant effectif lors de l'ajout d'un flux
| -rw-r--r-- | app/layout/aside_feed.phtml | 15 | ||||
| -rw-r--r-- | public/themes/default/global.css | 5 | ||||
| -rw-r--r-- | public/themes/flat-design/global.css | 5 |
3 files changed, 18 insertions, 7 deletions
diff --git a/app/layout/aside_feed.phtml b/app/layout/aside_feed.phtml index 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.css index 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.css index 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; |
