diff options
| author | 2012-10-25 22:24:54 +0200 | |
|---|---|---|
| committer | 2012-10-25 22:24:54 +0200 | |
| commit | b5916b6c04cd7428cd188ed56545dbf985b6c18c (patch) | |
| tree | e92a812f47b675f4d788c828d5320e6aad21f144 /app/views/configure/feed.phtml | |
| parent | 3ff51a59ba97f3ef1df3c26df16d9a3ab5789843 (diff) | |
mise en place du routage
Diffstat (limited to 'app/views/configure/feed.phtml')
| -rw-r--r-- | app/views/configure/feed.phtml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml new file mode 100644 index 000000000..582457b63 --- /dev/null +++ b/app/views/configure/feed.phtml @@ -0,0 +1,46 @@ +<div class="table"> + <div class="aside"> + <ul> + <li><h2>Vox flux RSS</h2></li> + <?php if (!empty ($this->feeds)) { ?> + <?php foreach ($this->feeds as $feed) { ?> + <li <?php echo ($this->flux && $this->flux->id () == $feed->id ()) ? 'class="active"' : ''; ?>> + <a href="<?php echo Url::display (array ('c' => 'configure', 'a' => 'feed', 'params' => array ('id' => $feed->id ()))); ?>"><?php echo $feed->name (); ?></a> + </li> + <?php } ?> + <?php } else { ?> + <li class="disable"><span>Aucun flux</span></li> + <?php } ?> + </ul> + </div> + + <?php if ($this->flux) { ?> + <form method="post" action=""> + <h1><?php echo $this->flux->name (); ?></h1> + <?php echo $this->flux->description (); ?> + + <label>URL du site</label> + <span><a target="_blank" href="<?php echo $this->flux->website (); ?>"><?php echo $this->flux->website (); ?></a></span> + + <label>Nombre d'articles</label> + <span><?php echo $this->flux->nbEntries (); ?></span> + + <?php if (!empty ($this->categories)) { ?> + <label>Ranger dans une catégorie</label> + <div class="radio_group"> + <?php foreach ($this->categories as $cat) { ?> + <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"' : ''; ?> /> + <label for="cat_<?php echo $cat->id (); ?>"><?php echo $cat->name (); ?></label> + <br /> + <?php } ?> + </div> + + <input type="submit" value="Valider" /> + + <button formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>">Supprimer</button> + <?php } ?> + </form> + <?php } else { ?> + <div class="nothing">Aucun flux sélectionné</div> + <?php } ?> +</div> |
