Skip to content
Snippets Groups Projects
Commit 02bb035d authored by Ghislain Loas's avatar Ghislain Loas
Browse files

hotline #46627 remove useless data-action

parent ca898640
Branches
Tags
4 merge requests!1797Master,!1746Master,!1745Hotline master,!1742Hotline#46627 fix selection edition
......@@ -44,6 +44,7 @@ class PanierController extends ZendAfi_Controller_Action {
$this->view->paniers = $paniers;
$this->view->panier_courant = $panier_courant;
$this->view->back_url = $this->_request->getServer('HTTP_REFERER');
}
......
<?php
$urlPanier = $this->url(['controller' => 'panier',
'action' => 'index',
'id_panier' => $this->panier->getId()], null, true);
?>
<div class="creation-result"><span><?php echo $this->_('Le panier ').$this->panier->getLibelle().$this->_(' a bien été créé.'); ?></span>
<a href="#"><?php echo $this->_('Fermer'); ?></a>
<a href="<?php echo $urlPanier;?>#panier_contenu"><?php echo $this->_('Voir le panier'); ?></a></div>
\ No newline at end of file
......@@ -15,14 +15,6 @@ echo $this->tag('span',
['class' => 'abonne',
'id' => 'abonne_erreur']);
if ($this->ajout_panier_form)
echo $this->renderForm($this->ajout_panier_form);
if ($this->url_retour)
echo $this->tagAnchor($this->url_retour,
$this->_('Retour'),
['title' => $this->_('Retourner à la page précédente')]);
$headers = [$this->_('Nom'),
$this->_('Date'),
$this->_('Nombre de notices'),
......@@ -133,12 +125,12 @@ if($this->panier_courant) {
' - (%d documents)',
$this->panier_courant->getNumberOfNotices())));
echo $this->tagModelTable($this->panier_courant->getNoticesAsArray(),
[$this->_('Titre principal'),
$this->_('Auteur principal'),
$this->_('Type de document')],
['titre_principal',
'auteur_principal',
'type_doc_label'],
[$this->_('Type de document'),
$this->_('Titre principal'),
$this->_('Auteur principal')],
['type_doc',
'titre_principal',
'auteur_principal'],
[
function($model) {
return $this->tagPreview($this->url(['controller' => 'recherche',
......@@ -156,12 +148,22 @@ if($this->panier_courant) {
$this->panier_courant->getLibelle())]);
}
],
'panier_content');
'panier_content',
null,
['type_doc' => function($model) {
return $this->iconeSupport($model->getTypeDoc()) . ' : ' . $model->getTypeDocLabel();
}]);
}
if($this->erreur)
echo $this->tag('script', sprintf('alert("%s")', $this->erreur));
echo $this->abonne_RetourFiche();
if ($this->back_url)
echo $this->tagAnchor($this->back_url,
$this->_('Retour'),
['title' => $this->_('Retourner à la page précédente')]);
$this->closeBoite();
?>
......@@ -32,7 +32,6 @@ $script_loader = Class_ScriptLoader::getInstance()
? ' dans_panier'
: ''),
'data-popup' => 'true',
'data-action' => $this->url_panier,
'title' => $this->_('Ajouter "%s" dans un panier', $this->notice->getTitrePrincipal())]);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment