Compare commits
3 Commits
v2.33.0
...
eduvia/dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2271eb270e | ||
|
|
7e5b2e4e79 | ||
|
|
36076068ec |
@@ -18,7 +18,7 @@
|
|||||||
<div class="flex items-center flex-wrap relative top-4 px-2 w-fit">
|
<div class="flex items-center flex-wrap relative top-4 px-2 w-fit">
|
||||||
<div
|
<div
|
||||||
v-if="course.featured"
|
v-if="course.featured"
|
||||||
class="flex items-center space-x-1 text-xs text-ink-amber-3 bg-surface-white px-2 py-0.5 rounded-md mr-1 mb-1"
|
class="flex items-center space-x-1 text-xs text-ink-amber-3 bg-surface-white border border-outline-amber-1 px-2 py-0.5 rounded-md mr-1 mb-1"
|
||||||
>
|
>
|
||||||
<Star class="size-3 stroke-2" />
|
<Star class="size-3 stroke-2" />
|
||||||
<span>
|
<span>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="!course.image"
|
v-if="!course.image"
|
||||||
class="flex items-center justify-center text-white flex-1 font-extrabold text-2xl my-auto"
|
class="flex items-center justify-center text-white flex-1 font-extrabold text-2xl my-auto px-5 text-center leading-6"
|
||||||
:class="course.tags ? 'h-[80%]' : 'h-full'"
|
:class="course.tags ? 'h-[80%]' : 'h-full'"
|
||||||
>
|
>
|
||||||
{{ course.title }}
|
{{ course.title }}
|
||||||
@@ -120,7 +120,7 @@
|
|||||||
v-if="course.paid_certificate || course.enable_certification"
|
v-if="course.paid_certificate || course.enable_certification"
|
||||||
:text="__('Get Certified')"
|
:text="__('Get Certified')"
|
||||||
>
|
>
|
||||||
<GraduationCap class="size-5 stroke-1.5" />
|
<GraduationCap class="size-5 stroke-1.5 text-ink-gray-7" />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
<div class="">
|
<div class="">
|
||||||
<div class="mb-1.5 text-sm text-ink-gray-5">
|
<div class="mb-1.5 text-sm text-ink-gray-5">
|
||||||
{{ __('Reply To') }}
|
{{ __('Reply To') }}
|
||||||
|
<span class="text-ink-red-3">*</span>
|
||||||
</div>
|
</div>
|
||||||
<Input type="text" v-model="announcement.replyTo" />
|
<Input type="text" v-model="announcement.replyTo" />
|
||||||
</div>
|
</div>
|
||||||
@@ -70,8 +71,8 @@ const announcementResource = createResource({
|
|||||||
url: 'frappe.core.doctype.communication.email.make',
|
url: 'frappe.core.doctype.communication.email.make',
|
||||||
makeParams(values) {
|
makeParams(values) {
|
||||||
return {
|
return {
|
||||||
recipients: props.students.join(', '),
|
recipients: announcement.replyTo,
|
||||||
cc: announcement.replyTo,
|
bcc: props.students.join(', '),
|
||||||
subject: announcement.subject,
|
subject: announcement.subject,
|
||||||
content: announcement.announcement,
|
content: announcement.announcement,
|
||||||
doctype: 'LMS Batch',
|
doctype: 'LMS Batch',
|
||||||
@@ -95,6 +96,9 @@ const makeAnnouncement = (close) => {
|
|||||||
if (!announcement.announcement) {
|
if (!announcement.announcement) {
|
||||||
return __('Announcement is required')
|
return __('Announcement is required')
|
||||||
}
|
}
|
||||||
|
if (!announcement.replyTo) {
|
||||||
|
return __('Reply To is required')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onSuccess() {
|
onSuccess() {
|
||||||
close()
|
close()
|
||||||
|
|||||||
Reference in New Issue
Block a user