View | Details | Raw Unified | Return to bug 9463
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt (-20 / +23 lines)
Lines 2-20 Link Here
2
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Sent notices for [% INCLUDE 'patron-title.inc' %]</title>
3
<title>Sent notices for [% INCLUDE 'patron-title.inc' %]</title>
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7
[% INCLUDE 'datatables-strings.inc' %]
8
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
6
<script type="text/javascript">
9
<script type="text/javascript">
7
//<![CDATA[
10
//<![CDATA[
8
    $(document).ready(function() {
11
    $(document).ready(function() {
9
	$("#noticestable").tablesorter({
12
    $("#noticestable").dataTable($.extend(true, {}, dataTablesDefaults, {
10
	    [% IF ( dateformat == 'metric' ) %]
13
        "aaSorting": [[ 3, "desc" ]],
11
		dateFormat: 'uk'
14
        "aoColumns": [ null,null,null,{ "sType": "title-string" } ],
12
	    [% END %]
15
        "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
13
	});
16
        "iDisplayLength": 20,
17
        "sPaginationType": "four_button"
18
    }));
14
19
15
    $(".message").hide();
20
    $(".notice").hide();
16
    $(".message-title").click(function(e){
21
    $(".notice-title").click(function(e){
17
        $(this).next(".message").toggle();
22
        $(this).next(".notice").toggle();
18
        e.preventDefault();
23
        e.preventDefault();
19
    });
24
    });
20
    
25
    
Lines 22-29 Link Here
22
//]]>
27
//]]>
23
</script>
28
</script>
24
<style type="text/css">
29
<style type="text/css">
25
    p.message { display: none; }
30
    p.notice { display: none; }
26
    a.message-title { font-weight: bold; display: block; }
31
    a.notice-title { font-weight: bold; display: block; }
27
</style>
32
</style>
28
</head>
33
</head>
29
<body id="pat_notices" class="pat">
34
<body id="pat_notices" class="pat">
Lines 39-45 Link Here
39
[% INCLUDE 'members-toolbar.inc' %]
44
[% INCLUDE 'members-toolbar.inc' %]
40
<h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
45
<h1>Sent notices for [% INCLUDE 'patron-title.inc' %]</h1>
41
46
42
47
[% IF ( QUEUED_MESSAGES ) %]
43
    <table id="noticestable">
48
    <table id="noticestable">
44
	<thead>
49
	<thead>
45
	    <tr>
50
	    <tr>
Lines 49-61 Link Here
49
		<th>Time</th>
54
		<th>Time</th>
50
	    </tr>
55
	    </tr>
51
	</thead>
56
	</thead>
52
[% IF ( QUEUED_MESSAGES ) %]
53
	<tbody>
57
	<tbody>
54
	    [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
58
	    [% FOREACH QUEUED_MESSAGE IN QUEUED_MESSAGES %]
55
	    <tr>
59
	    <tr>
56
		<td>
60
		<td>
57
            <a class="message-title" href="#">[% QUEUED_MESSAGE.subject %]</a>
61
            <a class="notice-title" href="#">[% QUEUED_MESSAGE.subject %]</a>
58
            <p class="message">
62
            <p class="notice">
59
                [% QUEUED_MESSAGE.content FILTER html_line_break %]
63
                [% QUEUED_MESSAGE.content FILTER html_line_break %]
60
            </p>
64
            </p>
61
        </td>
65
        </td>
Lines 73-86 Link Here
73
            [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %]deleted
77
            [% ELSIF ( QUEUED_MESSAGE.status == 'deleted' ) %]deleted
74
            [% ELSE %][% QUEUED_MESSAGE.status %][% END %]
78
            [% ELSE %][% QUEUED_MESSAGE.status %][% END %]
75
        </td>
79
        </td>
76
        <td>[% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %]</td>
80
        <td><span title="[% QUEUED_MESSAGE.time_queued %]">[% QUEUED_MESSAGE.time_queued | $KohaDates with_hours => 1 %]</span></td>
77
	    </tr>
81
	    </tr>
78
	    [% END %]
82
	    [% END %]
79
	</tbody>
83
	</tbody>
80
    [% ELSE %]
81
    <tr><td colspan="4">There is no record of any messages that have been sent to this patron.</td></tr>
82
    [% END %]
83
    </table>
84
    </table>
85
[% ELSE %]
86
    <div class="dialog message">There is no record of any messages that have been sent to this patron.</div>
87
[% END %]
84
88
85
</div>
89
</div>
86
</div>
90
</div>
87
- 

Return to bug 9463