Koha/koha-tmpl/intranet-tmpl/prog/en/includes/serials-toolbar.inc
Paul POULAIN e30d1d6844 bugfix : independantbranches behaviour
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-04-10 02:55:50 -05:00

40 lines
1.5 KiB
HTML

<div id="toolbar"><script type="text/javascript">
//<![CDATA[
// prepare DOM for YUI Toolbar
$(document).ready(function() {
yuiToolbar();
});
// YUI Toolbar Functions
function yuiToolbar() {
new YAHOO.widget.Button("newsubscription");
<!-- TMPL_IF NAME="subscriptionid" -->
new YAHOO.widget.Button("edit");
new YAHOO.widget.Button("duplicate");
new YAHOO.widget.Button("renew");
new YAHOO.widget.Button("receive");
new YAHOO.widget.Button("delete");
<!-- /TMPL_IF -->
}
//]]>
</script>
<ul class="toolbar">
<li><a id="newsubscription" href="/cgi-bin/koha/serials/subscription-add.pl">New Subscription</a></li>
<!-- TMPL_IF NAME="subscriptionid" -->
<!-- TMPL_UNLESS name="cannotedit" -->
<li><a id="edit" href="subscription-add.pl?op=mod&amp;subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Edit</a></li>
<!-- /TMPL_UNLESS -->
<li><a id="duplicate" href="subscription-add.pl?op=dup&amp;subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->">Duplicate </a></li>
<!-- TMPL_UNLESS name="cannotedit" -->
<li><a id="renew" href="#" onclick="popup(<!--TMPL_VAR Name="subscriptionid"-->)">Renew </a></li>
<li><a id="receive" href="serials-edit.pl?subscriptionid=<!-- TMPL_VAR name="subscriptionid" -->&amp;serstatus=1,3">Receive</a></li>
<li><a id="delete" href="javascript:confirm_deletion()">Delete</a></li>
<!-- /TMPL_UNLESS -->
<!-- /TMPL_IF -->
</ul>
</div>