display.phtml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php $this->partial ('aside_configure'); ?>
  2. <div class="table">
  3. <form method="post" action="">
  4. <h1>Configuration générale</h1>
  5. <label for="old_entries">Supprimer les articles au bout de (mois)</label>
  6. <input type="number" id="old_entries" name="old_entries" value="<?php echo $this->conf->oldEntries (); ?>" />
  7. <label for="mail_login">Adresse mail de connexion (utilise <a href="https://persona.org/">Persona</a>)</label>
  8. <p><noscript>nécessite que javascript soit activé</noscript></p>
  9. <?php $mail = $this->conf->mailLogin (); ?>
  10. <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="Laissez vide pour désactiver" />
  11. <br />
  12. <h1>Configuration de l'affichage</h1>
  13. <label for="posts_per_page">Nombre d'articles par page</label>
  14. <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" />
  15. <label>Vue par défaut</label>
  16. <div class="radio_group">
  17. <label for="radio_all">
  18. <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->defaultView () == 'all' ? ' checked="checked"' : ''; ?> />
  19. Tout afficher
  20. </label>
  21. <label for="radio_not_read">
  22. <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->defaultView () == 'not_read' ? ' checked="checked"' : ''; ?> />
  23. Afficher les non lus
  24. </label>
  25. </div>
  26. <label for="sort_order">Ordre de tri</label>
  27. <select name="sort_order" id="sort_order">
  28. <option value="low_to_high"<?php echo $this->conf->sortOrder () == 'low_to_high' ? ' selected="selected"' : ''; ?>>Du plus récent au plus ancien</option>
  29. <option value="high_to_low"<?php echo $this->conf->sortOrder () == 'high_to_low' ? ' selected="selected"' : ''; ?>>Du plus ancien au plus récent</option>
  30. </select>
  31. <label>Afficher les articles dépliés par défaut</label>
  32. <div class="radio_group">
  33. <label for="radio_yes">
  34. <input type="radio" name="display_posts" id="radio_yes" value="yes"<?php echo $this->conf->displayPosts () == 'yes' ? ' checked="checked"' : ''; ?> />
  35. Oui
  36. </label>
  37. <label for="radio_no">
  38. <input type="radio" name="display_posts" id="radio_no" value="no"<?php echo $this->conf->displayPosts () == 'no' ? ' checked="checked"' : ''; ?> />
  39. Non<noscript> - <strong>nécessite que javascript soit activé</strong></noscript>
  40. </label>
  41. </div>
  42. <button class="btn btn-important">Valider</button>
  43. </form>
  44. </div>