fix: translation syntax
This commit is contained in:
@@ -46,7 +46,9 @@ def add_student(email, class_name):
|
|||||||
"parentfield": "students",
|
"parentfield": "students",
|
||||||
}
|
}
|
||||||
if frappe.db.exists("Class Student", filters):
|
if frappe.db.exists("Class Student", filters):
|
||||||
frappe.throw(_(f"Student {frappe.bold(email)} has already been added to this class."))
|
frappe.throw(
|
||||||
|
_("Student {0} has already been added to this class.").format(frappe.bold(email))
|
||||||
|
)
|
||||||
|
|
||||||
frappe.get_doc(
|
frappe.get_doc(
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"list_columns": [],
|
"list_columns": [],
|
||||||
"login_required": 1,
|
"login_required": 1,
|
||||||
"max_attachment_size": 0,
|
"max_attachment_size": 0,
|
||||||
"modified": "2022-02-26 17:05:30.851122",
|
"modified": "2023-02-23 13:04:00.405266",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "LMS",
|
"module": "LMS",
|
||||||
"name": "evaluation",
|
"name": "evaluation",
|
||||||
@@ -31,7 +31,6 @@
|
|||||||
"show_attachments": 0,
|
"show_attachments": 0,
|
||||||
"show_list": 1,
|
"show_list": 1,
|
||||||
"show_sidebar": 0,
|
"show_sidebar": 0,
|
||||||
"success_message": "Evaluation has been submitted successfully.",
|
|
||||||
"title": "Evaluation",
|
"title": "Evaluation",
|
||||||
"web_form_fields": [
|
"web_form_fields": [
|
||||||
{
|
{
|
||||||
@@ -121,6 +120,18 @@
|
|||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"show_in_filter": 0
|
"show_in_filter": 0
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"allow_read_on_all_link_options": 0,
|
||||||
|
"fieldname": "rating",
|
||||||
|
"fieldtype": "Rating",
|
||||||
|
"hidden": 0,
|
||||||
|
"label": "Rating",
|
||||||
|
"max_length": 0,
|
||||||
|
"max_value": 0,
|
||||||
|
"read_only": 0,
|
||||||
|
"reqd": 1,
|
||||||
|
"show_in_filter": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"allow_read_on_all_link_options": 0,
|
"allow_read_on_all_link_options": 0,
|
||||||
"fieldname": "status",
|
"fieldname": "status",
|
||||||
@@ -135,29 +146,17 @@
|
|||||||
"show_in_filter": 0
|
"show_in_filter": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_read_on_all_link_options": 0,
|
"allow_read_on_all_link_options": 0,
|
||||||
"fieldname": "rating",
|
"fieldname": "class",
|
||||||
"fieldtype": "Rating",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"hidden": 1,
|
||||||
"label": "Rating",
|
"label": "Class",
|
||||||
"max_length": 0,
|
"max_length": 0,
|
||||||
"max_value": 0,
|
"max_value": 0,
|
||||||
"read_only": 0,
|
"options": "LMS Class",
|
||||||
"reqd": 1,
|
"read_only": 1,
|
||||||
"show_in_filter": 0
|
"reqd": 0,
|
||||||
},
|
"show_in_filter": 0
|
||||||
{
|
}
|
||||||
"allow_read_on_all_link_options": 0,
|
|
||||||
"fieldname": "class",
|
|
||||||
"fieldtype": "Link",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Class",
|
|
||||||
"max_length": 0,
|
|
||||||
"max_value": 0,
|
|
||||||
"options": "LMS Class",
|
|
||||||
"read_only": 1,
|
|
||||||
"reqd": 0,
|
|
||||||
"show_in_filter": 0
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user