summaryrefslogtreecommitdiff
path: root/app/views/configure/feed.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-03-13 19:09:29 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-03-13 19:09:29 +0100
commit8c72acbacb8fd4da39d505e8ac52e7e0cceed418 (patch)
tree85f1d8445a29e9d374fa1b399ed843b779f01fdd /app/views/configure/feed.phtml
parentc62ec2a14428b528e20896d4e62fa08891e1399c (diff)
Suppression code HTML inutile + amélioration CSS + restructuration du layout + correction bug mise à jour d'articles lorsqu'on visualise une catégorie
Diffstat (limited to 'app/views/configure/feed.phtml')
-rw-r--r--app/views/configure/feed.phtml77
1 files changed, 27 insertions, 50 deletions
diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml
index 1b8d77595..53b4d7939 100644
--- a/app/views/configure/feed.phtml
+++ b/app/views/configure/feed.phtml
@@ -1,54 +1,31 @@
-<div class="table">
- <?php /* $this->partial ('configure_aside'); */ ?>
+<?php $this->partial ('aside_feed'); ?>
- <div class="aside">
- <ul>
- <li><h2>Vox flux RSS</h2></li>
- <?php if (!login_is_conf ($this->conf) || is_logged ()) { ?>
- <li><form id="add_rss" method="post" action="<?php echo Url::display (array ('c' => 'feed', 'a' => 'add')); ?>">
- <input type="url" name="url_rss" placeholder="Ajouter un flux RSS" />
- <input type="submit" value="+" />
- </form></li>
- <?php } ?>
- <?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 ($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" />
+ <?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 } ?>
-
- <button formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>">Supprimer</button>
- </form>
- <?php } else { ?>
- <div class="nothing">Aucun flux sélectionné</div>
+ </div>
+
+ <input type="submit" value="Valider" />
<?php } ?>
-</div>
+
+ <button formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>">Supprimer</button>
+</form>
+<?php } else { ?>
+<div class="nothing">Aucun flux sélectionné</div>
+<?php } ?>