Added title to Student Admission (#6379)
This commit is contained in:
parent
b267673b8e
commit
bb5eb7d6f4
@ -90,6 +90,32 @@
|
|||||||
"set_only_once": 0,
|
"set_only_once": 0,
|
||||||
"unique": 0
|
"unique": 0
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"allow_on_submit": 0,
|
||||||
|
"bold": 0,
|
||||||
|
"collapsible": 0,
|
||||||
|
"columns": 0,
|
||||||
|
"fieldname": "title",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"hidden": 0,
|
||||||
|
"ignore_user_permissions": 0,
|
||||||
|
"ignore_xss_filter": 0,
|
||||||
|
"in_filter": 0,
|
||||||
|
"in_list_view": 0,
|
||||||
|
"label": "Title",
|
||||||
|
"length": 0,
|
||||||
|
"no_copy": 0,
|
||||||
|
"permlevel": 0,
|
||||||
|
"precision": "",
|
||||||
|
"print_hide": 0,
|
||||||
|
"print_hide_if_no_value": 0,
|
||||||
|
"read_only": 0,
|
||||||
|
"report_hide": 0,
|
||||||
|
"reqd": 0,
|
||||||
|
"search_index": 0,
|
||||||
|
"set_only_once": 0,
|
||||||
|
"unique": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"allow_on_submit": 0,
|
"allow_on_submit": 0,
|
||||||
"bold": 0,
|
"bold": 0,
|
||||||
@ -363,7 +389,7 @@
|
|||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"istable": 0,
|
"istable": 0,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"modified": "2016-09-15 05:59:18.435682",
|
"modified": "2016-09-15 07:03:55.581346",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Schools",
|
"module": "Schools",
|
||||||
"name": "Student Admission",
|
"name": "Student Admission",
|
||||||
@ -396,6 +422,6 @@
|
|||||||
"read_only_onload": 0,
|
"read_only_onload": 0,
|
||||||
"sort_field": "modified",
|
"sort_field": "modified",
|
||||||
"sort_order": "DESC",
|
"sort_order": "DESC",
|
||||||
"title_field": "program",
|
"title_field": "title",
|
||||||
"track_seen": 0
|
"track_seen": 0
|
||||||
}
|
}
|
@ -17,5 +17,9 @@ class StudentAdmission(WebsiteGenerator):
|
|||||||
def get_context(self, context):
|
def get_context(self, context):
|
||||||
context.parents = [{'name': 'admissions', 'title': _('All Student Admissions') }]
|
context.parents = [{'name': 'admissions', 'title': _('All Student Admissions') }]
|
||||||
|
|
||||||
|
def validate(self):
|
||||||
|
if not self.title:
|
||||||
|
self.title = self.program + " admissions for " + self.academic_year
|
||||||
|
|
||||||
def get_list_context(context):
|
def get_list_context(context):
|
||||||
context.title = _("Student Admissions")
|
context.title = _("Student Admissions")
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
|
|
||||||
<h1>{{ program }}</h1>
|
<h1>{{ title }}</h1>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
@ -22,6 +22,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<table class="table table-bordered" style="margin-top: 20px; width: 30%">
|
<table class="table table-bordered" style="margin-top: 20px; width: 30%">
|
||||||
|
<tr>
|
||||||
|
<th> Program</th>
|
||||||
|
<td>{{ program }} </td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th> Academic Year</th>
|
<th> Academic Year</th>
|
||||||
<td>{{ academic_year }} </td>
|
<td>{{ academic_year }} </td>
|
||||||
|
Loading…
Reference in New Issue
Block a user