feed.phtml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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">Nombre d'articles</label>
  16. <div class="group-controls">
  17. <span class="control"><?php echo $this->flux->nbEntries (); ?></span>
  18. </div>
  19. </div>
  20. <?php if (!empty ($this->categories)) { ?>
  21. <div class="form-group">
  22. <label class="group-name">Ranger dans une catégorie</label>
  23. <div class="group-controls">
  24. <?php foreach ($this->categories as $cat) { ?>
  25. <label class="radio" for="cat_<?php echo $cat->id (); ?>">
  26. <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"' : ''; ?> />
  27. <?php echo $cat->name (); ?>
  28. </label>
  29. <?php } ?>
  30. </div>
  31. </div>
  32. <div class="form-group form-actions">
  33. <div class="group-controls">
  34. <button class="btn btn-important">Valider</button>
  35. <?php } else { ?>
  36. <div class="form-group">
  37. <div class="group-controls">
  38. <?php } ?>
  39. <button class="btn btn-attention" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>">Supprimer</button>
  40. </div>
  41. </div>
  42. </form>
  43. </div>
  44. <?php } else { ?>
  45. <div class="alert"><span class="alert-head">Aucun flux sélectionné.</span> Pensez à en ajouter !</div>
  46. <?php } ?>