Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2022 Visualizações

The charity owner provides certificates for blood donors and donation providers in my application. These certificates have a specific format. How can I create these certificates in the QWeb report?

Avatar
Cancelar
Autor Melhor resposta

   

        Eye Donation Pledge Form

        /eyedonation

       

        90

   


   

       

           

               

                   

                       

                              class="o_mark_required"

                              data-mark="*" data-model_name="" data-success-page="">

                           

                           

                                 style="margin-top:2%;">

                               

                                   

REGISTER HERE FOR EYE DONATION

                               

                               

                                     data-type="char" data-name="Field" style="padding:5px;">

                                   

                                       

                                                style="width: 220px" for="studio1">

                                            Name of the Donor

                                            *

                                       

                                       

                                           

                                                   name="name" required="0" style="width:49%;text-transform: uppercase;"

                                                   placeholder="Enter First Name" pattern="[A-Za-z. ]+"

                                                   title="Please enter only letters, dots, or spaces"/>

                                           

                                                   class="form-control s_website_form_input"

                                                   name="last_name" required=""

                                                   style="width:49%;margin-left: 2%;text-transform: uppercase;"

                                                   placeholder="Enter Last Name" pattern="[A-Za-z. ]+"

                                                   title="Please enter only letters, dots, or spaces"/>

                                       

                                   

                               


                               

                                     data-type="selection" data-name="Field" style="padding:5px;">

                                   

                                       

                                               style="width: 220px" for="relationship_type">

                                            Name of the Relative

                                            *

                                       

                                       

                                           

                                                   class="form-control s_website_form_input"

                                                   name="guardian_name" required="1"

                                                   style="width:68%;text-transform: uppercase;"

                                                   placeholder="Relative Name"

                                                   pattern="[A-Za-z. ]+"

                                                   title="Please enter only letters, dots, or spaces"/>

                                           



                                       

                                   

                               

                               

                                     data-type="char" data-name="Field" style="padding:5px;">

                                   

                                       

                                               style="width: 220px" for="studio1">

                                            Gender/DOB/Age

                                            *

                                       

                                       

                                           

                                           

                                                   name="dob" required="required"

                                                   style="width:33%;margin-left: 2%;text-transform: uppercase;"/>

                                           

                                                   name="age" required="1" style="width:30%;margin-left: 2%;" min="18"

                                                   max="100"

                                                   placeholder="ENTER AGE IN YEARS"/>

                                       

                                   

                               


                               

                                     data-type="char" data-name="Field" style="padding:5px;">

                                   

                                       

                                               style="width: 220px" for="studio1">

                                            Mobile/Email

                                            *

                                       

                                       

                                           

                                                   name="mobile" required="1" style="width:49%;" pattern="[0-9]{10}"

                                                   title="Please enter a valid phone number"

                                                   placeholder="ENTER MOBILE NUMBER"/>


                                           

                                                   name="email" required="1" style="width:49%;margin-left: 2%;"

                                                   placeholder="ENTER EMAIL"/>

                                       

                                   

                               


                               

                                     data-name="Field" style="padding:5px;">

                                   

                                       

                                               style="width: 220px"

                                               for="partner">

                                            State/District

                                            *

                                       

                                       

                                           

                                           

                                       

                                   

                               


                               

                                     data-name="Field" style="padding:5px;">

                                   

                                       

                                               style="width: 220px"

                                               for="partner">

                                            Block Name

                                            *

                                       

                                       

                                           

                                       

                                   

                               

                               

                                     data-type="char" data-name="Field" style="padding:5px;">

                                   

                                       

                                               style="width: 220px" for="studio1">

                                            Ward/Village Name

                                            *

                                       

                                       

                                           

                                                   class="form-control s_website_form_input"

                                                   name="ward_village" required="1"

                                                   placeholder="Enter Ward/Village Name"

                                                   style="text-transform: uppercase;"/>

                                       

                                   

                               


                               

                                     data-type="char" data-name="Field" style="padding:5px;">

                                   

                                       

                                               style="width: 220px" for="studio1">

                                            Door No/Street Name

                                            *

                                       

                                       

                                           

                                                   class="form-control s_website_form_input"

                                                   name="door_no" required="1"

                                                   style="width:49%;text-transform: uppercase;"

                                                   placeholder="Enter Door Number"/>

                                           

                                                   name="street" required="1"

                                                   style="width:49%;margin-left: 2%;text-transform: uppercase;"

                                                   placeholder="Enter Street Name"/>

                                       

                                   

                               



                               

                                     data-type="char" data-name="Field" style="padding:5px;">

                                   

                                       

                                               style="width: 220px" for="studio1">

                                            Pin Code

                                            *

                                       

                                       

                                           

                                                   name="pincode" required="1" pattern="[0-9]{6}"

                                                   title="Please enter a valid pin code" placeholder="ENTER PIN CODE"/>

                                       

                                   

                               



                               

                                     data-type="char" data-name="Field" style="padding:5px;">

                                   

                                       

                                               style="width: 220px" for="studio1">

                                            ID Proof/Number

                                            *

                                       

                                       

                                           

                                           

                                                   class="form-control s_website_form_input"

                                                   name="id_proof_number" required="1"

                                                   style="width:68%;margin-left: 2%;text-transform: uppercase;"

                                                   placeholder="Enter ID Proof Number"/>

                                       

                                   

                               


                               

                                     data-type="char" data-name="Field" style="padding:5px;">

                                   

                                       

                                               style="width: auto; text-align:justify;" for="studio1">

                                           

                                                These marks and words indicate my desire to become an eye donor. In the

                                                hope that I may help others, I hereby make

                                                this anatomical gift, if

                                                medically

                                                acceptable to take effect upon my death.

                                                I give my eyes for the purpose of transplantation, medical research or

                                                education.

                                                I further direct my next of kin/relative herein named to execute this

                                                gift after

                                                my

                                                death.

                                           

                                       


                                   

                               


                               

                                     style="margin-bottom: 20PX;">

                                   

                                   


                               


                           

                       

                   

               

           


       

   


    


   

       

           

               

                   

                         style="margin-top:3%;">

                       

Thank You!

                       

You have successfully registered for eye donation.

                       

                            Your Register No:

                           

                               

                           

                       

                       

                            Certificate

                       

                       

                       

                           

                               

                               

                               

                               

                               

                                    /* Define specific styles for printing */

                                    body {

                                        width: 1000px; /* Set width to 100% */

                                        height: 950px; /* Set height to 100% */

                                        margin: 20px; /* Remove default margin */

                                    }


                               

                               

                                    function generatePDF() {

                                        var pdfContent = document.getElementById('pdfContent').innerHTML;

                                        var oldPage = document.body.innerHTML;

                                        document.body.innerHTML = pdfContent;


                                        window.print();


                                        document.body.innerHTML = oldPage;

                                    }

                               

                            ]]>

                           

                           

                               

                                   

                                       

                                           

                                               

                                                     alt="Certificate Image"

                                                     style="width:100%; height: 100%; margin-top:10px; margin-bottom:10px;"/>

                                           

                                           

                                               

                                                   

                                                        Mr.

                                                           

                                                       

                                                   

                                                   

                                                        Miss.

                                                           

                                                       

                                                   

                                               

                                               

                                                   

                                                        F/o.

                                                           

                                                       

                                                   

                                                   

                                                        M/o.

                                                           

                                                       

                                                   

                                                   

                                                        W/o.

                                                           

                                                       

                                                   

                                                   

                                                        S/o.

                                                           

                                                       

                                                   

                                                   

                                                        D/o.

                                                           

                                                       

                                                   

                                                   

                                                        G/o.

                                                           

                                                       

                                                   

                                               

                                           

                                           

                                               

                                                   

                                                       

                                                   

                                               

                                                           

                                                                ,

                                                                ,

                                                                ,

                                                                ,

                                                                ,

                                                               

                                                           

                                                       

                                           

                                           

                                               

                                                   

                                                       

                                                   

                                               

                                                           

                                                               

                                                           

                                                       

                                           

                                           

                                                QR Code

                                                     style=" width: 110px; height: 110px; margin-left: 12%; margin-top: -17%;"/>

                                           

                                       

                                   

                               

                           

                       


                   

               

           

       

   


Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
4
jan. 25
44493
0
out. 24
1424
0
out. 24
5
1
mai. 23
2963
5
mai. 21
11497