diff options
| author | 2013-08-18 15:36:58 +0200 | |
|---|---|---|
| committer | 2013-08-18 15:36:58 +0200 | |
| commit | 2c764af215fca00cbb02295829f028bdeeae0325 (patch) | |
| tree | dfeb823bd93f48fd17330d38e241f1ff780566ff /app/views | |
| parent | 37b641966f4a550637421c345e5013cf24645226 (diff) | |
Organisation page configuration (issue #97)
Réorganisation de quelques options, mise en évidence des groupes
d'option
Changement des flux de catégorie via <select /> et non plus via liste de
<radio />
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/configure/display.phtml | 28 | ||||
| -rw-r--r-- | app/views/configure/feed.phtml | 11 |
2 files changed, 20 insertions, 19 deletions
diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index 2516f2692..932425604 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -19,6 +19,19 @@ </div> <div class="form-group"> + <label class="group-name" for="theme"><?php echo Translate::t ('theme'); ?></label> + <div class="group-controls"> + <select name="theme" id="theme"> + <?php foreach ($this->themes as $theme) { ?> + <option value="<?php echo $theme['path']; ?>"<?php echo $this->conf->theme () == $theme['path'] ? ' selected="selected"' : ''; ?>> + <?php echo $theme['name'] . ' ' . Translate::t ('by') . ' ' . $theme['author']; ?> + </option> + <?php } ?> + </select> + </div> + </div> + + <div class="form-group"> <label class="group-name" for="old_entries"><?php echo Translate::t ('delete_articles_every'); ?></label> <div class="group-controls"> <input type="number" id="old_entries" name="old_entries" value="<?php echo $this->conf->oldEntries (); ?>" /> <?php echo Translate::t ('month'); ?> @@ -41,19 +54,6 @@ <legend><?php echo Translate::t ('reading_configuration'); ?></legend> <div class="form-group"> - <label class="group-name" for="theme"><?php echo Translate::t ('themes'); ?></label> - <div class="group-controls"> - <select name="theme" id="theme"> - <?php foreach ($this->themes as $theme) { ?> - <option value="<?php echo $theme['path']; ?>"<?php echo $this->conf->theme () == $theme['path'] ? ' selected="selected"' : ''; ?>> - <?php echo $theme['name'] . ' ' . Translate::t ('by') . ' ' . $theme['author']; ?> - </option> - <?php } ?> - </select> - </div> - </div> - - <div class="form-group"> <label class="group-name" for="posts_per_page"><?php echo Translate::t ('articles_per_page'); ?></label> <div class="group-controls"> <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" /> @@ -71,7 +71,7 @@ </div> <div class="form-group"> - <label class="group-name"><?php echo Translate::t ('default_view'); ?></label> + <label class="group-name" for="view_mode"><?php echo Translate::t ('default_view'); ?></label> <div class="group-controls"> <select name="view_mode" id="view_mode"> <option value="normal"<?php echo $this->conf->viewMode () == 'normal' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('normal_view'); ?></option> diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml index ec2ff3bdb..d2d978f54 100644 --- a/app/views/configure/feed.phtml +++ b/app/views/configure/feed.phtml @@ -46,16 +46,17 @@ </div> </div> - <legend><?php echo Translate::t ('category'); ?> - <a href="<?php echo _url ('configure', 'categorize'); ?>"><?php echo Translate::t ('categories_management'); ?></a></legend> <div class="form-group"> - <label class="group-name"><?php echo Translate::t ('categorize'); ?></label> + <label class="group-name" for="category"><?php echo Translate::t ('category'); ?></label> <div class="group-controls"> + <select name="category" id="category"> <?php foreach ($this->categories as $cat) { ?> - <label class="radio" for="cat_<?php echo $cat->id (); ?>"> - <input type="radio" name="category" id="cat_<?php echo $cat->id (); ?>" value="<?php echo $cat->id (); ?>"<?php echo $cat->id () == $this->flux->category () ? ' checked="checked"' : ''; ?> /> + <option value="<?php echo $cat->id (); ?>"<?php echo $cat->id ()== $this->flux->category () ? ' selected="selected"' : ''; ?>> <?php echo $cat->name (); ?> - </label> + </option> <?php } ?> + </select> + <a href="<?php echo _url ('configure', 'categorize'); ?>"><?php echo Translate::t ('categories_management'); ?></a> </div> </div> |
