MT 1976 : template simplification
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / virtualshelves / addbybiblionumber.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Add to List</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <style type="text/css">
5    #custom-doc { width:34.62em;*width:33.78em;min-width:450px; margin:auto; margin-top: .4em;text-align:left; } 
6    </style>
7 </head>
8 <body>
9
10 <div id="custom-doc" class="yui-t7">
11    <div id="bd">
12                 <!-- TMPL_IF NAME="multiple"-->
13                     <h1>Add <!-- TMPL_VAR NAME="total"--> items to <!-- TMPL_IF NAME="singleshelf" --><em><!-- TMPL_VAR NAME="shelfname" --></em>: <!-- TMPL_ELSE -->a list:<!-- /TMPL_IF --></h1>
14                 <!-- TMPL_ELSE -->
15                         <h1>Add to <!-- TMPL_IF NAME="singleshelf" --><em><!-- TMPL_VAR NAME="shelfname" --></em><!-- TMPL_ELSE -->a list:<!-- /TMPL_IF --></h1>
16                 <!-- /TMPL_IF -->
17                 <ul>
18                     <!-- TMPL_LOOP NAME="biblios"-->
19                         <li> <span class="title"><!-- TMPL_VAR NAME="title"--></span>
20                             <!-- TMPL_IF NAME="author"--><span class="author"> <!-- TMPL_VAR NAME="author"--> </span><!-- /TMPL_IF -->
21                         </li>
22                     <!-- /TMPL_LOOP -->
23                 </ul>
24
25                 <form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
26                         <!-- TMPL_LOOP NAME="biblios" --> <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" /><!-- /TMPL_LOOP -->
27                         <input type="hidden" name="confirmed" value="1" />
28                         <!-- TMPL_IF NAME="shelfnumber" --><input type="hidden" name="shelfnumber" value="<!-- TMPL_VAR NAME="shelfnumber" -->" /><!-- /TMPL_IF -->
29                     </fieldset>
30
31 <!-- TMPL_UNLESS NAME="shelfnumber" -->
32
33     <!-- TMPL_UNLESS NAME="newshelf" -->
34      <fieldset class="rows">
35         <legend>Select an existing list</legend>
36         <ol>
37             <li><label>Choose list</label><!-- TMPL_VAR NAME="CGIvirtualshelves" --></li>
38         </ol>
39         <!-- TMPL_LOOP NAME="biblios" --><input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_LOOP -->
40         <!-- TMPL_UNLESS NAME="biblionumbers" -->
41           <input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
42         <!-- TMPL_ELSE -->
43           <input type="hidden" name="biblionumbers" value="<!-- TMPL_VAR NAME="biblionumbers" -->" />
44         <!-- /TMPL_UNLESS -->
45         </fieldset>
46
47         <p>... or...</p> 
48
49     <!-- /TMPL_UNLESS -->
50
51     <fieldset class="rows"><legend>Add to a new list:</legend>
52         <ol><li>
53             <label for="newvirtualshelf">
54                 List name:
55             </label>
56             <!-- TMPL_LOOP NAME="biblios" --><input type="hidden" name="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->"><!-- /TMPL_LOOP -->
57             <!-- TMPL_UNLESS NAME="biblionumbers" -->
58                           <input type="hidden" name="biblionumber" id="biblionumber" value="<!-- TMPL_VAR NAME="biblionumber" -->" />
59             <!-- TMPL_ELSE -->
60                           <input type="hidden" name="biblionumbers" id="biblionumbers" value="<!-- TMPL_VAR NAME="biblionumbers" -->" />
61             <!-- /TMPL_UNLESS -->
62             <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
63             <input type="hidden" name="confirmed" value="1" />
64         </li>
65         <li>
66             <label for="category">Category:</label>
67             <select name="category" id="category">
68                 <option value="1">Private</option>
69                 <option value="2">Public</option>
70                 <option value="3">Free</option>
71             </select>
72         </li></ol>
73     </fieldset> 
74
75
76 <!-- /TMPL_UNLESS -->
77
78
79 <!-- SAVE -->
80                     <fieldset class="action">
81                         <input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
82                     </fieldset>
83                 </form>
84 <!-- /SAVE -->            
85
86 </div>
87
88 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->