Suppression code HTML inutile + amélioration CSS + restructuration du layout + correction bug mise à jour d'articles lorsqu'on visualise une catégorie
parent
c62ec2a144
commit
8c72acbacb
14 changed files with 241 additions and 278 deletions
@ -1,5 +1,5 @@ |
||||
<div class="aside"> |
||||
<ul id="menu"> |
||||
<ul> |
||||
<li><h2>Configuration</h2></li> |
||||
<li <?php echo Request::actionName () == 'display' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo Url::display (array ('c' => 'configure', 'a' => 'display')); ?>">Général et affichage</a>
|
@ -0,0 +1,20 @@ |
||||
<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> |
@ -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 } ?> |
||||
|
Loading…
Reference in new issue