[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Tools › Notices[% IF ( add_form ) %][% IF ( modify ) %] › Modify notice[% ELSE %] › Add notice[% END %][% END %][% IF ( add_validate ) %] › Notice added[% END %][% IF ( delete_confirm ) %] › Confirm deletion[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
-<link rel="stylesheet" type="text/css" href="/intranet-tmpl/prog/en/css/datatables.css" />
-<script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
-[% INCLUDE 'datatables-strings.inc' %]
-<script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
+<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
+[% INCLUDE 'datatables.inc' %]
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
],
"bPaginate": false
}));
- $('#branch').change(function() {
+ [% IF no_op_set %]
+ $('#branch').change(function() {
$('#op').val("");
$('#selectlibrary').submit();
- });
- $('#newnotice').click(function() {
+ });
+ $('#newnotice').click(function() {
$('#op').val("add_form");
return true;
- });
+ });
+ [% END %]
});
[% IF ( add_form ) %]
</select>
[% END %]
[% END %]
+
+[% IF ( letter ) %]
<table id="lettert">
<thead><tr>
<th>Library</th>
[% END %]
</tbody>
</table>
+[% ELSE %]
+ <div class="dialog message">
+ [% IF ( branchcode ) %]
+ <p>There are no notices for this library.</p>
+ [% ELSE %]
+ <p>There are no notices.</p>
+ [% END %]
+ </div>
+[% END %]
[% END %]