feat: batch folders, redirects, members page
This commit is contained in:
13
community/www/courses/schedule/index.html
Normal file
13
community/www/courses/schedule/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "templates/base.html" %}
|
||||
{% from "www/macros/sidebar.html" import Sidebar %}
|
||||
{% block title %}Schedule{% endblock %}
|
||||
{% block head_include %}
|
||||
<meta name="description" content="Courses" />
|
||||
<meta name="keywords" content="" />
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{{ Sidebar(course, batch_code) }}
|
||||
<div class="container">
|
||||
</div>
|
||||
{% endblock %}
|
||||
8
community/www/courses/schedule/index.py
Normal file
8
community/www/courses/schedule/index.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import frappe
|
||||
from community.www.courses.utils import redirect_if_not_a_member
|
||||
|
||||
def get_context(context):
|
||||
context.no_cache = 1
|
||||
context.course = frappe.form_dict["course"]
|
||||
context.batch_code = frappe.form_dict["batch"]
|
||||
redirect_if_not_a_member(context.course, context.batch_code)
|
||||
Reference in New Issue
Block a user