feed.phtml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 form-actions">
  48. <div class="group-controls">
  49. <button class="btn btn-important">Valider</button>
  50. <button class="btn btn-attention" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>">Supprimer</button>
  51. </div>
  52. </div>
  53. </form>
  54. </div>
  55. <?php } else { ?>
  56. <div class="alert"><span class="alert-head">Aucun flux sélectionné.</span> Pensez à en ajouter !</div>
  57. <?php } ?>