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,
|
||||
"doctype": "Web Template",
|
||||
"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",
|
||||
"fieldtype": "Check",
|
||||
@@ -24,10 +40,10 @@
|
||||
}
|
||||
],
|
||||
"idx": 0,
|
||||
"modified": "2022-09-28 17:44:37.982923",
|
||||
"modified": "2022-10-20 20:10:48.490785",
|
||||
"modified_by": "Administrator",
|
||||
"module": "LMS",
|
||||
"name": "Dashboard Stats",
|
||||
"name": "LMS Statistics",
|
||||
"owner": "Administrator",
|
||||
"standard": 1,
|
||||
"template": "",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
{{ _("Published Courses") }}
|
||||
</div>
|
||||
<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>
|
||||
{% endif %}
|
||||
@@ -17,7 +17,7 @@
|
||||
{{ _("Total Signups") }}
|
||||
</div>
|
||||
<div class="stats-value">
|
||||
{{ format_number(frappe.db.count("User", { "enabled": 1 })) }}
|
||||
{{ frappe.db.count("User", { "enabled": 1 }) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -28,7 +28,7 @@
|
||||
{{ _("Enrollment Count") }}
|
||||
</div>
|
||||
<div class="stats-value">
|
||||
{{ format_number(frappe.db.count("LMS Batch Membership")) }}
|
||||
{{ frappe.db.count("LMS Batch Membership") }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user