Fixing nomenclature and tmpl_process3.pl bugs
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / suggestion / acceptorreject.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Suggestions Management</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/JavaScript">
5  // <![CDATA[
6         
7         /**
8          *  displayOther.
9          *  This function display the select or an textaera to write a reason.
10          */
11         function displayOther(id) {
12                 var spanselect = document.getElementById("span-select-reason"+id);
13                 var spanother = document.getElementById("span-other-reason"+id);
14         var select = spanselect.firstChild.nextSibling; 
15         
16                 if(select.value != "other"){
17                         return;
18                 }
19                 if(spanother.getAttribute('class')=='content_visible'){
20                         spanother.removeAttribute('class');
21                         spanselect.removeAttribute('class');
22                         spanother.setAttribute('class','content_hidden');
23                         spanselect.setAttribute('class','content_visible');
24                 }
25                 else{
26                         spanother.removeAttribute('class');
27                         spanselect.removeAttribute('class');
28                         spanselect.setAttribute('class','content_hidden');
29                         spanother.setAttribute('class','content_visible');                      
30                 }
31         }
32 // ]]>
33 </script>
34 </head>
35 <body>
36 <!-- TMPL_INCLUDE NAME="header.inc" -->
37 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
38
39 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo;<!-- TMPL_IF NAME="op_accepted"--> <a href="/cgi-bin/koha/suggestion/acceptorreject.pl">Suggestions Management</a> &rsaquo; Accepted<!-- /TMPL_IF --><!-- TMPL_IF NAME="op_else"--> Suggestions Management<!-- /TMPL_IF --><!-- TMPL_IF NAME="op_rejected"--> <a href="/cgi-bin/koha/suggestion/acceptorreject.pl">Suggestions Management</a> &rsaquo; Rejected<!-- /TMPL_IF --></div>
40
41 <div id="doc" class="yui-t7">
42    
43    <div id="bd">
44         <div id="yui-main">
45         <div class="yui-b">
46
47     <h1>Suggestions</h1>
48         
49     <!-- TMPL_IF NAME="suggestions_loop" -->
50         <div class="toptabs">
51         <ul class="tabs-nav">
52                         <!-- TMPL_IF NAME="op_accepted"--><li class="tabs-selected"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=accepted">Accepted</a></li>
53                         <!-- TMPL_IF NAME="op_else" --><li class="tabs-selected"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=aorr_confirm">Waiting</a></li>
54                         <!-- TMPL_IF NAME="op_rejected"--><li class="tabs-selected"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=rejected">Rejected</a></li>
55                 </ul>
56         <!-- /TMPL_IF -->
57         
58         <div class="tabs-container">
59
60 <!-- TMPL_IF name="op_else" -->
61     <!-- TMPL_IF NAME="suggestions_loop" -->
62     <form name="f" method="post" action="/cgi-bin/koha/suggestion/acceptorreject.pl">
63     <input type="hidden" name="op" value="aorr_confirm" />
64     <table>
65         <tr>
66             <th>Status</th>
67             <th>Reason</th>
68             <th>Suggestion</th>
69             <th>Suggested by</th>
70         </tr>
71         <!-- TMPL_LOOP NAME="suggestions_loop" -->
72             <!-- TMPL_IF name="even" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
73                 <td>
74                     <select name="aorr">
75                         <option value=""> -- Choose Action -- </option>
76                         <option value="R<!--TMPL_VAR name="suggestionid" -->">Reject</option>
77                         <option value="A<!--TMPL_VAR name="suggestionid" -->">Accept</option>
78                     </select>
79                 </td>
80                 <td>
81
82                             <span id="span-select-reason<!-- TMPL_VAR NAME="suggestionid" -->" class="content_visible">
83                         <!-- TMPL_IF NAME="reasonsloop" --><select name="reason<!-- TMPL_VAR name="suggestionid" -->" onchange="displayOther('<!-- TMPL_VAR NAME="suggestionid" -->');">
84                                         <option value=""> -- Choose a reason -- </option>
85                             <!-- TMPL_LOOP NAME="reasonsloop" -->
86                                 <option value="<!-- TMPL_VAR NAME="lib" -->"><!-- TMPL_VAR NAME="lib" --></option>
87                             <!-- /TMPL_LOOP -->
88                                         <option value="other">Others...</option>
89                         </select><!-- TMPL_ELSE --><span class="problem">No reasons defined in <a href="/cgi-bin/koha/admin/authorised_values.pl">authorised values</a></span><!-- /TMPL_IF -->
90                     </span>
91                         
92                     <span id="span-other-reason<!-- TMPL_VAR NAME="suggestionid" -->" class="content_hidden">
93                         <input type="text" name="other-reason<!-- TMPL_VAR name="suggestionid" -->" value="please note your reason here..." onclick="if(this.value === 'please note your reason here...'){this.value=''}" />
94                         <small><a href="#" onclick="displayOther('<!-- TMPL_VAR NAME="suggestionid" -->'); return false;">back to list</a></small>
95                     </span>
96                         
97                 </td>
98                 <td>
99                 <!-- TMPL_VAR NAME="title" --><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --><br />
100                     <!-- TMPL_IF name="copyrightdate" -->&copy; <!-- TMPL_VAR name="copyrightdate" --> <!-- /TMPL_IF -->
101                         <!-- TMPL_IF name="volumedesc" -->; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i> <!-- /TMPL_IF -->
102                         <!-- TMPL_IF name="isbn" -->; ISBN :<i><!-- TMPL_VAR name="isbn" --></i> <!-- /TMPL_IF --><!-- TMPL_IF name="publishercode" -->; Published by <!-- TMPL_VAR name="publishercode" --> <!-- /TMPL_IF --><!-- TMPL_IF name="publicationyear" --> in <i><!-- TMPL_VAR name="publicationyear" --></i> <!-- /TMPL_IF --><!-- TMPL_IF name="place" --> in <i><!-- TMPL_VAR name="place" --></i> <!-- /TMPL_IF --><br /><!-- TMPL_IF name="note" --><!-- TMPL VAR NAME="note" --><!-- /TMPL_IF -->
103                 </td>
104                 <td>
105                     <!-- TMPL_VAR name="surnamesuggestedby" -->
106                     <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
107                     <!-- TMPL_VAR name="firstnamesuggestedby" -->
108                 </td>
109             </tr>
110         <!-- /TMPL_LOOP -->
111         </table>
112         <fieldset class="action"><input type="submit" value="Change Status" /></fieldset>
113 </form>
114 <!-- TMPL_ELSE -->
115     <b>No waiting suggestions to accept or reject.</b>
116 <!-- /TMPL_IF -->
117 <!-- /TMPL_IF -->
118
119 <!-- TMPL_IF NAME="done" -->
120     
121     <!-- TMPL_IF NAME="suggestions_loop" -->
122         <table>
123         <tr>
124             <th>Reason</th>
125             <th>Suggestion</th>
126             <th>Suggested by</th>
127             <th>Date</th>
128         </tr>
129         <!-- TMPL_LOOP NAME="suggestions_loop" -->
130             <td>
131                 <!-- TMPL_VAR NAME="reason" -->
132             </td>
133             <td>
134                 <!-- TMPL_VAR NAME="title" -->
135                     <!-- TMPL_IF NAME="author" -->
136                         , by <!-- TMPL_VAR NAME="author" -->
137                     <!-- /TMPL_IF -->
138                     <br />
139                     <!-- TMPL_IF name="copyrightdate" -->
140                         &copy <!-- TMPL_VAR name="copyrightdate" -->
141                     <!-- /TMPL_IF -->
142                     <!-- TMPL_IF name="volumedesc" -->
143                         ; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i>
144                     <!-- /TMPL_IF -->
145                     <!-- TMPL_IF name="isbn" -->
146                         ; ISBN :<i><!-- TMPL_VAR name="isbn" --></i>
147                     <!-- /TMPL_IF -->
148                     <!-- TMPL_IF name="publishercode" -->
149                         ; Published by <!-- TMPL_VAR name="publishercode" -->
150                     <!-- /TMPL_IF -->
151                     <!-- TMPL_IF name="publicationyear" -->
152                         in <i><!-- TMPL_VAR name="publicationyear" --></i>
153                     <!-- /TMPL_IF -->
154                     <!-- TMPL_IF name="place" -->
155                         in <i><!-- TMPL_VAR name="place" --></i>
156                     <!-- /TMPL_IF -->
157                     <br />
158                     <!-- TMPL_IF name="note" -->
159                         <!-- TMPL VAR NAME="note" -->
160                     <!-- /TMPL_IF -->
161             </td>
162             <td>
163                 <!-- TMPL_VAR name="surnamesuggestedby" -->
164                 <!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
165                 <!-- TMPL_VAR name="firstnamesuggestedby" -->
166             </td>
167             <td>
168                 <!-- TMPL_VAR NAME="date" -->
169             </td>
170          </tr>
171         <!-- /TMPL_LOOP -->
172         </table>
173     <!-- TMPL_ELSE -->
174         
175                 <h4>No suggestions have been 
176         <!-- TMPL_IF NAME="op_accepted"-->
177             accepted.
178         <!-- TMPL_ELSE -->
179             rejected.
180         <!-- /TMPL_IF --></h4>
181     <!-- /TMPL_IF -->
182 <!-- /TMPL_IF -->
183 </div></div>
184
185 </div>
186 </div>
187 </div>
188 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->