2019-05-19 10:31:45 +00:00
|
|
|
{% extends "templates/base.html" %}
|
|
|
|
{% block title %}{{ education_settings.portal_title }}{% endblock %}
|
2019-05-30 11:04:53 +00:00
|
|
|
{% from "www/lms/macros/card.html" import program_card %}
|
2019-06-06 10:32:38 +00:00
|
|
|
{% from "www/lms/macros/card.html" import null_card %}
|
2019-05-19 10:31:45 +00:00
|
|
|
|
|
|
|
{% block head_include %}
|
|
|
|
<meta name="description" content="{{ education_settings.description }}" />
|
|
|
|
<meta name="keywords" content="ERP Software, Cloud ERP, Open Source ERP, Accounting Software, Online ERP, Online Accounting, ERP for small business" />
|
|
|
|
<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;
|
|
|
|
}
|
2019-06-06 08:33:01 +00:00
|
|
|
|
|
|
|
section {
|
|
|
|
padding: 5rem 0 5rem 0;
|
|
|
|
}
|
2019-05-19 10:31:45 +00:00
|
|
|
</style>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2019-06-06 08:33:01 +00:00
|
|
|
<section class="top-section" style="padding: 6rem 0rem;">
|
2019-05-19 10:31:45 +00:00
|
|
|
<div class='container pb-5'>
|
|
|
|
<h1>{{ education_settings.portal_title }}</h1>
|
2021-04-19 05:06:40 +00:00
|
|
|
{% if education_settings.description %}
|
|
|
|
<p class='lead'>{{ education_settings.description }}</p>
|
|
|
|
{% endif %}
|
2019-05-19 10:31:45 +00:00
|
|
|
<p class="mt-4">
|
2019-06-06 10:32:38 +00:00
|
|
|
{% if frappe.session.user == 'Guest' %}
|
2020-10-29 05:40:06 +00:00
|
|
|
<a class="btn btn-primary btn-lg" href="/login#signup">{{_('Sign Up')}}</a>
|
2019-06-06 10:32:38 +00:00
|
|
|
{% endif %}
|
2019-05-19 10:31:45 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class='container'>
|
|
|
|
<div class="row mt-5">
|
2019-06-06 10:32:38 +00:00
|
|
|
{% if featured_programs %}
|
2021-04-19 05:06:40 +00:00
|
|
|
{% for program in featured_programs %}
|
|
|
|
{{ program_card(program.program, program.has_access) }}
|
|
|
|
{% endfor %}
|
2019-06-12 09:23:00 +00:00
|
|
|
{% for n in range( (3 - (featured_programs|length)) %3) %}
|
2019-06-06 10:32:38 +00:00
|
|
|
{{ null_card() }}
|
|
|
|
{% endfor %}
|
2021-04-19 05:06:40 +00:00
|
|
|
{% else %}
|
|
|
|
<p class="lead">You have not enrolled in any program. Contact your Instructor.</p>
|
2019-06-06 10:32:38 +00:00
|
|
|
{% endif %}
|
2019-05-19 10:31:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2020-10-29 05:40:06 +00:00
|
|
|
{% endblock %}
|