feed.phtml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php $this->partial ('aside_feed'); ?>
  2. <?php if ($this->flux) { ?>
  3. <div class="post">
  4. <a href="<?php echo _url ('index', 'index'); ?>">← Retour à vos flux RSS</a>
  5. <h1><?php echo $this->flux->name (); ?></h1>
  6. <?php echo $this->flux->description (); ?>
  7. <form method="post" action="<?php echo _url ('configure', 'feed', 'id', $this->flux->id ()); ?>">
  8. <legend>Informations</legend>
  9. <div class="form-group">
  10. <label class="group-name">URL du site</label>
  11. <div class="group-controls">
  12. <span class="control"><a target="_blank" href="<?php echo $this->flux->website (); ?>"><?php echo $this->flux->website (); ?></a></span>
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="group-name">URL du flux</label>
  17. <div class="group-controls">
  18. <span class="control"><a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo $this->flux->url (); ?></a></span>
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="group-name">Nombre d'articles</label>
  23. <div class="group-controls">
  24. <span class="control"><?php echo $this->flux->nbEntries (); ?></span>
  25. </div>
  26. </div>
  27. <legend>Catégorie - <a href="<?php echo _url ('configure', 'categorize'); ?>">gestion</a></legend>
  28. <div class="form-group">
  29. <label class="group-name">Ranger dans une catégorie</label>
  30. <div class="group-controls">
  31. <?php foreach ($this->categories as $cat) { ?>
  32. <label class="radio" for="cat_<?php echo $cat->id (); ?>">
  33. <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"' : ''; ?> />
  34. <?php echo $cat->name (); ?>
  35. </label>
  36. <?php } ?>
  37. </div>
  38. </div>
  39. <legend>Avancé</legend>
  40. <div class="form-group">
  41. <label class="group-name" for="path_entries">Chemin CSS des articles sur le site d'origine</label>
  42. <div class="group-controls">
  43. <input type="text" name="path_entries" id="path_entries" value="<?php echo $this->flux->pathEntries (); ?>" placeholder="Laissez vide pour désactiver" />
  44. <i class="icon i_help"></i> Permet de récupérer les flux tronqués (attention, demande plus de temps !)
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="group-name" for="http_user">Username HTTP</label>
  49. <div class="group-controls">
  50. <input type="text" name="http_user" id="http_user" value="Pas encore implémenté" />
  51. <i class="icon i_help"></i> La connexion permet d'accéder aux flux protégés par une authentification HTTP
  52. </div>
  53. <label class="group-name" for="http_pass">Password HTTP</label>
  54. <div class="group-controls">
  55. <input type="text" name="http_pass" id="http_pass" value="Pas encore implémenté" />
  56. </div>
  57. </div>
  58. <div class="form-group form-actions">
  59. <div class="group-controls">
  60. <button class="btn btn-important">Valider</button>
  61. <button class="btn btn-attention" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>">Supprimer</button>
  62. </div>
  63. </div>
  64. </form>
  65. </div>
  66. <?php } else { ?>
  67. <div class="alert"><span class="alert-head">Aucun flux sélectionné.</span> Pensez à en ajouter !</div>
  68. <?php } ?>