Merge pull request #413 from pateljannat/stats-template
This commit is contained in:
@@ -1 +1,15 @@
|
|||||||
{% include "lms/templates/statistics.html" %}
|
{% if title %}
|
||||||
|
<h2 class="hero-title">
|
||||||
|
{{ _(title) }}
|
||||||
|
</h2>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if subtitle %}
|
||||||
|
<p class="hero-subtitle">
|
||||||
|
{{ _(subtitle) }}
|
||||||
|
</p>
|
||||||
|
{%- endif -%}
|
||||||
|
|
||||||
|
<div class="mt-12">
|
||||||
|
{% include "lms/templates/statistics.html" %}
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -4,6 +4,22 @@
|
|||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"doctype": "Web Template",
|
"doctype": "Web Template",
|
||||||
"fields": [
|
"fields": [
|
||||||
|
{
|
||||||
|
"__islocal": 1,
|
||||||
|
"__unsaved": 1,
|
||||||
|
"fieldname": "title",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "Title",
|
||||||
|
"reqd": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"__islocal": 1,
|
||||||
|
"__unsaved": 1,
|
||||||
|
"fieldname": "subtitle",
|
||||||
|
"fieldtype": "Text",
|
||||||
|
"label": "Subtitle",
|
||||||
|
"reqd": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "published_courses",
|
"fieldname": "published_courses",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
@@ -24,10 +40,10 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"idx": 0,
|
"idx": 0,
|
||||||
"modified": "2022-09-28 17:44:37.982923",
|
"modified": "2022-10-20 20:10:48.490785",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "LMS",
|
"module": "LMS",
|
||||||
"name": "Dashboard Stats",
|
"name": "LMS Statistics",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"standard": 1,
|
"standard": 1,
|
||||||
"template": "",
|
"template": "",
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
{{ _("Published Courses") }}
|
{{ _("Published Courses") }}
|
||||||
</div>
|
</div>
|
||||||
<div class="stats-value">
|
<div class="stats-value">
|
||||||
{{ format_number(frappe.db.count("LMS Course", { "published": 1, "upcoming": 0 })) }}
|
{{ frappe.db.count("LMS Course", { "published": 1, "upcoming": 0 }) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
{{ _("Total Signups") }}
|
{{ _("Total Signups") }}
|
||||||
</div>
|
</div>
|
||||||
<div class="stats-value">
|
<div class="stats-value">
|
||||||
{{ format_number(frappe.db.count("User", { "enabled": 1 })) }}
|
{{ frappe.db.count("User", { "enabled": 1 }) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
{{ _("Enrollment Count") }}
|
{{ _("Enrollment Count") }}
|
||||||
</div>
|
</div>
|
||||||
<div class="stats-value">
|
<div class="stats-value">
|
||||||
{{ format_number(frappe.db.count("LMS Batch Membership")) }}
|
{{ frappe.db.count("LMS Batch Membership") }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user