Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<!--
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// Moodle is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// Moodle is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
 
17
/**
18
 * @package    block_quickmail
19
 * @copyright  2008 onwards Louisiana State University
20
 * @copyright  2008 onwards Chad Mazilly, Robert Russo, Jason Peak, Dave Elliott, Adam Zapletal, Philip Cali
21
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
22
 */
23
-->
24
 
25
<div class="block_quickmail_draft_message_index">
26
    <select id="select_course_filter" class="custom-select mb-4">
27
        <option value="0">{{# str }} fulllistofcourses {{/ str }}</option>
28
        {{# userCourseArray }}
29
            <option value="{{ userCourseId }}" {{ selectedAttr }}>{{ userCourseName }}</option>
30
        {{/ userCourseArray }}
31
    </select>
32
 
33
    <table class="table table-hover">
34
        <thead>
35
            <tr>
36
                {{#courseIsSorted}}
37
                    {{#isSortedAsc}}
38
                        <th><a href="?courseid={{ courseId }}&sort=course&dir=desc">{{# str }} course {{/ str }}</a> {{#pix}} t/sort_asc {{/pix}}</th>
39
                    {{/isSortedAsc}}
40
 
41
                    {{^isSortedAsc}}
42
                        <th><a href="?courseid={{ courseId }}&sort=course&dir=asc">{{# str }} course {{/ str }}</a> {{#pix}} t/sort_desc {{/pix}}</th>
43
                    {{/isSortedAsc}}
44
                {{/courseIsSorted}}
45
                {{^courseIsSorted}}
46
                    <th><a href="?courseid={{ courseId }}&sort=course&dir=asc">{{# str }} course {{/ str }}</a></th>
47
                {{/courseIsSorted}}
48
 
49
                {{#subjectIsSorted}}
50
                    {{#isSortedAsc}}
51
                        <th><a href="?courseid={{ courseId }}&sort=subject&dir=desc">{{# str }} subject, block_quickmail {{/ str }}</a> {{#pix}} t/sort_asc {{/pix}}</th>
52
                    {{/isSortedAsc}}
53
 
54
                    {{^isSortedAsc}}
55
                        <th><a href="?courseid={{ courseId }}&sort=subject&dir=asc">{{# str }} subject, block_quickmail {{/ str }}</a> {{#pix}} t/sort_desc {{/pix}}</th>
56
                    {{/isSortedAsc}}
57
                {{/subjectIsSorted}}
58
                {{^subjectIsSorted}}
59
                    <th><a href="?courseid={{ courseId }}&sort=subject&dir=asc">{{# str }} subject, block_quickmail {{/ str }}</a></th>
60
                {{/subjectIsSorted}}
61
 
62
                <th>{{# str }} message_preview, block_quickmail {{/ str }}</th>
63
 
64
                {{#createdIsSorted}}
65
                    {{#isSortedAsc}}
66
                        <th><a href="?courseid={{ courseId }}&sort=created&dir=desc">{{# str }} created, block_quickmail {{/ str }}</a> {{#pix}} t/sort_asc {{/pix}}</th>
67
                    {{/isSortedAsc}}
68
 
69
                    {{^isSortedAsc}}
70
                        <th><a href="?courseid={{ courseId }}&sort=created&dir=asc">{{# str }} created, block_quickmail {{/ str }}</a> {{#pix}} t/sort_desc {{/pix}}</th>
71
                    {{/isSortedAsc}}
72
                {{/createdIsSorted}}
73
                {{^createdIsSorted}}
74
                    <th><a href="?courseid={{ courseId }}&sort=created&dir=asc">{{# str }} created, block_quickmail {{/ str }}</a></th>
75
                {{/createdIsSorted}}
76
 
77
                {{#modifiedIsSorted}}
78
                    {{#isSortedAsc}}
79
                        <th><a href="?courseid={{ courseId }}&sort=modified&dir=desc">{{# str }} last_updated, block_quickmail {{/ str }}</a> {{#pix}} t/sort_asc {{/pix}}</th>
80
                    {{/isSortedAsc}}
81
 
82
                    {{^isSortedAsc}}
83
                        <th><a href="?courseid={{ courseId }}&sort=modified&dir=asc">{{# str }} last_updated, block_quickmail {{/ str }}</a> {{#pix}} t/sort_desc {{/pix}}</th>
84
                    {{/isSortedAsc}}
85
                {{/modifiedIsSorted}}
86
                {{^modifiedIsSorted}}
87
                    <th><a href="?courseid={{ courseId }}&sort=modified&dir=asc">{{# str }} last_updated, block_quickmail {{/ str }}</a></th>
88
                {{/modifiedIsSorted}}
89
 
90
                <th></th>
91
            </tr>
92
        </thead>
93
        <tbody>
94
            {{# tableRows }}
95
                <tr>
96
                    <td>{{ courseName }}</td>
97
                    <td>{{ subjectPreview }}</td>
98
                    <td>{{ messagePreview }}</td>
99
                    <td>{{ createdAt }}</td>
100
                    <td>{{ lastModifiedAt }}</td>
101
                    <td>
102
                        <a href="{{ openUrl }}" class="btn btn-primary btn-sm">{{# str }} edit {{/ str }}</a>
103
                        <a href="?action=duplicate&id={{ id }}" class="btn btn-info btn-sm btn-duplicate-draft">{{# str }} duplicate {{/ str }}</a>
104
                        <a href="?action=delete&id={{ id }}" class="btn btn-danger btn-sm btn-delete-draft">{{# str }} delete {{/ str }}</a>
105
                    </td>
106
                </tr>
107
            {{/ tableRows }}
108
 
109
            {{^ tableRows }}
110
                <tr>
111
                    <td colspan="5" align="center">{{# str }} no_drafts, block_quickmail {{/ str }}</td>
112
                </tr>
113
            {{/ tableRows }}
114
        </tbody>
115
    </table>
116
 
117
    {{< block_quickmail/pagination }}
118
    {{/ block_quickmail/pagination }}
119
 
120
    <a href="{{ urlBack }}" class="btn btn-secondary">{{ urlBackLabel }}</a>
121
</div>