refactor: renamed app to lms

This commit is contained in:
Jannat Patel
2022-03-19 17:30:00 +05:30
parent 1b04615bff
commit c971d34d67
643 changed files with 227 additions and 235 deletions

View File

@@ -0,0 +1,50 @@
<div class="course-home-headings section-heading text-center" style="margin-bottom: 40px"> {{ _(title) }} </div>
<div class="carousel slide" id="carouselExampleControls" data-ride="carousel" data-interval="false">
<div class="carousel-inner">
{% for testimonial_row in testimonials_table %}
{% set review = frappe.db.get_value("LMS Course Review", testimonial_row.testimonials, ["owner", "review"], as_dict=True) %}
{% set member = frappe.db.get_value("User", review.owner, ["name", "username", "full_name", "user_image", "headline"], as_dict=True) %}
{% if loop.index % 3 == 1 %}
<div class="carousel-item {% if loop.index == 1 %} active {% endif %}"> <div class="cards-parent">
{% endif %}
<div class="common-card-style testimonial-card">
<div class="testimonial-review">
{{ review.review }}
</div>
<div class="d-flex align-items-center">
<div>
{{ widgets.Avatar(member=member, avatar_class="avatar-small") }}
</div>
<div class="ml-3">
<div class="testimonial-author" >{{ member.full_name }}</div>
{% if member.headline %}<div class="testimonial-profession">{{ member.headline }}</div> {% endif %}
</div>
</div>
</div>
{% if loop.index % 3 == 0 or loop.index == testimonials_table | length %} </div> </div> {% endif %}
{% endfor %}
</div>
{% if testimonials_table | length > 3 %}
<div class="slider-controls">
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<ol class="carousel-indicators">
{% set number_of_slides = (testimonials_table|length / 3)|round(method="ceil")|int %}
{% for i in range(number_of_slides) %}
<li data-target="#carouselExampleControls" data-slide-to="{{ i }}" {% if i == 0 %} class="active" {% endif %} ></li>
{% endfor %}
</ol>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
{% endif %}
</div>

View File

@@ -0,0 +1,42 @@
{
"__unsaved": 1,
"creation": "2021-11-16 15:22:21.788234",
"docstatus": 0,
"doctype": "Web Template",
"fields": [
{
"__islocal": 1,
"__unsaved": 1,
"fieldname": "title",
"fieldtype": "Data",
"label": "Title",
"reqd": 0
},
{
"__islocal": 1,
"__unsaved": 1,
"fieldname": "testimonials_table",
"fieldtype": "Table Break",
"label": "Testimonials",
"reqd": 0
},
{
"__islocal": 1,
"__unsaved": 1,
"fieldname": "testimonials",
"fieldtype": "Link",
"label": "Testimonials",
"options": "LMS Course Review",
"reqd": 0
}
],
"idx": 0,
"modified": "2021-11-16 17:17:49.089989",
"modified_by": "Administrator",
"module": "Community",
"name": "Multiple Testimonials",
"owner": "Administrator",
"standard": 1,
"template": "",
"type": "Section"
}