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,120 @@
{{!
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/settings/area
Template for system report filters area
Example context (json):
{
"conditions": [{
"hasavailableconditions": true,
"availableconditions": [{
"optiongroup": [{
"text": "User",
"values": [{
"value": 1,
"visiblename": "User name"
}]
}]
}],
"hasactiveconditions": true,
"activeconditionsform": "form"
}],
"filters": [{
"hasavailablefilters": true,
"availablefilters": [{
"optiongroup": [{
"text": "User",
"values": [{
"value": 1,
"visiblename": "User name"
}]
}]
}],
"hasactivefilters": true,
"activefilters": [{
"heading": "Email address",
"entityname": "user",
"headingeditable": "Email address"
}]
}],
"sorting": [{
"hassortablecolumns": true,
"sortablecolumns": [{
"id": 1,
"title": "Email address",
"sortdirection": "4",
"sortenabled": true,
"sortorder": 1,
"sorticon": [{
"key": "t/uplong",
"component": "core",
"title": "Sort column 'Email address' ascending"
}],
"heading": "Email address"
}]
}],
"cardview": {
"form": "form"
}
}
}}
<div class="reportbuilder-sidebar-settings d-flex flex-column mt-3 mt-lg-0 mb-3 mb-lg-0 ml-lg-3">
{{< core_reportbuilder/toggle_card }}
{{$collapsed}}collapsed{{/collapsed}}
{{$id}}settingsconditions{{/id}}
{{$header}}{{#str}} conditions, core_reportbuilder {{/str}}{{/header}}
{{$helpicon}}{{{conditions.helpicon}}}{{/helpicon}}
{{$body}}
{{> core_reportbuilder/local/settings/conditions}}
{{/body}}
{{/ core_reportbuilder/toggle_card }}
{{< core_reportbuilder/toggle_card }}
{{$collapsed}}collapsed{{/collapsed}}
{{$id}}settingsfilters{{/id}}
{{$header}}{{#str}} filters, core_reportbuilder {{/str}}{{/header}}
{{$helpicon}}{{{filters.helpicon}}}{{/helpicon}}
{{$body}}
{{> core_reportbuilder/local/settings/filters}}
{{/body}}
{{/ core_reportbuilder/toggle_card }}
{{< core_reportbuilder/toggle_card }}
{{$collapsed}}collapsed{{/collapsed}}
{{$id}}settingssorting{{/id}}
{{$header}}{{#str}} sorting, core_reportbuilder {{/str}}{{/header}}
{{$helpicon}}{{{sorting.helpicon}}}{{/helpicon}}
{{$body}}
{{> core_reportbuilder/local/settings/sorting}}
{{/body}}
{{/ core_reportbuilder/toggle_card }}
{{< core_reportbuilder/toggle_card }}
{{$collapsed}}collapsed{{/collapsed}}
{{$id}}settingscardview{{/id}}
{{$header}}{{#str}} cardview, core_reportbuilder {{/str}}{{/header}}
{{$helpicon}}{{{cardview.helpicon}}}{{/helpicon}}
{{$body}}
{{> core_reportbuilder/local/settings/card_view}}
{{/body}}
{{/ core_reportbuilder/toggle_card }}
</div>
@@ -0,0 +1,34 @@
{{!
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/settings/card_view
Template for custom report card view settings area
Example context (json):
{
"cardview": {
"form": "form"
}
}
}}
<div class="px-4 pt-4 pb-0" data-region="settings-cardview">
{{#cardview}}
{{{form}}}
{{/cardview}}
</div>
@@ -0,0 +1,72 @@
{{!
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/settings/conditions
Template for custom report conditions settings area
Example context (json):
{
"conditions": [{
"hasavailableconditions": true,
"availableconditions": [{
"optiongroup": [{
"text": "User",
"values": [{
"value": 1,
"visiblename": "User name"
}]
}]
}],
"hasactiveconditions": true,
"activeconditionsform": "form"
}]
}
}}
<div class="p-2" data-region="settings-conditions">
{{#conditions}}
{{#hasavailableconditions}}
<div class="reportbuilder-conditions-select">
<label for="addconditionselect" class="sr-only">{{#str}} selectacondition, core_reportbuilder {{/str}}</label>
<select id="addconditionselect" data-action="report-add-condition" class="w-100 custom-select">
<option value="0"></option>
{{#availableconditions}}
{{#optiongroup}}
<option disabled class="suggestions-heading">{{text}}</option>
{{#values}}
<option value="{{value}}">{{visiblename}}</option>
{{/values}}
{{/optiongroup}}
{{/availableconditions}}
</select>
</div>
{{/hasavailableconditions}}
<div class="reportbuilder-conditions-list" data-region="conditions-form">
{{#hasactiveconditions}}
{{{activeconditionsform}}}
{{/hasactiveconditions}}
{{^hasactiveconditions}}
{{< core_reportbuilder/local/settings/empty_message }}
{{$nothingtoshow}} {{#str}} noconditions, core_reportbuilder {{/str}} {{/nothingtoshow}}
{{/ core_reportbuilder/local/settings/empty_message }}
{{/hasactiveconditions}}
</div>
{{/conditions}}
</div>
@@ -0,0 +1,31 @@
{{!
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/settings/empty_message
Template for empty_message
Example context (json):
{
"nothingtoshow": "Nothing to show"
}
}}
<div class="d-flex justify-content-center">
<div class="text-xs-center text-center mt-3" data-region="empty-message">
<p class="text-muted mt-3">{{$nothingtoshow}}{{nothingtoshow}}{{/nothingtoshow}}</p>
</div>
</div>
@@ -0,0 +1,98 @@
{{!
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/settings/filters
Template for custom report filters settings area
Example context (json):
{
"filters": [{
"hasavailablefilters": true,
"availablefilters": [{
"optiongroup": [{
"text": "User",
"values": [{
"value": 1,
"visiblename": "User name"
}]
}]
}],
"hasactivefilters": true,
"activefilters": [{
"heading": "Email address",
"entityname": "user",
"headingeditable": "Email address"
}]
}]
}
}}
<div class="p-2" data-region="settings-filters">
{{#filters}}
{{#hasavailablefilters}}
<div class="reportbuilder-filters-select">
<label for="addfilterselect" class="sr-only">{{#str}}selectafilter, core_reportbuilder{{/str}}</label>
<select id="addfilterselect" name="addfilterselect" data-action="report-add-filter" class="w-100 custom-select">
<option value="0"></option>
{{#availablefilters}}
{{#optiongroup}}
<option disabled class="suggestions-heading">{{text}}</option>
{{#values}}
<option value="{{value}}">{{visiblename}}</option>
{{/values}}
{{/optiongroup}}
{{/availablefilters}}
</select>
</div>
{{/hasavailablefilters}}
<div data-region="active-filters" class="form-vertical">
{{#hasactivefilters}}
<ul class="list-group reportbuilder-sortable-list mt-2 ml-0">
{{#activefilters}}
<li class="list-group-item list-group-item-action d-flex align-items-start text-dark"
data-region="active-filter" data-filter-id="{{id}}" data-filter-name="{{heading}}" data-filter-position="{{sortorder}}">
{{>core/drag_handle}}
<div>
<div class="d-flex">
<small class="text-muted text-uppercase">{{entityname}} • {{heading}}</small>
</div>
<div>
{{{headingeditable}}}
</div>
</div>
<button class="btn btn-link p-0 ml-auto"
type="button"
data-action="report-remove-filter"
title="{{#str}}deletefilter, core_reportbuilder, {{{heading}}}{{/str}}"
aria-label="{{#str}}deletefilter, core_reportbuilder, {{{heading}}}{{/str}}">
{{#pix}}e/cancel, core{{/pix}}
</button>
</li>
{{/activefilters}}
</ul>
{{/hasactivefilters}}
{{^hasactivefilters}}
{{< core_reportbuilder/local/settings/empty_message }}
{{$nothingtoshow}} {{#str}} nofilters, core_reportbuilder {{/str}} {{/nothingtoshow}}
{{/ core_reportbuilder/local/settings/empty_message }}
{{/hasactivefilters}}
</div>
{{/filters}}
</div>
@@ -0,0 +1,82 @@
{{!
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/settings/sorting
Template for custom report sortable columns settings area
Example context (json):
{
"sorting": [{
"hassortablecolumns": true,
"sortablecolumns": [{
"id": 1,
"title": "Email address",
"sortdirection": "4",
"sortenabled": true,
"sortorder": 1,
"sorticon": [{
"key": "t/uplong",
"component": "core",
"title": "Sort column 'Email address' ascending"
}],
"heading": "Email address"
}]
}]
}
}}
<div class="p-2" data-region="settings-sorting">
{{#sorting}}
{{#hassortablecolumns}}
<ul class="list-group reportbuilder-sortable-list ml-0">
{{#sortablecolumns}}
<li class="list-group-item list-group-item-action d-flex align-items-center text-dark"
data-column-sort-id="{{id}}"
data-column-sort-name="{{title}}"
data-column-sort-direction="{{sortdirection}}"
data-column-sort-position="{{sortorder}}">
{{>core/drag_handle}}
{{#sorticon}}
<span class="float-right">
<button id="toggle-sort-direction-{{id}}"
class="btn btn-link p-0"
data-action="report-toggle-sort-direction"
title="{{{title}}}"
aria-label="{{{title}}}"
{{^sortenabled}}disabled{{/sortenabled}}>
{{#sorticon}}{{#pix}}{{key}}, {{component}}{{/pix}}{{/sorticon}}
</button>
</span>
{{/sorticon}}
<input id="toggle-sort-{{id}}" title="{{{sortenabledtitle}}}" data-action="report-toggle-column-sorting" type="checkbox" {{#sortenabled}}checked{{/sortenabled}}>
<label for="toggle-sort-{{id}}" class="mb-0">
<span class="ml-2 text-dark {{^sortenabled}}text-muted{{/sortenabled}}">{{{heading}}}</span>
<span class="sr-only">{{{sortenabledtitle}}}</span>
</label>
</li>
{{/sortablecolumns}}
</ul>
{{/hassortablecolumns}}
{{^hassortablecolumns}}
{{< core_reportbuilder/local/settings/empty_message }}
{{$nothingtoshow}}{{#str}} nosortablecolumns, core_reportbuilder {{/str}} {{/nothingtoshow}}
{{/ core_reportbuilder/local/settings/empty_message }}
{{/hassortablecolumns}}
{{/sorting}}
</div>