-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from its4nas/develop
Add Student Import tool: part 1
- Loading branch information
Showing
20 changed files
with
494 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
8 changes: 8 additions & 0 deletions
8
academia/academia/doctype/lesson_template_print/lesson_template_print.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Copyright (c) 2024, SanU and contributors | ||
// For license information, please see license.txt | ||
|
||
// frappe.ui.form.on("Lesson Template Print", { | ||
// refresh(frm) { | ||
|
||
// }, | ||
// }); |
102 changes: 102 additions & 0 deletions
102
academia/academia/doctype/lesson_template_print/lesson_template_print.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"creation": "2024-11-12 10:10:28.211386", | ||
"doctype": "DocType", | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"section_break_ndqr", | ||
"date_of_printing", | ||
"faculty", | ||
"schedule_template_version", | ||
"column_break_hyqz", | ||
"instructor", | ||
"instructor_name", | ||
"amended_from", | ||
"instructor_data" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "section_break_ndqr", | ||
"fieldtype": "Section Break" | ||
}, | ||
{ | ||
"fieldname": "amended_from", | ||
"fieldtype": "Link", | ||
"label": "Amended From", | ||
"no_copy": 1, | ||
"options": "Lesson Template Print", | ||
"print_hide": 1, | ||
"read_only": 1, | ||
"search_index": 1 | ||
}, | ||
{ | ||
"fieldname": "date_of_printing", | ||
"fieldtype": "Date", | ||
"in_list_view": 1, | ||
"label": "Date of Printing", | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "instructor", | ||
"fieldtype": "Link", | ||
"label": "Instructor", | ||
"options": "Faculty Member" | ||
}, | ||
{ | ||
"fieldname": "column_break_hyqz", | ||
"fieldtype": "Column Break" | ||
}, | ||
{ | ||
"fieldname": "faculty", | ||
"fieldtype": "Link", | ||
"label": "Faculty", | ||
"options": "Faculty", | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "schedule_template_version", | ||
"fieldtype": "Link", | ||
"label": "Schedule Template Version", | ||
"options": "Schedule Template Version" | ||
}, | ||
{ | ||
"fetch_from": "instructor.faculty_member_name", | ||
"fieldname": "instructor_name", | ||
"fieldtype": "Data", | ||
"label": "Instructor Name", | ||
"read_only": 1 | ||
}, | ||
{ | ||
"fieldname": "instructor_data", | ||
"fieldtype": "JSON", | ||
"label": "Instructor Data" | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"is_submittable": 1, | ||
"links": [], | ||
"modified": "2024-11-13 11:42:20.984634", | ||
"modified_by": "Administrator", | ||
"module": "Academia", | ||
"name": "Lesson Template Print", | ||
"owner": "Administrator", | ||
"permissions": [ | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "System Manager", | ||
"share": 1, | ||
"submit": 1, | ||
"write": 1 | ||
} | ||
], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
25 changes: 25 additions & 0 deletions
25
academia/academia/doctype/lesson_template_print/lesson_template_print.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright (c) 2024, SanU and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class LessonTemplatePrint(Document): | ||
# begin: auto-generated types | ||
# This code is auto-generated. Do not modify anything in this block. | ||
|
||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from frappe.types import DF | ||
|
||
amended_from: DF.Link | None | ||
date_of_printing: DF.Date | ||
faculty: DF.Link | ||
instructor: DF.Link | None | ||
instructor_data: DF.JSON | None | ||
instructor_name: DF.Data | None | ||
schedule_template_version: DF.Link | None | ||
# end: auto-generated types | ||
pass |
9 changes: 9 additions & 0 deletions
9
academia/academia/doctype/lesson_template_print/test_lesson_template_print.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, SanU and Contributors | ||
# See license.txt | ||
|
||
# import frappe | ||
from frappe.tests.utils import FrappeTestCase | ||
|
||
|
||
class TestLessonTemplatePrint(FrappeTestCase): | ||
pass |
Empty file.
21 changes: 21 additions & 0 deletions
21
academia/academia/doctype/program_enrollment_tool/program_enrollment_tool.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) 2024, SanU and contributors | ||
// For license information, please see license.txt | ||
|
||
frappe.ui.form.on("Program Enrollment Tool", { | ||
refresh: function (frm) { | ||
// زر Import Data | ||
frm.add_custom_button( | ||
__("Import Data"), | ||
function () { | ||
// إعداد الرابط لشاشة Data Import | ||
const url = frappe.urllib.get_full_url( | ||
"/app/data-import/new?reference_doctype=Temporary Student&import_type=Insert New Records" | ||
); | ||
|
||
// فتح الرابط في نافذة جديدة | ||
window.open(url, "_blank"); | ||
}, | ||
__("Actions") | ||
); | ||
}, | ||
}); |
99 changes: 99 additions & 0 deletions
99
academia/academia/doctype/program_enrollment_tool/program_enrollment_tool.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"creation": "2024-11-23 11:30:29.686612", | ||
"doctype": "DocType", | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"faculty", | ||
"progarm", | ||
"student_batch", | ||
"column_break_idbd", | ||
"academic_year", | ||
"academic_term", | ||
"level", | ||
"section_break_eaqf", | ||
"get_student", | ||
"students" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "faculty", | ||
"fieldtype": "Link", | ||
"label": "Faculty", | ||
"options": "Faculty" | ||
}, | ||
{ | ||
"fieldname": "progarm", | ||
"fieldtype": "Link", | ||
"label": "Progarm", | ||
"options": "Program Specification" | ||
}, | ||
{ | ||
"fieldname": "student_batch", | ||
"fieldtype": "Link", | ||
"label": "Student Batch", | ||
"options": "Student Batch" | ||
}, | ||
{ | ||
"fieldname": "column_break_idbd", | ||
"fieldtype": "Column Break" | ||
}, | ||
{ | ||
"fieldname": "academic_year", | ||
"fieldtype": "Link", | ||
"label": "Academic Year", | ||
"options": "Academic Year" | ||
}, | ||
{ | ||
"fieldname": "academic_term", | ||
"fieldtype": "Link", | ||
"label": "Academic Term", | ||
"options": "Academic Term" | ||
}, | ||
{ | ||
"fieldname": "level", | ||
"fieldtype": "Link", | ||
"label": "Level", | ||
"options": "Level" | ||
}, | ||
{ | ||
"fieldname": "section_break_eaqf", | ||
"fieldtype": "Section Break" | ||
}, | ||
{ | ||
"fieldname": "get_student", | ||
"fieldtype": "Button", | ||
"label": "Get Student" | ||
}, | ||
{ | ||
"fieldname": "students", | ||
"fieldtype": "Table", | ||
"label": "Students", | ||
"options": "Temporary Student Temporary" | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"issingle": 1, | ||
"links": [], | ||
"modified": "2024-11-23 12:05:41.494118", | ||
"modified_by": "Administrator", | ||
"module": "Academia", | ||
"name": "Program Enrollment Tool", | ||
"owner": "Administrator", | ||
"permissions": [ | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"print": 1, | ||
"read": 1, | ||
"role": "System Manager", | ||
"share": 1, | ||
"write": 1 | ||
} | ||
], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
Oops, something went wrong.