Skip to content
Snippets Groups Projects
Commit 8f3a1256 authored by llaffont's avatar llaffont
Browse files

Exemple de code pour ajouter un bouton réservation dans l'entête des notices

parent 68bee97d
Branches
Tags 5.12
No related merge requests found
......@@ -199,3 +199,20 @@ echo $container(
* Ergonomie réservation
#+BEGIN_SRC
<script>
var openDialogExemplaires = function() {
$
.ajax({url: "<?php echo $this->url(['controller' => 'noticeajax', 'action' => 'exemplaires', 'id_notice' => $this->notice->getId()]) ?>"})
.done(function(data) {$('<div id="dialog"></div>').html(data).dialog({width:800, modal: true, title: '<?php echo $this->_("Exemplaires") ?>'})});
}
</script>
<span id="bloc_reserver"><a href="#" onclick="openDialogExemplaires();return false">&nbsp;&nbsp;&nbsp;&raquo;&nbsp;<?php echo $this->_('Réserver') ?></a></span>
#+END_SRC
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