4
0

feed.phtml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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="priority">Afficher dans le flux principal</label>
  42. <div class="group-controls">
  43. <label class="checkbox" for="priority">
  44. <input type="checkbox" name="priority" id="priority" value="10"<?php echo $this->flux->priority () > 0 ? ' checked="checked"' : ''; ?> />
  45. Oui
  46. </label>
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label class="group-name" for="path_entries">Chemin CSS des articles sur le site d'origine</label>
  51. <div class="group-controls">
  52. <input type="text" name="path_entries" id="path_entries" value="<?php echo $this->flux->pathEntries (); ?>" placeholder="Laissez vide pour désactiver" />
  53. <i class="icon i_help"></i> Permet de récupérer les flux tronqués (attention, demande plus de temps !)
  54. </div>
  55. </div>
  56. <!--
  57. <div class="form-group">
  58. <label class="group-name" for="http_user">Username HTTP</label>
  59. <div class="group-controls">
  60. <input type="text" name="http_user" id="http_user" value="Pas encore implémenté" />
  61. <i class="icon i_help"></i> La connexion permet d'accéder aux flux protégés par une authentification HTTP
  62. </div>
  63. <label class="group-name" for="http_pass">Password HTTP</label>
  64. <div class="group-controls">
  65. <input type="text" name="http_pass" id="http_pass" value="Pas encore implémenté" />
  66. </div>
  67. </div>
  68. -->
  69. <div class="form-group form-actions">
  70. <div class="group-controls">
  71. <button class="btn btn-important">Valider</button>
  72. <button class="btn btn-attention" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>">Supprimer</button>
  73. </div>
  74. </div>
  75. </form>
  76. </div>
  77. <?php } else { ?>
  78. <div class="alert"><span class="alert-head">Aucun flux sélectionné.</span> Pensez à en ajouter !</div>
  79. <?php } ?>