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

175 lines
8.3 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Acquisitions &rasquo; 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,show,hide) {
$("#"+hide+id).hide();
$("#"+show+id).show();
}
$(document).ready(function() {
$("div[id*=other-reason]").hide();
$("input[name*=other-reason]").focus(function(){ $(this).val(""); });
$("select[name*=reason]").change(function(){
if($(this).children("[@selected]").val() == "other"){
displayOther($(this).attr("name").replace(/reason/,""),"other-reason","select-reason");
}
});
$("a[href*=back]").click(function(){
var sid = $(this).attr("href").replace(/#back/,"");
displayOther(sid,"select-reason","other-reason");
$("#reason"+sid).find("option[value='']").attr("selected","selected");
});
});
// ]]>
</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; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</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>
<div id="select-reason<!-- TMPL_VAR NAME="suggestionid" -->">
<!-- TMPL_IF NAME="reasonsloop" --><select id="reason<!-- TMPL_VAR name="suggestionid" -->" name="reason<!-- 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 -->
</div>
<div id="other-reason<!-- TMPL_VAR NAME="suggestionid" -->">
<input type="text" size="31" name="other-reason<!-- TMPL_VAR name="suggestionid" -->" value="please note your reason here..." />
<p><a href="#back<!-- TMPL_VAR NAME="suggestionid" -->">back to list</a></p>
</div>
</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><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrnumsuggestedby" -->"><!-- TMPL_VAR name="surnamesuggestedby" --><!-- TMPL_IF name="firstnamesuggestedby" -->, <!-- TMPL_VAR name="firstnamesuggestedby" --><!-- /TMPL_IF --></a></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>
<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrnumsuggestedby" -->"><!-- TMPL_VAR name="surnamesuggestedby" --><!-- TMPL_IF name="firstnamesuggestedby" -->, <!-- TMPL_VAR name="firstnamesuggestedby" --><!-- /TMPL_IF --></a>
</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" -->