CLASSROOMIO-T-11:Updated the file name in the certificate issuin page
This commit is contained in:
@@ -7,9 +7,9 @@
|
|||||||
import UploadImage from './Upload.svelte';
|
import UploadImage from './Upload.svelte';
|
||||||
import PrimaryButton from '../../../PrimaryButton/index.svelte';
|
import PrimaryButton from '../../../PrimaryButton/index.svelte';
|
||||||
import TextArea from '../../../Form/TextArea.svelte';
|
import TextArea from '../../../Form/TextArea.svelte';
|
||||||
import Introductorycert from './certificates/Introductorycert.svelte';
|
import { certificateInfo } from './store';
|
||||||
import Maincert from './certificates/Maincert.svelte';
|
import IntroductoryCertificate from './certificates/IntroductoryCertificate.svelte';
|
||||||
import { certInfo } from './store';
|
import MainCertificate from './certificates/MainCertificate.svelte';
|
||||||
|
|
||||||
const theme1 = './theme1.png';
|
const theme1 = './theme1.png';
|
||||||
const theme2 = './theme2.png';
|
const theme2 = './theme2.png';
|
||||||
@@ -59,8 +59,8 @@
|
|||||||
rows={6}
|
rows={6}
|
||||||
placeholder="a little description about the course"
|
placeholder="a little description about the course"
|
||||||
bgColor="bg-gray-100"
|
bgColor="bg-gray-100"
|
||||||
bind:value={$certInfo.Desc}
|
bind:value={$certificateInfo.Desc}
|
||||||
onChange={$certInfo.Desc}
|
onChange={$certificateInfo.Desc}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@@ -80,9 +80,9 @@
|
|||||||
>
|
>
|
||||||
<div class="flex justify-center items-center h-5/6 w-5/6">
|
<div class="flex justify-center items-center h-5/6 w-5/6">
|
||||||
{#if Selectedtheme.label == 'theme1'}
|
{#if Selectedtheme.label == 'theme1'}
|
||||||
<Introductorycert />
|
<IntroductoryCertificate />
|
||||||
{:else}
|
{:else}
|
||||||
<Maincert />
|
<MainCertificate />
|
||||||
{/if}
|
{/if}
|
||||||
<!-- <img src="./certImg.png" alt="cert" class="object-cover" /> -->
|
<!-- <img src="./certImg.png" alt="cert" class="object-cover" /> -->
|
||||||
<!-- <img src={Selectedtheme.src} alt="cert" class="img object-cover" /> -->
|
<!-- <img src={Selectedtheme.src} alt="cert" class="img object-cover" /> -->
|
||||||
|
|||||||
+7
-7
@@ -4,20 +4,20 @@
|
|||||||
import PrimaryButton from '../../../PrimaryButton/index.svelte';
|
import PrimaryButton from '../../../PrimaryButton/index.svelte';
|
||||||
import TextArea from '../../../Form/TextArea.svelte';
|
import TextArea from '../../../Form/TextArea.svelte';
|
||||||
import TextField from '../../../Form/TextField.svelte';
|
import TextField from '../../../Form/TextField.svelte';
|
||||||
import { issueCertModal, resetForm } from './store';
|
import { issueCertificateModal, resetForm } from './store';
|
||||||
|
|
||||||
const onToggle = (e) => {
|
const onToggle = (e) => {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
};
|
};
|
||||||
|
|
||||||
const issueCert = () => {
|
const issueCertificate = () => {
|
||||||
resetForm();
|
resetForm();
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Modal
|
<Modal
|
||||||
onClose={resetForm}
|
onClose={resetForm}
|
||||||
bind:open={$issueCertModal.open}
|
bind:open={$issueCertificateModal.open}
|
||||||
width="w-3/5"
|
width="w-3/5"
|
||||||
maxWidth=""
|
maxWidth=""
|
||||||
modalHeading="Send Certificate"
|
modalHeading="Send Certificate"
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
<p class="text-xs font-normal text-gray-500 my-4">
|
<p class="text-xs font-normal text-gray-500 my-4">
|
||||||
or send a personalised/ custom certificate below:
|
or send a personalised/ custom certificate below:
|
||||||
</p>
|
</p>
|
||||||
<form on:submit|preventDefault={issueCert}>
|
<form on:submit|preventDefault={issueCertificate}>
|
||||||
<div class="flex flex-col md:flex-row gap-2 w-full">
|
<div class="flex flex-col md:flex-row gap-2 w-full">
|
||||||
<TextField
|
<TextField
|
||||||
label="Email address of the student"
|
label="Email address of the student"
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
labelClassName="text-xs font-normal"
|
labelClassName="text-xs font-normal"
|
||||||
inputClassName="text-sm placeholder:text-sm placeholder:font-medium "
|
inputClassName="text-sm placeholder:text-sm placeholder:font-medium "
|
||||||
placeholder="email,comma seperated"
|
placeholder="email,comma seperated"
|
||||||
bind:value={$issueCertModal.email}
|
bind:value={$issueCertificateModal.email}
|
||||||
/>
|
/>
|
||||||
<TextField
|
<TextField
|
||||||
label="Schedule date"
|
label="Schedule date"
|
||||||
@@ -57,14 +57,14 @@
|
|||||||
labelClassName="text-xs font-normal"
|
labelClassName="text-xs font-normal"
|
||||||
inputClassName="text-sm placeholder:text-sm placeholder:font-medium "
|
inputClassName="text-sm placeholder:text-sm placeholder:font-medium "
|
||||||
placeholder="12/06/2023"
|
placeholder="12/06/2023"
|
||||||
bind:value={$issueCertModal.date}
|
bind:value={$issueCertificateModal.date}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<TextArea
|
<TextArea
|
||||||
label="Add a personalized message"
|
label="Add a personalized message"
|
||||||
labelClassName="text-xs font-normal"
|
labelClassName="text-xs font-normal"
|
||||||
bind:value={$issueCertModal.message}
|
bind:value={$issueCertificateModal.message}
|
||||||
rows="2"
|
rows="2"
|
||||||
maxRows="3"
|
maxRows="3"
|
||||||
placeholder="your message here"
|
placeholder="your message here"
|
||||||
@@ -46,14 +46,14 @@
|
|||||||
class="flex-3 flex flex-row items-center justify-start w-full text-blue-600 text-sm font-medium"
|
class="flex-3 flex flex-row items-center justify-start w-full text-blue-600 text-sm font-medium"
|
||||||
>
|
>
|
||||||
<Checkbox bind:checked />
|
<Checkbox bind:checked />
|
||||||
<p class="text-blue-600 text-start w-full text-sm font-medium">
|
<p class="text-blue-900 text-start w-full text-sm font-medium">
|
||||||
Name of student
|
Name of student
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</StructuredListCell>
|
</StructuredListCell>
|
||||||
<StructuredListCell head>
|
<StructuredListCell head>
|
||||||
<div
|
<div
|
||||||
class="flex-2 items-center w-full text-blue-600 text-sm font-medium"
|
class="flex-2 items-center w-full text-blue-900 text-sm font-medium"
|
||||||
>
|
>
|
||||||
<p class="align-middle text-sm font-medium pt-1">Date issued</p>
|
<p class="align-middle text-sm font-medium pt-1">Date issued</p>
|
||||||
<p class="opacity-0">personalized</p>
|
<p class="opacity-0">personalized</p>
|
||||||
|
|||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import TextField from '../../../../Form/TextField.svelte';
|
import TextField from '../../../../Form/TextField.svelte';
|
||||||
import TextArea from '../../../../Form/TextArea.svelte';
|
import TextArea from '../../../../Form/TextArea.svelte';
|
||||||
import { certInfo } from '../store';
|
import { certificateInfo } from '../store';
|
||||||
|
|
||||||
let borderwidth = 'border-l-8';
|
let borderwidth = 'border-l-8';
|
||||||
let bordercolor = 'border-blue-800';
|
let bordercolor = 'border-blue-800';
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
<div class="border-b border-gray-500 mb-4">
|
<div class="border-b border-gray-500 mb-4">
|
||||||
<p class="text-xs text-black font-medium">This is to certify that</p>
|
<p class="text-xs text-black font-medium">This is to certify that</p>
|
||||||
<TextField
|
<TextField
|
||||||
bind:value={$certInfo.Name}
|
bind:value={$certificateInfo.Name}
|
||||||
inputClassName="text-center placeholder:text-black"
|
inputClassName="text-center placeholder:text-black"
|
||||||
placeholder="Name of student"
|
placeholder="Name of student"
|
||||||
bgColor="bg-transparent"
|
bgColor="bg-transparent"
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
has successfully completed introductory courses in
|
has successfully completed introductory courses in
|
||||||
</p>
|
</p>
|
||||||
<TextArea
|
<TextArea
|
||||||
bind:value={$certInfo.Title}
|
bind:value={$certificateInfo.Title}
|
||||||
inputClassName=""
|
inputClassName=""
|
||||||
placeholder="Name of course"
|
placeholder="Name of course"
|
||||||
bgColor="clamp bg-transparent font-semibold text-blue-800 text-center placeholder:text-black placeholder:text-base placeholder:font-semibold uppercase resize-none border-none"
|
bgColor="clamp bg-transparent font-semibold text-blue-800 text-center placeholder:text-black placeholder:text-base placeholder:font-semibold uppercase resize-none border-none"
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
maxRows="2"
|
maxRows="2"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p class="desc mb-2">{$certInfo.Desc}</p>
|
<p class="desc mb-2 text-justify">{$certificateInfo.Desc}</p>
|
||||||
<div>
|
<div>
|
||||||
<img src={logo} alt="logo" class="my-2" />
|
<img src={logo} alt="logo" class="my-2" />
|
||||||
</div>
|
</div>
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import TextField from '../../../../Form/TextField.svelte';
|
import TextField from '../../../../Form/TextField.svelte';
|
||||||
import TextArea from '../../../../Form/TextArea.svelte';
|
import TextArea from '../../../../Form/TextArea.svelte';
|
||||||
import { certInfo } from '../store';
|
import { certificateInfo } from '../store';
|
||||||
|
|
||||||
let borderwidth = 'border-4';
|
let borderwidth = 'border-4';
|
||||||
let bordercolor = 'border-pink-700';
|
let bordercolor = 'border-pink-700';
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
<div class="border-b border-gray-500 mb-4">
|
<div class="border-b border-gray-500 mb-4">
|
||||||
<p class="text-xs text-black font-medium">This is to certify that</p>
|
<p class="text-xs text-black font-medium">This is to certify that</p>
|
||||||
<TextField
|
<TextField
|
||||||
bind:value={$certInfo.Name}
|
bind:value={$certificateInfo.Name}
|
||||||
inputClassName="text-center placeholder:text-black"
|
inputClassName="text-center placeholder:text-black"
|
||||||
placeholder="Name of student"
|
placeholder="Name of student"
|
||||||
bgColor="bg-transparent"
|
bgColor="bg-transparent"
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
has successfully completed a courses in
|
has successfully completed a courses in
|
||||||
</p>
|
</p>
|
||||||
<TextArea
|
<TextArea
|
||||||
bind:value={$certInfo.Title}
|
bind:value={$certificateInfo.Title}
|
||||||
inputClassName=""
|
inputClassName=""
|
||||||
placeholder="Name of course"
|
placeholder="Name of course"
|
||||||
bgColor="clamp bg-transparent text-base font-semibold text-pink-700 text-center placeholder:text-black placeholder:text-base placeholder:font-semibold uppercase resize-none"
|
bgColor="clamp bg-transparent text-base font-semibold text-pink-700 text-center placeholder:text-black placeholder:text-base placeholder:font-semibold uppercase resize-none"
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
maxRows="2"
|
maxRows="2"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p class="desc text-center">{$certInfo.Desc}</p>
|
<p class="desc text-center">{$certificateInfo.Desc}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -4,7 +4,7 @@ import { writable } from 'svelte/store';
|
|||||||
// open: false,
|
// open: false,
|
||||||
// });
|
// });
|
||||||
|
|
||||||
export const issueCertModal = writable({
|
export const issueCertificateModal = writable({
|
||||||
open: false,
|
open: false,
|
||||||
automatic: false,
|
automatic: false,
|
||||||
email: '',
|
email: '',
|
||||||
@@ -12,14 +12,14 @@ export const issueCertModal = writable({
|
|||||||
message: '',
|
message: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const certInfo = writable({
|
export const certificateInfo = writable({
|
||||||
Name: 'Name of student',
|
Name: 'Name of student',
|
||||||
Title: 'Desiging functional components',
|
Title: 'Desiging functional components',
|
||||||
Desc: '(Introduction to Digital Devices, The Internet Mobile Applications, Introduction to Social Media, Using social media for business, Digital Content Creation and Distribution, Using mobile money in business, Digital financial management,Digital Empowerment,Digital Safety)',
|
Desc: '(Introduction to Digital Devices, The Internet Mobile Applications, Introduction to Social Media, Using social media for business, Digital Content Creation and Distribution, Using mobile money in business, Digital financial management,Digital Empowerment,Digital Safety)',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const resetForm = () =>
|
export const resetForm = () =>
|
||||||
issueCertModal.update(() => ({
|
issueCertificateModal.update(() => ({
|
||||||
open: false,
|
open: false,
|
||||||
automatic: false,
|
automatic: false,
|
||||||
email: '',
|
email: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user