diff options
| author | 2012-10-30 22:01:04 +0100 | |
|---|---|---|
| committer | 2012-10-30 22:01:04 +0100 | |
| commit | 59d80a74282599afeda4f225bd1adf9f23c505de (patch) | |
| tree | 55ec081958c31615ffa3ecd48fd28c8241c4045f /app/views | |
| parent | ce36a3fbd2f4d10972dd4d15a05ed7a596c06485 (diff) | |
Fix issue #5 : menu tout le temps visible
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/configure/categorize.phtml | 26 | ||||
| -rw-r--r-- | app/views/configure/display.phtml | 86 | ||||
| -rw-r--r-- | app/views/configure/feed.phtml | 2 | ||||
| -rw-r--r-- | app/views/configure/importExport.phtml | 19 | ||||
| -rw-r--r-- | app/views/configure/shortcut.phtml | 64 |
5 files changed, 107 insertions, 90 deletions
diff --git a/app/views/configure/categorize.phtml b/app/views/configure/categorize.phtml index 093ec1dcf..9f03c187f 100644 --- a/app/views/configure/categorize.phtml +++ b/app/views/configure/categorize.phtml @@ -1,14 +1,18 @@ -<form method="post" action=""> - <h1>Gérer les catégories</h1> +<div class="table"> + <?php $this->partial ('configure_aside'); ?> + + <form method="post" action=""> + <h1>Gérer les catégories</h1> - <?php $i = 0; foreach ($this->categories as $cat) { $i++; ?> - <label for="cat_<?php echo $cat->id (); ?>">Catégorie n°<?php echo $i; ?></label> - <input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" /> - <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" /> - <?php } ?> + <?php $i = 0; foreach ($this->categories as $cat) { $i++; ?> + <label for="cat_<?php echo $cat->id (); ?>">Catégorie n°<?php echo $i; ?></label> + <input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" /> + <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" /> + <?php } ?> - <label for="new_category">Ajouter une catégorie</label> - <input type="text" id="new_category" name="new_category" placeholder="Nouvelle catégorie" /> + <label for="new_category">Ajouter une catégorie</label> + <input type="text" id="new_category" name="new_category" placeholder="Nouvelle catégorie" /> - <input type="submit" value="Valider" /> -</form> + <input type="submit" value="Valider" /> + </form> +</div> diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index 089533aff..b468839c2 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -1,43 +1,47 @@ -<form method="post" action=""> - <h1>Configuration générale</h1> - - <label for="old_entries">Supprimer les articles au bout de (mois)</label> - <input type="number" id="old_entries" name="old_entries" value="<?php echo $this->conf->oldEntries (); ?>" /> - - <label for="mail_login">Adresse mail de connexion (utilise <a href="https://persona.org/">Persona</a>)</label> - <p><noscript>nécessite que javascript soit activé</noscript></p> - <?php $mail = $this->conf->mailLogin (); ?> - <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="Laissez vide pour désactiver" /> - <br /> - - <h1>Configuration de l'affichage</h1> - - <label for="posts_per_page">Nombre d'articles par page</label> - <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" /> - - <label>Vue par défaut</label> - <div class="radio_group"> - <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->defaultView () == 'all' ? ' checked="checked"' : ''; ?> /> - <label for="radio_all">Tout afficher</label> - <br /> - <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->defaultView () == 'not_read' ? ' checked="checked"' : ''; ?> /> - <label for="radio_not_read">Afficher les non lus</label> - </div> - - <label for="sort_order">Ordre de tri</label> - <select name="sort_order" id="sort_order"> - <option value="low_to_high"<?php echo $this->conf->sortOrder () == 'low_to_high' ? ' selected="selected"' : ''; ?>>Du plus récent au plus ancien</option> - <option value="high_to_low"<?php echo $this->conf->sortOrder () == 'high_to_low' ? ' selected="selected"' : ''; ?>>Du plus ancien au plus récent</option> - </select> - - <label>Afficher les articles dépliés par défaut</label> - <div class="radio_group"> - <input type="radio" name="display_posts" id="radio_yes" value="yes"<?php echo $this->conf->displayPosts () == 'yes' ? ' checked="checked"' : ''; ?> /> - <label for="radio_yes">Oui</label> +<div class="table"> + <?php $this->partial ('configure_aside'); ?> + + <form method="post" action=""> + <h1>Configuration générale</h1> + + <label for="old_entries">Supprimer les articles au bout de (mois)</label> + <input type="number" id="old_entries" name="old_entries" value="<?php echo $this->conf->oldEntries (); ?>" /> + + <label for="mail_login">Adresse mail de connexion (utilise <a href="https://persona.org/">Persona</a>)</label> + <p><noscript>nécessite que javascript soit activé</noscript></p> + <?php $mail = $this->conf->mailLogin (); ?> + <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="Laissez vide pour désactiver" /> <br /> - <input type="radio" name="display_posts" id="radio_no" value="no"<?php echo $this->conf->displayPosts () == 'no' ? ' checked="checked"' : ''; ?> /> - <label for="radio_no">Non<noscript> - <strong>nécessite que javascript soit activé</strong></noscript></label> - </div> - <input type="submit" value="Valider" /> -</form> + <h1>Configuration de l'affichage</h1> + + <label for="posts_per_page">Nombre d'articles par page</label> + <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" /> + + <label>Vue par défaut</label> + <div class="radio_group"> + <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->defaultView () == 'all' ? ' checked="checked"' : ''; ?> /> + <label for="radio_all">Tout afficher</label> + <br /> + <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->defaultView () == 'not_read' ? ' checked="checked"' : ''; ?> /> + <label for="radio_not_read">Afficher les non lus</label> + </div> + + <label for="sort_order">Ordre de tri</label> + <select name="sort_order" id="sort_order"> + <option value="low_to_high"<?php echo $this->conf->sortOrder () == 'low_to_high' ? ' selected="selected"' : ''; ?>>Du plus récent au plus ancien</option> + <option value="high_to_low"<?php echo $this->conf->sortOrder () == 'high_to_low' ? ' selected="selected"' : ''; ?>>Du plus ancien au plus récent</option> + </select> + + <label>Afficher les articles dépliés par défaut</label> + <div class="radio_group"> + <input type="radio" name="display_posts" id="radio_yes" value="yes"<?php echo $this->conf->displayPosts () == 'yes' ? ' checked="checked"' : ''; ?> /> + <label for="radio_yes">Oui</label> + <br /> + <input type="radio" name="display_posts" id="radio_no" value="no"<?php echo $this->conf->displayPosts () == 'no' ? ' checked="checked"' : ''; ?> /> + <label for="radio_no">Non<noscript> - <strong>nécessite que javascript soit activé</strong></noscript></label> + </div> + + <input type="submit" value="Valider" /> + </form> +</div> diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml index 582457b63..54867ba9a 100644 --- a/app/views/configure/feed.phtml +++ b/app/views/configure/feed.phtml @@ -1,4 +1,6 @@ <div class="table"> + <?php $this->partial ('configure_aside'); ?> + <div class="aside"> <ul> <li><h2>Vox flux RSS</h2></li> diff --git a/app/views/configure/importExport.phtml b/app/views/configure/importExport.phtml index c8ee6b7f1..03e4746ac 100644 --- a/app/views/configure/importExport.phtml +++ b/app/views/configure/importExport.phtml @@ -11,14 +11,17 @@ </body> </opml> <?php } else { ?> +<div class="table"> + <?php $this->partial ('configure_aside'); ?> -<form method="post" action="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'import'))); ?>" enctype="multipart/form-data"> - <h1>Exporter au format OPML</h1> - <button formaction="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'export'))); ?>">Exporter</button> + <form method="post" action="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'import'))); ?>" enctype="multipart/form-data"> + <h1>Exporter au format OPML</h1> + <button formaction="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'export'))); ?>">Exporter</button> - <h1>Importer au format OPML</h1> - <label for="file">Fichier</label> - <input type="file" name="file" id="file" /> - <input type="submit" value="Charger" /> -</form> + <h1>Importer au format OPML</h1> + <label for="file">Fichier</label> + <input type="file" name="file" id="file" /> + <input type="submit" value="Charger" /> + </form> +</div> <?php } ?> diff --git a/app/views/configure/shortcut.phtml b/app/views/configure/shortcut.phtml index cf8af7ff9..eeaa89cda 100644 --- a/app/views/configure/shortcut.phtml +++ b/app/views/configure/shortcut.phtml @@ -1,41 +1,45 @@ -<datalist id="keys"> - <?php foreach ($this->list_keys as $key) { ?> - <option value="<?php echo $key; ?>"> - <?php } ?> -</datalist> +<div class="table"> + <?php $this->partial ('configure_aside'); ?> -<?php $s = $this->conf->shortcuts (); ?> + <datalist id="keys"> + <?php foreach ($this->list_keys as $key) { ?> + <option value="<?php echo $key; ?>"> + <?php } ?> + </datalist> -<form method="post" action=""> - <h1>Gérer les raccourcis</h1> + <?php $s = $this->conf->shortcuts (); ?> + + <form method="post" action=""> + <h1>Gérer les raccourcis</h1> - <noscript>Le javascript doit être activé pour pouvoir utiliser les raccourcis</noscript> + <noscript>Le javascript doit être activé pour pouvoir utiliser les raccourcis</noscript> - <label for="mark_read">Marquer l'article comme lu / non lu</label> - <input type="text" id="mark_read" name="shortcuts[mark_read]" list="keys" value="<?php echo $s['mark_read']; ?>" /> - <p>+ <code>shift</code> pour marquer tous les articles comme non lus</p> + <label for="mark_read">Marquer l'article comme lu / non lu</label> + <input type="text" id="mark_read" name="shortcuts[mark_read]" list="keys" value="<?php echo $s['mark_read']; ?>" /> + <p>+ <code>shift</code> pour marquer tous les articles comme non lus</p> - <label for="mark_favorite">Mettre l'article en favori</label> - <input type="text" id="mark_favorite" name="shortcuts[mark_favorite]" list="keys" value="<?php echo $s['mark_favorite']; ?>" /> + <label for="mark_favorite">Mettre l'article en favori</label> + <input type="text" id="mark_favorite" name="shortcuts[mark_favorite]" list="keys" value="<?php echo $s['mark_favorite']; ?>" /> - <label for="go_website">Afficher l'article sur le site d'origine</label> - <input type="text" id="go_website" name="shortcuts[go_website]" list="keys" value="<?php echo $s['go_website']; ?>" /> + <label for="go_website">Afficher l'article sur le site d'origine</label> + <input type="text" id="go_website" name="shortcuts[go_website]" list="keys" value="<?php echo $s['go_website']; ?>" /> - <label for="next_entry">Passer à l'article suivant</label> - <input type="text" id="next_entry" name="shortcuts[next_entry]" list="keys" value="<?php echo $s['next_entry']; ?>" /> - <p>+ <code>shift</code> pour passer au dernier article de la page</p> + <label for="next_entry">Passer à l'article suivant</label> + <input type="text" id="next_entry" name="shortcuts[next_entry]" list="keys" value="<?php echo $s['next_entry']; ?>" /> + <p>+ <code>shift</code> pour passer au dernier article de la page</p> - <label for="prev_entry">Passer à l'article précédent</label> - <input type="text" id="prev_entry" name="shortcuts[prev_entry]" list="keys" value="<?php echo $s['prev_entry']; ?>" /> - <p>+ <code>shift</code> pour passer au premier article de la page</p> + <label for="prev_entry">Passer à l'article précédent</label> + <input type="text" id="prev_entry" name="shortcuts[prev_entry]" list="keys" value="<?php echo $s['prev_entry']; ?>" /> + <p>+ <code>shift</code> pour passer au premier article de la page</p> - <label for="next_page">Passer à la page suivant</label> - <input type="text" id="next_page" name="shortcuts[next_page]" list="keys" value="<?php echo $s['next_page']; ?>" /> - <p>+ <code>shift</code> pour passer à la dernière page</p> + <label for="next_page">Passer à la page suivant</label> + <input type="text" id="next_page" name="shortcuts[next_page]" list="keys" value="<?php echo $s['next_page']; ?>" /> + <p>+ <code>shift</code> pour passer à la dernière page</p> - <label for="prev_page">Passer à la page précédente</label> - <input type="text" id="prev_page" name="shortcuts[prev_page]" list="keys" value="<?php echo $s['prev_page']; ?>" /> - <p>+ <code>shift</code> pour passer à la première page</p> + <label for="prev_page">Passer à la page précédente</label> + <input type="text" id="prev_page" name="shortcuts[prev_page]" list="keys" value="<?php echo $s['prev_page']; ?>" /> + <p>+ <code>shift</code> pour passer à la première page</p> - <input type="submit" value="Valider" /> -</form> + <input type="submit" value="Valider" /> + </form> +</div> |
