diff options
Diffstat (limited to 'app/views/configure')
| -rw-r--r-- | app/views/configure/categorize.phtml | 11 | ||||
| -rw-r--r-- | app/views/configure/display.phtml | 8 | ||||
| -rw-r--r-- | app/views/configure/feed.phtml | 17 | ||||
| -rw-r--r-- | app/views/configure/importExport.phtml | 2 |
4 files changed, 29 insertions, 9 deletions
diff --git a/app/views/configure/categorize.phtml b/app/views/configure/categorize.phtml index 943dd489e..660ddef20 100644 --- a/app/views/configure/categorize.phtml +++ b/app/views/configure/categorize.phtml @@ -6,13 +6,18 @@ <form method="post" action="<?php echo _url ('configure', 'categorize'); ?>"> <legend>Gestion des catégories - <a href="<?php echo _url ('configure', 'feed'); ?>">gestion des flux</a></legend> + <p class="alert alert-warn">Lors de la suppression d'une catégorie, ses flux seront automatiquement classés dans <em><?php echo $this->defaultCategory->name (); ?></em>.</p> + <?php $i = 0; foreach ($this->categories as $cat) { $i++; ?> <div class="form-group"> - <label class="group-name" for="cat_<?php echo $cat->id (); ?>">Catégorie n°<?php echo $i; ?></label> + <label class="group-name" for="cat_<?php echo $cat->id (); ?>"> + Catégorie n°<?php echo $i; ?> + </label> <div class="group-controls"> <input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" /> - <?php if ($cat->id () == '000000') { ?> - <i class="icon i_help"></i> ne peut pas être supprimé + <a href="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>">Vider ?</a> (<?php echo $cat->nbFeed (); ?> flux) + <?php if ($cat->id () == $this->defaultCategory->id ()) { ?> + <i class="icon i_help"></i> ne peut pas être supprimée <?php } ?> <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" /> </div> diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index 240428493..79fa4b43c 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -87,6 +87,14 @@ </div> </div> + <legend>Partage</legend> + <div class="form-group"> + <label class="group-name" for="shaarli">Votre Shaarli</label> + <div class="group-controls"> + <input type="text" id="shaarli" name="shaarli" value="<?php echo $this->conf->urlShaarli (); ?>" placeholder="Laissez vide pour désactiver"/> + </div> + </div> + <div class="form-group form-actions"> <div class="group-controls"> <button type="submit" class="btn btn-important">Valider</button> diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml index 2ac601e3d..adea27e52 100644 --- a/app/views/configure/feed.phtml +++ b/app/views/configure/feed.phtml @@ -9,28 +9,25 @@ <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> - <div class="form-group"> <label class="group-name">URL du flux</label> <div class="group-controls"> <span class="control"><a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo $this->flux->url (); ?></a></span> </div> </div> - <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> - + <legend>Catégorie - <a href="<?php echo _url ('configure', 'categorize'); ?>">gestion</a></legend> <div class="form-group"> <label class="group-name">Ranger dans une catégorie</label> @@ -46,13 +43,22 @@ <legend>Avancé</legend> <div class="form-group"> + <label class="group-name" for="priority">Afficher dans le flux principal</label> + <div class="group-controls"> + <label class="checkbox" for="priority"> + <input type="checkbox" name="priority" id="priority" value="10"<?php echo $this->flux->priority () > 0 ? ' checked="checked"' : ''; ?> /> + Oui + </label> + </div> + </div> + <div class="form-group"> <label class="group-name" for="path_entries">Chemin CSS des articles sur le site d'origine</label> <div class="group-controls"> <input type="text" name="path_entries" id="path_entries" value="<?php echo $this->flux->pathEntries (); ?>" placeholder="Laissez vide pour désactiver" /> <i class="icon i_help"></i> Permet de récupérer les flux tronqués (attention, demande plus de temps !) </div> </div> - +<!-- <div class="form-group"> <label class="group-name" for="http_user">Username HTTP</label> <div class="group-controls"> @@ -65,6 +71,7 @@ <input type="text" name="http_pass" id="http_pass" value="Pas encore implémenté" /> </div> </div> +--> <div class="form-group form-actions"> <div class="group-controls"> diff --git a/app/views/configure/importExport.phtml b/app/views/configure/importExport.phtml index cd677c1eb..34bee4a07 100644 --- a/app/views/configure/importExport.phtml +++ b/app/views/configure/importExport.phtml @@ -29,7 +29,7 @@ <div class="group-controls"> <button type="submit" class="btn btn-important">Importer</button> ou - <button type="submit" class="btn btn-important" formaction="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'export'))); ?>">Exporter</button> + <a target="_blank" class="btn btn-important" href="<?php echo _url ('configure', 'importExport', 'q', 'export'); ?>">Exporter</a> </div> </div> </form> |
