feed.phtml 2.6 KB

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