first commit

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 18:11:26 -04:00
commit e592ca6823
27270 changed files with 5002257 additions and 0 deletions
@@ -0,0 +1,65 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_reportbuilder/local/sidebar-menu/area
Template for showing report sidebar menu.
Example context (json):
{
"sidebarmenucards": [{
"menucards": [{
"name": "General",
"items": [{
"name": "Manually added users",
"identifier": "core_reportbuilder:users"
}]
}]
}]
}
}}
<div id="region-sidebar-menu-{{uniqid}}" class="reportbuilder-sidebar-menu d-flex flex-column mr-lg-3 mb-3 mb-lg-0" data-region="sidebar-menu">
<div class="input-group mb-3">
<label for="reportbuilder-sidebar-search">
<span class="sr-only">{{#str}} search, core_search {{/str}}</span>
</label>
<input id="reportbuilder-sidebar-search"
type="text"
class="form-control rounded-left border-right-0"
placeholder="{{#str}} search, core_search {{/str}}"
aria-label="{{#str}} search, core_search {{/str}}"
data-action="sidebar-search">
<div class="input-group-append">
<span class="input-group-text pl-2 pr-0 bg-white">
{{#pix}} a/search, core {{/pix}}
</span>
</div>
</div>
<div class="reportbuilder-sidebar-menu-cards">
{{#sidebarmenucards}}
{{#menucards}}
{{> core_reportbuilder/local/sidebar-menu/card}}
{{/menucards}}
{{/sidebarmenucards}}
</div>
</div>
{{#js}}
require(['core_reportbuilder/sidebar'], function(sidebar) {
sidebar.init('#region-sidebar-menu-{{uniqid}}');
});
{{/js}}
@@ -0,0 +1,45 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_reportbuilder/local/sidebar-menu/card
Template for showing a single report sidebar menu card.
Example context (json):
{
"name": "General",
"key": "general",
"items": [{
"name": "Manually added users",
"identifier": "core_reportbuilder:users"
}]
}
}}
<div data-region="sidebar-card">
{{< core_reportbuilder/toggle_card }}
{{$id}}card_{{key}}{{/id}}
{{$header}}{{name}}{{/header}}
{{$body}}
<div class="list-group list-group-flush">
{{#items}}
{{> core_reportbuilder/local/sidebar-menu/card_item}}
{{/items}}
</div>
{{/body}}
{{/ core_reportbuilder/toggle_card }}
</div>
@@ -0,0 +1,54 @@
{{!
This file is part of Moodle - http://moodle.org/
Moodle is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Moodle is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
}}
{{!
@template core_reportbuilder/local/sidebar-menu/card_item
Template for showing a single element in a sidebar menu card.
Example context (json):
{
"name": "Manually added users",
"identifier": "tool_reportbuilder:users"
}
}}
{{^disabled}}
<a href="#"
title="{{title}}"
role="button"
class="list-group-item list-group-item-action pr-2 bg-transparent"
data-region="sidebar-item"
data-action="{{action}}"
data-unique-identifier="{{identifier}}"
data-name="{{name}}"
>
<span class="d-flex align-items-center justify-content-between">
{{{name}}}
{{#pix}} t/add, core {{/pix}}
</span>
</a>
{{/disabled}}
{{#disabled}}
<div title="{{#str}} notavailable, core {{/str}}"
class="list-group-item list-group-item-action pr-2 bg-transparent text-muted"
data-region="sidebar-item"
>
<span class="d-flex align-items-center justify-content-between">
{{{name}}}
{{#pix}} i/info, core {{/pix}}
</span>
</div>
{{/disabled}}