brotherton-erpnext/erpnext/www/lms/all-programs.html

50 lines
1.2 KiB
HTML
Raw Normal View History

2019-05-19 10:31:45 +00:00
{% extends "templates/base.html" %}
{% block title %}All Programs{% endblock %}
2019-05-30 11:04:53 +00:00
{% from "www/lms/macros/card.html" import program_card %}
2019-05-19 10:31:45 +00:00
{% block head_include %}
<style>
div.card-hero-img {
height: 220px;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
background-color: rgb(250, 251, 252);
}
.card-image-wrapper {
display: flex;
overflow: hidden;
height: 220px;
background-color: rgb(250, 251, 252);
justify-content: center;
}
.image-body {
align-self: center;
color: #d1d8dd;
font-size: 24px;
font-weight: 600;
line-height: 1;
padding: 20px;
}
</style>
{% endblock %}
{% block content %}
<section class="top-section ">
<div class='container pb-5'>
<h1>All Programs</h1>
<p class="mt-4">
2019-05-30 11:04:53 +00:00
<a class="btn btn-primary btn-lg" href="{{ '/login#signup' if frappe.session.user == 'Guest' else '/lms/all-programs' }}">{{ 'Start Learning' if frappe.session.user == 'Guest' else 'Explore Programs'}}</a>
2019-05-19 10:31:45 +00:00
</p>
</div>
<div class='container'>
<div class="row mt-5">
{% for program in all_programs %}
{{ program_card(program.program, program.has_access) }}
2019-05-19 10:31:45 +00:00
{% endfor %}
</div>
</div>
</section>
{% endblock %}