1441 |
ariadna |
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 |
{{!
|
|
|
19 |
@template format_remuiformat/card_general_section
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"editing: "0",
|
|
|
25 |
"defaultview: "1/0",
|
|
|
26 |
"expanded: "1/0",
|
|
|
27 |
"collapsed: "1/0",
|
|
|
28 |
"user_id: "1",
|
|
|
29 |
"courseid: "1",
|
|
|
30 |
"generalsection": [
|
|
|
31 |
{
|
|
|
32 |
"generalsectiontitle": "General Section Title",
|
|
|
33 |
"activities": [
|
|
|
34 |
{
|
|
|
35 |
"index": "index",
|
|
|
36 |
"id": "id",
|
|
|
37 |
"completion": "completion",
|
|
|
38 |
"viewurl": "viewurl",
|
|
|
39 |
"title": "title",
|
|
|
40 |
"modulename": "modulename",
|
|
|
41 |
"summary": "summary",
|
|
|
42 |
"completed": "completed",
|
|
|
43 |
"hidden": "hidden",
|
|
|
44 |
"availstatus": "availstatus",
|
|
|
45 |
"modicons": "modicons",
|
|
|
46 |
}
|
|
|
47 |
],
|
|
|
48 |
"generalsectionsummary": "General Section Summary",
|
|
|
49 |
}
|
|
|
50 |
],
|
|
|
51 |
}
|
|
|
52 |
}}
|
|
|
53 |
{{^showgeneralsectionintrodata}}
|
|
|
54 |
{{^activityexists}}
|
|
|
55 |
<style>
|
|
|
56 |
#page-course-view-remuiformat .courseindex-section:first-child {
|
|
|
57 |
display: none !important;
|
|
|
58 |
}
|
|
|
59 |
</style>
|
|
|
60 |
{{/activityexists}}
|
|
|
61 |
{{/showgeneralsectionintrodata}}
|
|
|
62 |
|
|
|
63 |
{{^activityexists}}
|
|
|
64 |
<style>
|
|
|
65 |
#page-course-view-remuiformat .sections.generalsection-container{
|
|
|
66 |
margin-bottom: 0px !important;
|
|
|
67 |
}
|
|
|
68 |
#page-course-view-remuiformat .section-details{
|
|
|
69 |
margin-bottom: 24px;
|
|
|
70 |
}
|
|
|
71 |
</style>
|
|
|
72 |
{{/activityexists}}
|
|
|
73 |
|
|
|
74 |
<li id="section-{{{index}}}" class="section border-0 col-12 p-0">
|
|
|
75 |
<div class="general-section d-flex flex-column">
|
|
|
76 |
{{>format_remuiformat/optional_secheader}}
|
|
|
77 |
<div class="d-none hidden course-prgress-container" data-courseid="{{courseid}}"></div>
|
|
|
78 |
{{#showgeneralsection}}
|
|
|
79 |
|
|
|
80 |
{{#activityexists}}
|
|
|
81 |
<div class="activities-wrapper d-flex flex-column">
|
|
|
82 |
<h4 class="activitieshead m-0">{{#str}} generalactivities, format_remuiformat{{/str}}</h4>
|
|
|
83 |
<ul class="general-section-activities justify-content-start text-center">
|
|
|
84 |
{{#activities}}
|
|
|
85 |
<li class="activity d-flex flex-column justify-content-between list-unstyled {{{modulename}}} modtype_{{{modulename}}}"
|
|
|
86 |
id="module-{{id}}">
|
|
|
87 |
<div class="generalsecactivitiescontent d-flex flex-column justify-content-between w-100 p-0 h-100">
|
|
|
88 |
{{#editing}}
|
|
|
89 |
{{{leftside}}}
|
|
|
90 |
{{/editing}}
|
|
|
91 |
{{! <div> }}
|
|
|
92 |
<div class="activityinstance p-0 m-0 d-flex h-100 flex-column">
|
|
|
93 |
<div class="title-activity-container text-break w-100 text-left ">
|
|
|
94 |
{{{title}}}
|
|
|
95 |
</div>
|
|
|
96 |
{{#modhiddenfromstudents}}
|
|
|
97 |
<div data-region="sectionbadges" class="sectionbadges d-flex align-items-center">
|
|
|
98 |
{{!> core_courseformat/local/content/section/badges }}
|
|
|
99 |
{{>format_remuiformat/edwbadges}}
|
|
|
100 |
</div>
|
|
|
101 |
{{/modhiddenfromstudents}}
|
|
|
102 |
{{#modstealth}}
|
|
|
103 |
<div class=" d-flex align-items-center">
|
|
|
104 |
<span
|
|
|
105 |
class="badge badge-pill badge-warning">{{#str}}hiddenoncoursepage{{/str}}</span>
|
|
|
106 |
</div>
|
|
|
107 |
{{/modstealth}}
|
|
|
108 |
{{#summary}}
|
|
|
109 |
<div class="contentafterlink">
|
|
|
110 |
{{{summary}}}
|
|
|
111 |
</div>
|
|
|
112 |
{{/summary}}
|
|
|
113 |
</div>
|
|
|
114 |
<div class="p-0 action-availstatus-wrapper">
|
|
|
115 |
{{#hasopenduedata}}
|
|
|
116 |
<div class="description text-left">
|
|
|
117 |
<div data-region="activity-dates" class="activity-dates small course-description-item">
|
|
|
118 |
<div class="description-inner">
|
|
|
119 |
{{#opendue}}
|
|
|
120 |
<div>
|
|
|
121 |
<strong>{{label}}</strong> {{timestamp}}
|
|
|
122 |
</div>
|
|
|
123 |
{{/opendue}}
|
|
|
124 |
</div>
|
|
|
125 |
</div>
|
|
|
126 |
</div>
|
|
|
127 |
{{/hasopenduedata}}
|
|
|
128 |
{{{availstatus}}}
|
|
|
129 |
|
|
|
130 |
{{#completion}}
|
|
|
131 |
<div class="actions">
|
|
|
132 |
{{{completion}}}
|
|
|
133 |
</div>
|
|
|
134 |
{{/completion}}
|
|
|
135 |
</div>
|
|
|
136 |
{{!
|
|
|
137 |
</div> }}
|
|
|
138 |
</div>
|
|
|
139 |
</li>
|
|
|
140 |
{{/activities}}
|
|
|
141 |
</ul>
|
|
|
142 |
</div>
|
|
|
143 |
{{/activityexists}}
|
|
|
144 |
<div class="text-center showactivitywrapper">
|
|
|
145 |
<span class="showactivity text-primary show">
|
|
|
146 |
{{#str}}showmore, format_remuiformat{{/str}}
|
|
|
147 |
</span>
|
|
|
148 |
</div>
|
|
|
149 |
</div>
|
|
|
150 |
{{/showgeneralsection}}
|
|
|
151 |
</li>
|