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_edit
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"editing: "1",
|
|
|
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 |
"sections": [
|
|
|
52 |
{
|
|
|
53 |
"index": "1",
|
|
|
54 |
"title": "Section Title",
|
|
|
55 |
"singlepageurl": "Single Page URL",
|
|
|
56 |
"hiddenmessage": "Hidden message",
|
|
|
57 |
"summary": "Summary",
|
|
|
58 |
"hidden": "1/0",
|
|
|
59 |
"activityinfostring": "2 Files, 2 Quizzes"
|
|
|
60 |
"sectionactivities" [
|
|
|
61 |
{
|
|
|
62 |
}
|
|
|
63 |
]
|
|
|
64 |
}
|
|
|
65 |
]
|
|
|
66 |
}
|
|
|
67 |
}}
|
|
|
68 |
<li id="section-{{{index}}}" class="border-0 section main cards col-lg-12 col-sm-12 p-0">
|
|
|
69 |
<div class="general-section d-flex flex-column">
|
|
|
70 |
{{>format_remuiformat/optional_secheader}}
|
|
|
71 |
<div class="d-none hidden course-prgress-container" data-courseid="{{courseid}}"></div>
|
|
|
72 |
<div class="section-details">
|
|
|
73 |
<div class="generaldetails content">
|
|
|
74 |
<div class="left side">
|
|
|
75 |
{{{ leftsection }}}
|
|
|
76 |
</div>
|
|
|
77 |
<div class="right side">
|
|
|
78 |
{{{ optionmenu }}}
|
|
|
79 |
</div>
|
|
|
80 |
<div class="generaldetails content d-flex flex-column"></div>
|
|
|
81 |
<h2 class="section-title pt-0 p-t-0 m-0">{{{title}}}</h2>
|
|
|
82 |
<div class='generalsectioninfo'>
|
|
|
83 |
{{{availability}}}
|
|
|
84 |
{{#fullsummary}}
|
|
|
85 |
{{! <input type="checkbox" class="read-more-state" id="read-more-summary" /> }}
|
|
|
86 |
<div class="read-more-target coursesummary" >{{{fullsummary}}}
|
|
|
87 |
</div>
|
|
|
88 |
<a id="readmorebtn" class="d-none readbtn">{{#str}} showmore, format_remuiformat{{/str}}</a>
|
|
|
89 |
<a id="readlessbtn" class="d-none readbtn">{{#str}} showless, format_remuiformat{{/str}}</a>
|
|
|
90 |
{{! <label for="read-more-summary" class=" text-primary small read-more-trigger"></label> }}
|
|
|
91 |
{{/fullsummary}}
|
|
|
92 |
<a class="text-muted" href="{{ editsetionurl }}"><span><i class="fa fa-cog font-size-20"
|
|
|
93 |
aria-hidden="true"></i></span></a>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
<div class="coursedetails">
|
|
|
97 |
<div class="details d-flex flex-column">
|
|
|
98 |
{{!> format_remuiformat/course_progress }}
|
|
|
99 |
<h3 class="m-0 activities-title">{{#str}}courseinformation,format_remuiformat{{/str}}</h3>
|
|
|
100 |
<ul class="section-activities-summary">
|
|
|
101 |
{{#activitylist}}
|
|
|
102 |
<li class="item">{{ . }}</li>
|
|
|
103 |
{{/activitylist}}
|
|
|
104 |
</ul>
|
|
|
105 |
</div>
|
|
|
106 |
</div>
|
|
|
107 |
</div>
|
|
|
108 |
{{#activityexists}}
|
|
|
109 |
<div class="activities-wrapper d-flex flex-column">
|
|
|
110 |
<h4 class="activitieshead m-0">{{#str}} generalactivities, format_remuiformat{{/str}}</h4>
|
|
|
111 |
<div class="content">
|
|
|
112 |
<div class="summary"></div>
|
|
|
113 |
<ul class="img-text section general-section-activities text-center yui3-dd-drop"
|
|
|
114 |
data-draggroups="resource">
|
|
|
115 |
{{#activities}}
|
|
|
116 |
<li class="activity {{{modulename}}} modtype_{{{modulename}}} d-flex flex-column justify-content-between list-unstyled yui3-dd-drop"
|
|
|
117 |
id="module-{{id}}" data-draggroups="resource">
|
|
|
118 |
|
|
|
119 |
<div class="activityinstance p-0 m-0 d-flex h-100 flex-column">
|
|
|
120 |
<div class="title-activity-container text-break w-100 text-left ">
|
|
|
121 |
{{{title}}}
|
|
|
122 |
</div>
|
|
|
123 |
{{#modhiddenfromstudents}}
|
|
|
124 |
<div data-region="sectionbadges" class="sectionbadges d-flex align-items-center">
|
|
|
125 |
{{!> core_courseformat/local/content/section/badges }}
|
|
|
126 |
{{>format_remuiformat/edwbadges}}
|
|
|
127 |
</div>
|
|
|
128 |
{{/modhiddenfromstudents}}
|
|
|
129 |
{{#modstealth}}
|
|
|
130 |
<div class="d-flex align-items-center">
|
|
|
131 |
<span class="badge badge-pill badge-warning">{{#str}}hiddenoncoursepage{{/str}}</span>
|
|
|
132 |
</div>
|
|
|
133 |
{{/modstealth}}
|
|
|
134 |
{{#summary}}
|
|
|
135 |
<div class="contentafterlink">
|
|
|
136 |
{{{summary}}}
|
|
|
137 |
</div>
|
|
|
138 |
{{/summary}}
|
|
|
139 |
<span class=""><span class="editing_move moodle-core-dragdrop-draghandle"
|
|
|
140 |
title="{{#str}} moveresource, format_remuiformat {{/str}}" tabindex="0"
|
|
|
141 |
data-draggroups="resource" role="button" data-sectionreturn="0"
|
|
|
142 |
style="cursor: move;">{{#pix}} i/move_2d,core {{/pix}}</span>
|
|
|
143 |
</span>
|
|
|
144 |
</div>
|
|
|
145 |
<div class="p-0 action-availstatus-wrapper">
|
|
|
146 |
{{#hasopenduedata}}
|
|
|
147 |
<div class="description text-left">
|
|
|
148 |
<div data-region="activity-dates" class="activity-dates small course-description-item">
|
|
|
149 |
<div class="description-inner">
|
|
|
150 |
{{#opendue}}
|
|
|
151 |
<div>
|
|
|
152 |
<strong>{{label}}</strong> {{timestamp}}
|
|
|
153 |
</div>
|
|
|
154 |
{{/opendue}}
|
|
|
155 |
</div>
|
|
|
156 |
</div>
|
|
|
157 |
</div>
|
|
|
158 |
{{/hasopenduedata}}
|
|
|
159 |
{{{availstatus}}}
|
|
|
160 |
<div class="actions">
|
|
|
161 |
{{{completion}}}
|
|
|
162 |
{{{modicons}}}
|
|
|
163 |
</div>
|
|
|
164 |
</div>
|
|
|
165 |
|
|
|
166 |
</li>
|
|
|
167 |
{{/activities}}
|
|
|
168 |
</ul>
|
|
|
169 |
</div>
|
|
|
170 |
</div>
|
|
|
171 |
{{/activityexists}}
|
|
|
172 |
<div class="text-center showactivitywrapper">
|
|
|
173 |
<span class="showactivity text-primary show">
|
|
|
174 |
{{#str}}showmore, format_remuiformat{{/str}}
|
|
|
175 |
</span>
|
|
|
176 |
</div>
|
|
|
177 |
{{{addnewactivity}}}
|
|
|
178 |
</div>
|
|
|
179 |
</li>
|