Koha/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/acceptorreject.tmpl

186 lines
8.4 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Suggestions Management</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/JavaScript">
// <![CDATA[
/**
* displayOther.
* This function display the select or an textaera to write a reason.
*/
function displayOther(id) {
var spanselect = document.getElementById("span-select-reason"+id);
var spanother = document.getElementById("span-other-reason"+id);
var select = spanselect.firstChild.nextSibling;
if(select.value != "other"){
return;
}
if(spanother.getAttribute('class')=='content_visible'){
spanother.removeAttribute('class');
spanselect.removeAttribute('class');
spanother.setAttribute('class','content_hidden');
spanselect.setAttribute('class','content_visible');
}
else{
spanother.removeAttribute('class');
spanselect.removeAttribute('class');
spanselect.setAttribute('class','content_hidden');
spanother.setAttribute('class','content_visible');
}
}
// ]]>
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="cat-search.inc" -->
<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>
<div id="doc" class="yui-t7">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<h1>Suggestions</h1>
<div class="toptabs">
<ul class="ui-tabs-nav">
<!-- TMPL_IF NAME="op_accepted"--><li class="ui-tabs-selected"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=accepted">Accepted</a></li>
<!-- TMPL_IF NAME="op_else" --><li class="ui-tabs-selected"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=aorr_confirm">Pending</a></li>
<!-- TMPL_IF NAME="op_rejected"--><li class="ui-tabs-selected"><!-- TMPL_ELSE --><li><!-- /TMPL_IF --><a href="/cgi-bin/koha/suggestion/acceptorreject.pl?op=rejected">Rejected</a></li>
</ul>
<div class="tabs-container">
<!-- TMPL_IF name="op_else" -->
<!-- TMPL_IF NAME="suggestions_loop" -->
<form name="f" method="post" action="/cgi-bin/koha/suggestion/acceptorreject.pl">
<input type="hidden" name="op" value="aorr_confirm" />
<table>
<tr>
<th>Status</th>
<th>Reason</th>
<th>Suggestion</th>
<th>Suggested by</th>
</tr>
<!-- TMPL_LOOP NAME="suggestions_loop" -->
<!-- TMPL_IF name="even" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
<td>
<select name="aorr">
<option value=""> -- Choose Action -- </option>
<option value="R<!--TMPL_VAR name="suggestionid" -->">Reject</option>
<option value="A<!--TMPL_VAR name="suggestionid" -->">Accept</option>
</select>
</td>
<td>
<span id="span-select-reason<!-- TMPL_VAR NAME="suggestionid" -->" class="content_visible">
<!-- TMPL_IF NAME="reasonsloop" --><select name="reason<!-- TMPL_VAR name="suggestionid" -->" onchange="displayOther('<!-- TMPL_VAR NAME="suggestionid" -->');">
<option value=""> -- Choose a reason -- </option>
<!-- TMPL_LOOP NAME="reasonsloop" -->
<option value="<!-- TMPL_VAR NAME="lib" -->"><!-- TMPL_VAR NAME="lib" --></option>
<!-- /TMPL_LOOP -->
<option value="other">Others...</option>
</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 -->
</span>
<span id="span-other-reason<!-- TMPL_VAR NAME="suggestionid" -->" class="content_hidden">
<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=''}" />
<small><a href="#" onclick="displayOther('<!-- TMPL_VAR NAME="suggestionid" -->'); return false;">back to list</a></small>
</span>
</td>
<td>
<!-- TMPL_VAR NAME="title" --><!-- TMPL_IF NAME="author" -->, by <!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --><br />
<!-- TMPL_IF name="copyrightdate" -->&copy; <!-- TMPL_VAR name="copyrightdate" --> <!-- /TMPL_IF -->
<!-- TMPL_IF name="volumedesc" -->; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i> <!-- /TMPL_IF -->
<!-- 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 -->
</td>
<td>
<!-- TMPL_VAR name="surnamesuggestedby" -->
<!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
<!-- TMPL_VAR name="firstnamesuggestedby" -->
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<fieldset class="action"><input type="submit" value="Change Status" /></fieldset>
</form>
<!-- TMPL_ELSE -->
<b>No waiting suggestions to accept or reject.</b>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="done" -->
<!-- TMPL_IF NAME="suggestions_loop" -->
<table>
<tr>
<th>Reason</th>
<th>Suggestion</th>
<th>Suggested by</th>
<th>Date</th>
</tr>
<!-- TMPL_LOOP NAME="suggestions_loop" -->
<td>
<!-- TMPL_VAR NAME="reason" -->
</td>
<td>
<!-- TMPL_VAR NAME="title" -->
<!-- TMPL_IF NAME="author" -->
, by <!-- TMPL_VAR NAME="author" -->
<!-- /TMPL_IF -->
<br />
<!-- TMPL_IF name="copyrightdate" -->
&copy; <!-- TMPL_VAR name="copyrightdate" -->
<!-- /TMPL_IF -->
<!-- TMPL_IF name="volumedesc" -->
; Volume:<i><!-- TMPL_VAR name="volumedesc" --></i>
<!-- /TMPL_IF -->
<!-- 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 -->
</td>
<td>
<!-- TMPL_VAR name="surnamesuggestedby" -->
<!-- TMPL_IF name="firstnamesuggestedby" -->,<!-- /TMPL_IF -->
<!-- TMPL_VAR name="firstnamesuggestedby" -->
</td>
<td>
<!-- TMPL_VAR NAME="date" -->
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<!-- TMPL_ELSE -->
<h4>No suggestions have been
<!-- TMPL_IF NAME="op_accepted"-->
accepted.
<!-- TMPL_ELSE -->
rejected.
<!-- /TMPL_IF --></h4>
<!-- /TMPL_IF -->
<!-- /TMPL_IF -->
</div></div>
</div>
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->