feat: certification details and form
This commit is contained in:
@@ -108,6 +108,7 @@ const options = createResource({
|
|||||||
url: 'frappe.desk.search.search_link',
|
url: 'frappe.desk.search.search_link',
|
||||||
cache: [props.doctype, text.value],
|
cache: [props.doctype, text.value],
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
auto: true,
|
||||||
params: {
|
params: {
|
||||||
txt: text.value,
|
txt: text.value,
|
||||||
doctype: props.doctype,
|
doctype: props.doctype,
|
||||||
|
|||||||
@@ -4,11 +4,10 @@
|
|||||||
{{ props.label }}
|
{{ props.label }}
|
||||||
</label>
|
</label>
|
||||||
<div class="flex text-center">
|
<div class="flex text-center">
|
||||||
<div v-for="index in 5">
|
<div v-for="index in 5" @mouseover="hoveredRating = index" @mouseleave="hoveredRating = 0">
|
||||||
{{ rating }}
|
|
||||||
<Star
|
<Star
|
||||||
:class="index <= rating ? 'fill-orange-500' : ''"
|
class="h-6 w-6 fill-gray-400 text-gray-50 stroke-1 mr-1 cursor-pointer"
|
||||||
class="h-6 w-6 fill-gray-400 text-gray-50 mr-1 cursor-pointer"
|
:class="{ 'fill-yellow-200': (index <= hoveredRating && index > rating), 'fill-yellow-500': index <= rating }"
|
||||||
@click="markRating(index)"
|
@click="markRating(index)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -18,7 +17,7 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Star } from 'lucide-vue-next'
|
import { Star } from 'lucide-vue-next'
|
||||||
import { ref } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
id: {
|
id: {
|
||||||
@@ -36,8 +35,9 @@ const props = defineProps({
|
|||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['update:modelValue'])
|
const emit = defineEmits(['update:modelValue'])
|
||||||
let rating = ref(props.modelValue)
|
const rating = ref(props.modelValue)
|
||||||
console.log(props.modelValue)
|
const hoveredRating = ref(0)
|
||||||
|
|
||||||
let emitChange = (value) => {
|
let emitChange = (value) => {
|
||||||
emit('update:modelValue', value)
|
emit('update:modelValue', value)
|
||||||
}
|
}
|
||||||
@@ -46,4 +46,8 @@ function markRating(index) {
|
|||||||
emitChange(index)
|
emitChange(index)
|
||||||
rating.value = index
|
rating.value = index
|
||||||
}
|
}
|
||||||
|
|
||||||
|
watch(() => props.modelValue, (newVal) => {
|
||||||
|
rating.value = newVal
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -11,76 +11,118 @@
|
|||||||
{{ event.title }}
|
{{ event.title }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-col space-y-3">
|
<div class="flex flex-col space-y-4 text-sm text-gray-800">
|
||||||
<div class="flex items-center space-x-1">
|
<Tooltip :text="__('Email ID')">
|
||||||
<BookOpen class="h-4 w-4 stroke-1.5" />
|
<div class="flex items-center space-x-2 w-fit">
|
||||||
<span>
|
<User class="h-4 w-4 stroke-1.5" />
|
||||||
{{ event.course_title }}
|
<span>
|
||||||
</span>
|
{{ event.member }}
|
||||||
</div>
|
</span>
|
||||||
<div class="flex items-center space-x-1">
|
</div>
|
||||||
<Calendar class="h-4 w-4 stroke-1.5" />
|
</Tooltip>
|
||||||
<span>
|
<Tooltip :text="__('Course')">
|
||||||
{{ dayjs(event.date).format("DD MMM YYYY") }}
|
<div class="flex items-center space-x-2 w-fit">
|
||||||
</span>
|
<BookOpen class="h-4 w-4 stroke-1.5" />
|
||||||
</div>
|
<span>
|
||||||
<div class="flex items-center space-x-1">
|
{{ event.course_title }}
|
||||||
<Clock class="h-4 w-4 stroke-1.5" />
|
</span>
|
||||||
<span>
|
</div>
|
||||||
{{ formatTime(event.start_time) }} - {{ formatTime(event.end_time) }}
|
</Tooltip>
|
||||||
</span>
|
<Tooltip v-if="event.batch_title" :text="__('Batch')">
|
||||||
</div>
|
<div class="flex items-center space-x-2 w-fit">
|
||||||
<div class="flex items-center space-x-1">
|
<Users class="h-4 w-4 stroke-1.5" />
|
||||||
<User class="h-4 w-4 stroke-1.5" />
|
<span>
|
||||||
<span>
|
{{ event.batch_title }}
|
||||||
{{ event.member }}
|
</span>
|
||||||
</span>
|
</div>
|
||||||
</div>
|
</Tooltip>
|
||||||
|
<Tooltip :text="__('Date')">
|
||||||
|
<div class="flex items-center space-x-2 w-fit">
|
||||||
|
<Calendar class="h-4 w-4 stroke-1.5" />
|
||||||
|
<span>
|
||||||
|
{{ dayjs(event.date).format("DD MMM YYYY") }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</Tooltip>
|
||||||
|
<Tooltip :text="__('Time')">
|
||||||
|
<div class="flex items-center space-x-2 w-fit">
|
||||||
|
<Clock class="h-4 w-4 stroke-1.5" />
|
||||||
|
<span>
|
||||||
|
{{ formatTime(event.start_time) }} - {{ formatTime(event.end_time) }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</Tooltip>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center space-x-2 mt-auto">
|
||||||
|
<Button v-if="certificate.name" @click="openCertificate(certificate)" class="w-full">
|
||||||
|
<template #prefix>
|
||||||
|
<FileText class="h-4 w-4 stroke-1.5" />
|
||||||
|
</template>
|
||||||
|
{{ __("View Certificate") }}
|
||||||
|
</Button>
|
||||||
|
<Button v-else @click="openCallLink(event.venue)" class="w-full">
|
||||||
|
<template #prefix>
|
||||||
|
<Video class="h-4 w-4 stroke-1.5" />
|
||||||
|
</template>
|
||||||
|
<span>
|
||||||
|
{{ __("Join Meeting") }}
|
||||||
|
</span>
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<Button @click="openCallLink(event.venue)" class="mt-auto">
|
|
||||||
<template #prefix>
|
|
||||||
<Video class="h-4 w-4 stroke-1.5" />
|
|
||||||
</template>
|
|
||||||
<span>
|
|
||||||
{{ __("Join Meeting") }}
|
|
||||||
</span>
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
<div class="flex flex-col space-y-4 border-l w-1/2 p-5">
|
|
||||||
{{ evaluation.rating }}
|
|
||||||
<Rating v-model="evaluation.rating" :label="__('Rating')"/>
|
|
||||||
<FormControl type="select" :options='[{
|
|
||||||
value: "Pending",
|
|
||||||
label: __("Pending")
|
|
||||||
}, {
|
|
||||||
value: "In Progress",
|
|
||||||
label: __("In Progress")
|
|
||||||
}, {
|
|
||||||
value: "Pass",
|
|
||||||
label: __("Pass")
|
|
||||||
}, {
|
|
||||||
value: "Fail",
|
|
||||||
label: __("Fail")
|
|
||||||
}]'
|
|
||||||
v-model="evaluation.status" :label="__('Status')" />
|
|
||||||
<FormControl type="textarea" v-model="evaluation.summary" :label="__('Summary')" />
|
|
||||||
<Button variant="solid" @click="saveEvaluation()">
|
|
||||||
{{ __("Save") }}
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
|
<Tabs :tabs='tabs' v-model="tabIndex" class="border-l w-1/2">
|
||||||
|
<template #default="{ tab }">
|
||||||
|
<div v-if="tab.label == 'Evaluation'" class="flex flex-col space-y-4 p-5">
|
||||||
|
<Rating v-model="evaluation.rating" :label="__('Rating')"/>
|
||||||
|
<FormControl type="select" :options='[{
|
||||||
|
value: "Pending",
|
||||||
|
label: __("Pending")
|
||||||
|
}, {
|
||||||
|
value: "In Progress",
|
||||||
|
label: __("In Progress")
|
||||||
|
}, {
|
||||||
|
value: "Pass",
|
||||||
|
label: __("Pass")
|
||||||
|
}, {
|
||||||
|
value: "Fail",
|
||||||
|
label: __("Fail")
|
||||||
|
}]'
|
||||||
|
v-model="evaluation.status" :label="__('Status')" />
|
||||||
|
<FormControl type="textarea" v-model="evaluation.summary" :label="__('Summary')" />
|
||||||
|
<Button variant="solid" @click="saveEvaluation()">
|
||||||
|
{{ __("Save") }}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
<div v-else class="flex flex-col space-y-4 p-5">
|
||||||
|
|
||||||
|
<FormControl type="checkbox" v-model="certificate.published" :label="__('Published')" />
|
||||||
|
<Link v-model="certificate.template" :label="__('Template')" doctype="Print Format" :filters='{
|
||||||
|
"doc_type": "LMS Certificate"
|
||||||
|
}' />
|
||||||
|
<FormControl type="date" v-model="certificate.issue_date" :label="__('Issue Date')" />
|
||||||
|
<FormControl type="date" v-model="certificate.expiry_date" :label="__('Expiry Date')" />
|
||||||
|
<Button variant="solid" @click="saveCertificate()">
|
||||||
|
{{ __("Save") }}
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</Tabs>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import { Dialog, Button, FormControl, createResource } from 'frappe-ui';
|
import { Dialog, Button, FormControl, createResource, Tabs, Tooltip } from 'frappe-ui';
|
||||||
import { User, Calendar, Clock, Video, BookOpen } from "lucide-vue-next"
|
import { User, Calendar, Clock, Video, BookOpen, FileText, GraduationCap, Users, ClipboardList } from "lucide-vue-next"
|
||||||
import { inject, reactive, watch } from "vue"
|
import { inject, reactive, watch, ref, computed } from "vue"
|
||||||
import { formatTime, showToast } from "@/utils"
|
import { formatTime, showToast } from "@/utils"
|
||||||
import Rating from "@/components/Controls/Rating.vue"
|
import Rating from "@/components/Controls/Rating.vue"
|
||||||
|
import Link from "@/components/Controls/Link.vue"
|
||||||
|
|
||||||
const show = defineModel()
|
const show = defineModel()
|
||||||
const dayjs = inject("$dayjs")
|
const dayjs = inject("$dayjs")
|
||||||
|
const tabIndex = ref(0)
|
||||||
|
const showCertification = ref(false)
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
event: {
|
event: {
|
||||||
@@ -89,10 +131,26 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const evaluation = reactive({
|
const evaluation = reactive({})
|
||||||
rating: 0,
|
|
||||||
status: "Pending",
|
const certificate = reactive({})
|
||||||
summary: "",
|
|
||||||
|
const defaultTemplate = createResource({
|
||||||
|
url: "frappe.client.get_value",
|
||||||
|
makeParams(values) {
|
||||||
|
return {
|
||||||
|
doctype: "Property Setter",
|
||||||
|
fieldname: "value",
|
||||||
|
filters: {
|
||||||
|
doc_type: "LMS Certificate",
|
||||||
|
property: "default_print_format"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
auto: true,
|
||||||
|
onSuccess(data) {
|
||||||
|
certificate.template = data.value
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const openCallLink = (link) => {
|
const openCallLink = (link) => {
|
||||||
@@ -105,6 +163,7 @@ const evaluationResource = createResource({
|
|||||||
return {
|
return {
|
||||||
member: props.event.member,
|
member: props.event.member,
|
||||||
course: props.event.course,
|
course: props.event.course,
|
||||||
|
batch_name: props.event.batch_name,
|
||||||
date: props.event.date,
|
date: props.event.date,
|
||||||
start_time: props.event.start_time,
|
start_time: props.event.start_time,
|
||||||
end_time: props.event.end_time,
|
end_time: props.event.end_time,
|
||||||
@@ -113,7 +172,10 @@ const evaluationResource = createResource({
|
|||||||
summary: evaluation.summary,
|
summary: evaluation.summary,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
auto: false
|
auto: false,
|
||||||
|
onSuccess(data) {
|
||||||
|
evaluation.name = data.name
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const evaluationDetails = createResource({
|
const evaluationDetails = createResource({
|
||||||
@@ -131,6 +193,10 @@ const evaluationDetails = createResource({
|
|||||||
for (const key in data) {
|
for (const key in data) {
|
||||||
if (key in evaluation)
|
if (key in evaluation)
|
||||||
evaluation[key] = data[key]
|
evaluation[key] = data[key]
|
||||||
|
if (key == "rating")
|
||||||
|
evaluation.rating = data.rating * 5
|
||||||
|
if (evaluation.status == "Pass")
|
||||||
|
showCertification.value = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
auto: false
|
auto: false
|
||||||
@@ -139,18 +205,105 @@ const evaluationDetails = createResource({
|
|||||||
const saveEvaluation = () => {
|
const saveEvaluation = () => {
|
||||||
evaluationResource.submit({}, {
|
evaluationResource.submit({}, {
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
show.value = false
|
if (evaluation.status == "Pass") {
|
||||||
|
showCertification.value = true
|
||||||
|
} else {
|
||||||
|
show.value = false
|
||||||
|
}
|
||||||
showToast( __("Success"), __("Evaluation saved successfully"), "check")
|
showToast( __("Success"), __("Evaluation saved successfully"), "check")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const certificateResource = createResource({
|
||||||
|
url: "lms.lms.api.save_certificate_details",
|
||||||
|
makeParams(values) {
|
||||||
|
return {
|
||||||
|
member: props.event.member,
|
||||||
|
course: props.event.course,
|
||||||
|
batch_name: props.event.batch_name,
|
||||||
|
published: certificate.published,
|
||||||
|
issue_date: certificate.issue_date,
|
||||||
|
expiry_date: certificate.expiry_date,
|
||||||
|
template: certificate.template,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
auto: false,
|
||||||
|
onSuccess(data) {
|
||||||
|
certificate.name = data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
const certificateDetails = createResource({
|
||||||
|
url: "frappe.client.get",
|
||||||
|
makeParams(values) {
|
||||||
|
return {
|
||||||
|
doctype: "LMS Certificate",
|
||||||
|
filters: {
|
||||||
|
member: props.event.member,
|
||||||
|
course: props.event.course,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onSuccess(data) {
|
||||||
|
for (const key in data) {
|
||||||
|
if (key in certificate)
|
||||||
|
certificate[key] = data[key]
|
||||||
|
certificate.name = data.name
|
||||||
|
showCertification.value = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onError(err) {
|
||||||
|
certificate.template = defaultTemplate.data.value
|
||||||
|
},
|
||||||
|
auto: false
|
||||||
|
})
|
||||||
|
|
||||||
|
const saveCertificate = () => {
|
||||||
|
certificateResource.submit({}, {
|
||||||
|
onSuccess: () => {
|
||||||
|
showToast( __("Success"), __("Certificate saved successfully"), "check")
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
watch(show, () => {
|
watch(show, () => {
|
||||||
if (show.value) {
|
if (show.value) {
|
||||||
evaluation.rating = 0
|
evaluation.rating = 0
|
||||||
evaluation.status = "Pending"
|
evaluation.status = "Pending"
|
||||||
evaluation.summary = ""
|
evaluation.summary = ""
|
||||||
evaluationDetails.reload()
|
evaluationDetails.reload()
|
||||||
|
|
||||||
|
certificate.published = true
|
||||||
|
certificate.issue_date = dayjs().format("YYYY-MM-DD")
|
||||||
|
certificate.expiry_date = null
|
||||||
|
certificate.template = null
|
||||||
|
certificate.name = null
|
||||||
|
certificateDetails.reload()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const openCertificate = (certificate) => {
|
||||||
|
window.open(
|
||||||
|
`/api/method/frappe.utils.print_format.download_pdf?doctype=LMS+Certificate&name=${certificate.name}&format=${encodeURIComponent(certificate.template)}`
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const tabs = computed(() => {
|
||||||
|
const tabsArray = [
|
||||||
|
{
|
||||||
|
label: __("Evaluation"),
|
||||||
|
icon: ClipboardList,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
if (showCertification.value) {
|
||||||
|
tabsArray.push({
|
||||||
|
label: __("Certificate"),
|
||||||
|
icon: GraduationCap,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
return tabsArray
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
defaultMode: 'Month',
|
defaultMode: 'Month',
|
||||||
disableModes: ['Day', 'Week'],
|
disableModes: ['Day', 'Week'],
|
||||||
redundantCellHeight: 100,
|
redundantCellHeight: 100,
|
||||||
enableShortcuts: true,
|
enableShortcuts: false,
|
||||||
}"
|
}"
|
||||||
:events="evaluations.data"
|
:events="evaluations.data"
|
||||||
@click="(event) => openEvent(event)"
|
@click="(event) => openEvent(event)"
|
||||||
@@ -62,7 +62,7 @@ const evaluations = createListResource({
|
|||||||
filters: {
|
filters: {
|
||||||
"evaluator": user.data?.name
|
"evaluator": user.data?.name
|
||||||
},
|
},
|
||||||
fields: ["name", "member_name", "member", "course", "course_title", "date", "start_time", "end_time", "google_meet_link"],
|
fields: ["name", "member_name", "member", "course", "course_title", "batch_name", "batch_title", "date", "start_time", "end_time", "google_meet_link"],
|
||||||
auto: true,
|
auto: true,
|
||||||
cache: ["schedule", user.data?.name],
|
cache: ["schedule", user.data?.name],
|
||||||
transform(data) {
|
transform(data) {
|
||||||
@@ -80,6 +80,8 @@ const evaluations = createListResource({
|
|||||||
course: d.course,
|
course: d.course,
|
||||||
course_title: d.course_title,
|
course_title: d.course_title,
|
||||||
member: d.member,
|
member: d.member,
|
||||||
|
batch_name: d.batch_name,
|
||||||
|
batch_title: d.batch_title
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from frappe import _
|
|||||||
from frappe.query_builder import DocType
|
from frappe.query_builder import DocType
|
||||||
from frappe.query_builder.functions import Count
|
from frappe.query_builder.functions import Count
|
||||||
from frappe.utils import time_diff, now_datetime, get_datetime
|
from frappe.utils import time_diff, now_datetime, get_datetime
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def autosave_section(section, code):
|
def autosave_section(section, code):
|
||||||
@@ -616,6 +616,7 @@ def check_app_permission():
|
|||||||
def save_evaluation_details(
|
def save_evaluation_details(
|
||||||
member: str,
|
member: str,
|
||||||
course: str,
|
course: str,
|
||||||
|
batch_name: str,
|
||||||
date: str,
|
date: str,
|
||||||
start_time: str,
|
start_time: str,
|
||||||
end_time: str,
|
end_time: str,
|
||||||
@@ -635,17 +636,60 @@ def save_evaluation_details(
|
|||||||
"start_time": start_time,
|
"start_time": start_time,
|
||||||
"end_time": end_time,
|
"end_time": end_time,
|
||||||
"status": status,
|
"status": status,
|
||||||
"rating": rating,
|
"rating": rating / 5,
|
||||||
"summary": summary
|
"summary": summary,
|
||||||
|
"batch_name": batch_name
|
||||||
}
|
}
|
||||||
|
|
||||||
if evaluation:
|
if evaluation:
|
||||||
doc = frappe.db.set_value("LMS Certificate Evaluation", evaluation, details)
|
frappe.db.set_value("LMS Certificate Evaluation", evaluation, details)
|
||||||
|
return evaluation
|
||||||
else:
|
else:
|
||||||
doc = frappe.new_doc("LMS Certificate Evaluation")
|
doc = frappe.new_doc("LMS Certificate Evaluation")
|
||||||
details.update({
|
details.update({
|
||||||
"member": member,
|
"member": member,
|
||||||
"course": course
|
"course": course,
|
||||||
})
|
})
|
||||||
doc.update(details)
|
doc.update(details)
|
||||||
doc.insert()
|
doc.insert()
|
||||||
|
return doc.name
|
||||||
|
|
||||||
|
|
||||||
|
@frappe.whitelist()
|
||||||
|
def save_certificate_details(
|
||||||
|
member: str,
|
||||||
|
course: str,
|
||||||
|
batch_name: str,
|
||||||
|
issue_date,
|
||||||
|
expiry_date,
|
||||||
|
template,
|
||||||
|
published=True,
|
||||||
|
) -> None:
|
||||||
|
"""
|
||||||
|
Save certificate details for a member against a course.
|
||||||
|
"""
|
||||||
|
certificate = frappe.db.exists("LMS Certificate", {
|
||||||
|
"member": member,
|
||||||
|
"course": course
|
||||||
|
})
|
||||||
|
|
||||||
|
details = {
|
||||||
|
"published": published,
|
||||||
|
"issue_date": issue_date,
|
||||||
|
"expiry_date": expiry_date,
|
||||||
|
"template": template,
|
||||||
|
"batch_name": batch_name
|
||||||
|
}
|
||||||
|
|
||||||
|
if certificate:
|
||||||
|
frappe.db.set_value("LMS Certificate", certificate, details)
|
||||||
|
return certificate
|
||||||
|
else:
|
||||||
|
doc = frappe.new_doc("LMS Certificate")
|
||||||
|
details.update({
|
||||||
|
"member": member,
|
||||||
|
"course": course,
|
||||||
|
})
|
||||||
|
doc.update(details)
|
||||||
|
doc.insert()
|
||||||
|
return doc.name
|
||||||
@@ -8,12 +8,16 @@
|
|||||||
"field_order": [
|
"field_order": [
|
||||||
"member",
|
"member",
|
||||||
"member_name",
|
"member_name",
|
||||||
|
"column_break_ueht",
|
||||||
"course",
|
"course",
|
||||||
|
"batch_name",
|
||||||
|
"section_break_zwfi",
|
||||||
|
"evaluator",
|
||||||
|
"evaluator_name",
|
||||||
"column_break_5",
|
"column_break_5",
|
||||||
"date",
|
"date",
|
||||||
"start_time",
|
"start_time",
|
||||||
"end_time",
|
"end_time",
|
||||||
"batch_name",
|
|
||||||
"section_break_6",
|
"section_break_6",
|
||||||
"rating",
|
"rating",
|
||||||
"status",
|
"status",
|
||||||
@@ -103,11 +107,33 @@
|
|||||||
"in_standard_filter": 1,
|
"in_standard_filter": 1,
|
||||||
"label": "Batch Name",
|
"label": "Batch Name",
|
||||||
"options": "LMS Batch"
|
"options": "LMS Batch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "column_break_ueht",
|
||||||
|
"fieldtype": "Column Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "section_break_zwfi",
|
||||||
|
"fieldtype": "Section Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "evaluator",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"label": "Evaluator",
|
||||||
|
"options": "User",
|
||||||
|
"reqd": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fetch_from": "evaluator.full_name",
|
||||||
|
"fieldname": "evaluator_name",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"label": "Evaluator Name",
|
||||||
|
"read_only": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-07-16 14:06:11.977666",
|
"modified": "2024-09-10 20:17:49.908093",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "LMS",
|
"module": "LMS",
|
||||||
"name": "LMS Certificate Evaluation",
|
"name": "LMS Certificate Evaluation",
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
"evaluator_name",
|
"evaluator_name",
|
||||||
"column_break_sjco",
|
"column_break_sjco",
|
||||||
"batch_name",
|
"batch_name",
|
||||||
|
"batch_title",
|
||||||
"timezone",
|
"timezone",
|
||||||
"section_break_lifi",
|
"section_break_lifi",
|
||||||
"date",
|
"date",
|
||||||
@@ -137,11 +138,18 @@
|
|||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"label": "Timezone",
|
"label": "Timezone",
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fetch_from": "batch_name.title",
|
||||||
|
"fieldname": "batch_title",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"hidden": 1,
|
||||||
|
"label": "Batch Title"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-09-06 18:39:53.551920",
|
"modified": "2024-09-10 13:13:48.282623",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "LMS",
|
"module": "LMS",
|
||||||
"name": "LMS Certificate Request",
|
"name": "LMS Certificate Request",
|
||||||
|
|||||||
Reference in New Issue
Block a user