diff options
| author | 2013-03-14 16:49:14 +0100 | |
|---|---|---|
| committer | 2013-03-14 16:49:14 +0100 | |
| commit | f53c01dcd49e2a1e974efb7b91bfe50981640b11 (patch) | |
| tree | 33c149b6f10245a03b864b591fc350187fa196a8 /app/views/configure/feed.phtml | |
| parent | 9332fd5b0c1720a38aa5c85564da20c89a0f8a96 (diff) | |
Bien meilleure gestion des formulaires
Diffstat (limited to 'app/views/configure/feed.phtml')
| -rw-r--r-- | app/views/configure/feed.phtml | 60 |
1 files changed, 40 insertions, 20 deletions
diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml index dc1d7ff96..11a194071 100644 --- a/app/views/configure/feed.phtml +++ b/app/views/configure/feed.phtml @@ -1,32 +1,52 @@ <?php $this->partial ('aside_feed'); ?> <?php if ($this->flux) { ?> -<form method="post" action="<?php echo _url ('configure', 'feed', 'id', $this->flux->id ()); ?>"> +<div class="post"> <h1><?php echo $this->flux->name (); ?></h1> <?php echo $this->flux->description (); ?> + + <form method="post" action="<?php echo _url ('configure', 'feed', 'id', $this->flux->id ()); ?>"> + <legend>Informations</legend> + + <div class="form-group"> + <label class="group-name">URL du site</label> + <div class="group-controls"> + <span class="control"><a target="_blank" href="<?php echo $this->flux->website (); ?>"><?php echo $this->flux->website (); ?></a></span> + </div> + </div> - <label>URL du site</label> - <span><a target="_blank" href="<?php echo $this->flux->website (); ?>"><?php echo $this->flux->website (); ?></a></span> + <div class="form-group"> + <label class="group-name">Nombre d'articles</label> + <div class="group-controls"> + <span class="control"><?php echo $this->flux->nbEntries (); ?></span> + </div> + </div> - <label>Nombre d'articles</label> - <span><?php echo $this->flux->nbEntries (); ?></span> + <?php if (!empty ($this->categories)) { ?> + <div class="form-group"> + <label class="group-name">Ranger dans une catégorie</label> + <div class="group-controls"> + <?php foreach ($this->categories as $cat) { ?> + <label class="radio" for="cat_<?php echo $cat->id (); ?>"> + <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"' : ''; ?> /> + <?php echo $cat->name (); ?> + </label> + <?php } ?> + </div> + </div> - <?php if (!empty ($this->categories)) { ?> - <label>Ranger dans une catégorie</label> - <div class="radio_group"> - <?php foreach ($this->categories as $cat) { ?> - <label for="cat_<?php echo $cat->id (); ?>"> - <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"' : ''; ?> /> - <?php echo $cat->name (); ?> - </label> + <div class="form-group form-actions"> + <div class="group-controls"> + <button class="btn btn-important">Valider</button> + <?php } else { ?> + <div class="form-group"> + <div class="group-controls"> <?php } ?> - </div> - - <button class="btn btn-important">Valider</button> - <?php } ?> - - <button class="btn" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>">Supprimer</button> -</form> + <button class="btn btn-attention" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>">Supprimer</button> + </div> + </div> + </form> +</div> <?php } else { ?> <div class="alert"><span class="alert-head">Aucun flux sélectionné.</span> Pensez à en ajouter !</div> <?php } ?> |
