Adding Printer Profiles feature to the Label Creator.
[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             yuiToolbar();
10          });
11
12         // YUI Toolbar Functions
13
14         function yuiToolbar() {   
15         
16                 var newmenu = [
17                         <!-- TMPL_LOOP name="authtypesloop" -->{ text: "<!-- TMPL_VAR name="authtypetext" -->", url: "/cgi-bin/koha/authorities/authorities.pl?authtypecode=<!-- TMPL_VAR name="value" -->"},
18 <!-- /TMPL_LOOP -->
19                 ]
20
21             new YAHOO.widget.Button({
22                 type: "menu",
23                 label: _("New Authority"),
24                 name: "newmenubutton",
25                 menu: newmenu,
26                 container: "newmenuc"
27             });  
28         }
29
30         //]]>
31         </script>
32   <form name="f2" method="post" action="authorities.pl">        
33   <span id="newmenuc">
34         <label for="add_authtypecode">New: </label>
35         <select id="add_authtypecode" name="authtypecode">
36 <!-- TMPL_LOOP name="authtypesloop" -->
37   <!-- TMPL_IF name="selected" -->
38         <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="authtypetext" --></option>
39   <!-- TMPL_ELSE -->
40         <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="authtypetext" --></option>
41   <!-- /TMPL_IF -->
42 <!-- /TMPL_LOOP -->
43         </select>
44       <input type="submit" value="Add" class="button" />
45   </span></form>
46 </div>