Markup corrections to cataloging pages; Fixes for Bugs 2166 (" Book Jackets Not Showi...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / authorities-toolbar.inc
1 <div id="toolbar">
2 <script type="text/javascript">
3         //<![CDATA[
4
5         // prepare DOM for YUI Toolbar
6
7          $(document).ready(function() {
8             $("#newmenuc").empty();
9             $("#delAuthc").empty();
10             yuiToolbar();
11          });
12
13         // YUI Toolbar Functions
14
15         function yuiToolbar() {   
16         
17                 var newmenu = [
18                         <!-- TMPL_LOOP name="authtypesloop" -->{ text: "<!-- TMPL_VAR name="authtypetext" -->", url: "/cgi-bin/koha/authorities/authorities.pl?authtypecode=<!-- TMPL_VAR name="value" -->"},
19 <!-- /TMPL_LOOP -->
20                 ]
21
22             new YAHOO.widget.Button({
23                 type: "menu",
24                 label: _("New Authority"),
25                 name: "newmenubutton",
26                 menu: newmenu,
27                 container: "newmenuc"
28             });  
29                 
30                 var editButton = new YAHOO.widget.Button("editAuth");
31                 
32                 var delAuthButton = new YAHOO.widget.Button({
33           id: "delAuth", 
34           type: "button", 
35           label: _("Delete"), 
36           container: "delAuthc",
37                   onclick: {fn: confirm_deletion }
38       });
39         }
40
41         //]]>
42         </script>
43   <form name="f2" method="post" action="authorities.pl">        
44   
45 <!-- TMPL_IF NAME="authid" -->  <a id="editAuth" href="authorities.pl?authid=<!-- TMPL_VAR NAME="authid" -->">Edit</a>
46     
47     <!-- TMPL_UNLESS name="count" -->
48     <span id="delAuthc"><a id="delAuth" href="javascript:confirm_deletion()">Delete</a></span>
49     <!-- /TMPL_UNLESS --><!-- TMPL_ELSE -->&nbsp;<!-- /TMPL_IF -->
50   
51   <span id="newmenuc">
52         <label for="add_authtypecode">New: </label>
53         <select id="add_authtypecode" name="authtypecode">
54 <!-- TMPL_LOOP name="authtypesloop" -->
55   <!-- TMPL_IF name="selected" -->
56         <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="authtypetext" --></option>
57   <!-- TMPL_ELSE -->
58         <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="authtypetext" --></option>
59   <!-- /TMPL_IF -->
60 <!-- /TMPL_LOOP -->
61         </select>
62       <input type="submit" value="Add" class="button" />
63   </span></form>
64 </div>