|
|
@ -29,114 +29,119 @@ |
|
|
|
<!-- Template to print Pdf. --> |
|
|
|
<template id="print_member_ship_card"> |
|
|
|
<t t-call="web.html_container"> |
|
|
|
<div style="border: 2px solid black; padding: 15px; margin-bottom: 40px; height: 90%;"> |
|
|
|
<tr t-if="free_member==True"> |
|
|
|
<div style="border-bottom: 2px solid black; margin-bottom: 15px;"> |
|
|
|
<h2 style=" text-align: center;">Free Member</h2> |
|
|
|
</div> |
|
|
|
</tr> |
|
|
|
<tr t-else="free_member==False"> |
|
|
|
<tr> |
|
|
|
<div style="border-bottom: 2px solid black; margin-bottom: 15px;"> |
|
|
|
<h2 style="text-align:center;"> |
|
|
|
<t t-esc="membership_product[0]"/> |
|
|
|
</h2> |
|
|
|
<t t-call="web.internal_layout"> |
|
|
|
<div style="border: 2px solid black; padding: 15px; margin-bottom: 40px; height: 90%;"> |
|
|
|
<tr t-if="free_member==True"> |
|
|
|
<div style="border-bottom: 2px solid black; margin-bottom: 15px; font-size: 15px !important;"> |
|
|
|
<h2 style=" text-align: center;">Free Member</h2> |
|
|
|
</div> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
<div style="display: -webkit-box; display: flex; -webkit-box-pack: space-between; justify-content: space-between; -webkit-align-self: center align-self: center; align-items: center; "> |
|
|
|
<div> |
|
|
|
<img style="width: 120px; border-radius: 5px;" |
|
|
|
t-attf-src="data:image/*;base64,{{image}}"/> |
|
|
|
</div> |
|
|
|
<div class="session_1" |
|
|
|
style="margin-left: 15px; margin-top: 0px; padding-top: 0px;"> |
|
|
|
<tr t-if="free_member==True"> |
|
|
|
<tr> |
|
|
|
<h2 style="text-align:center;line-height: .1;"> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 t-if="name" |
|
|
|
style="text-align:left; margin-top: 0px; "> |
|
|
|
Name: |
|
|
|
<span t-esc="name"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 t-if="phone" style="text-align:left;">Phone |
|
|
|
No: |
|
|
|
<span t-esc="phone"/> |
|
|
|
<tr t-else="free_member==False"> |
|
|
|
<tr> |
|
|
|
<div style="border-bottom: 2px solid black; margin-bottom: 15px;"> |
|
|
|
<h2 style="text-align:center;"> |
|
|
|
<t t-esc="membership_product[0]"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 t-if="function" style="text-align:left;"> |
|
|
|
Job: |
|
|
|
<span t-esc="function"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<br/> |
|
|
|
<br/> |
|
|
|
</div> |
|
|
|
</tr> |
|
|
|
<tr t-else="free_member==False"> |
|
|
|
<tr> |
|
|
|
<h2 style="text-align:center;line-height: .1;"> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 t-if="name" |
|
|
|
style="text-align:left; margin-top: 0px; "> |
|
|
|
Name: |
|
|
|
<span t-esc="name"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 t-if="phone" style="text-align:left;">Phone |
|
|
|
No: |
|
|
|
<span t-esc="phone"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 style="text-align:left;">Start Date: |
|
|
|
<span t-esc="start_date"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<div style="display: -webkit-box; display: flex; -webkit-box-pack: space-between; justify-content: space-between; -webkit-align-self: center align-self: center; align-items: center; "> |
|
|
|
<div> |
|
|
|
<img style="width: 120px; border-radius: 5px;" |
|
|
|
t-attf-src="data:image/*;base64,{{image}}"/> |
|
|
|
</div> |
|
|
|
<div class="session_1" |
|
|
|
style="margin-left: 15px; margin-top: 0px; padding-top: 0px; "> |
|
|
|
<tr t-if="free_member==True"> |
|
|
|
<tr> |
|
|
|
<h2 style="text-align:center;line-height: .1;"> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 t-if="name" |
|
|
|
style="text-align:left; margin-top: 0px;"> |
|
|
|
Name: |
|
|
|
<span t-esc="name"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 t-if="phone" style="text-align:left; "> |
|
|
|
Phone |
|
|
|
No: |
|
|
|
<span t-esc="phone" style="font-size: 25px !important; "/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 t-if="function" |
|
|
|
style="text-align:left;"> |
|
|
|
Job: |
|
|
|
<span t-esc="function"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<br/> |
|
|
|
<br/> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 style="text-align:left;">End Date: |
|
|
|
<span t-esc="end_date"/> |
|
|
|
</h2> |
|
|
|
<tr t-else="free_member==False"> |
|
|
|
<tr> |
|
|
|
<h2 style="text-align:center;line-height: .1;"> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 t-if="name" |
|
|
|
style="text-align:left; margin-top: 0px; "> |
|
|
|
Name: |
|
|
|
<span t-esc="name"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 t-if="phone" style="text-align:left;"> |
|
|
|
Phone |
|
|
|
No: |
|
|
|
<span t-esc="phone"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 style="text-align:left;">Start Date: |
|
|
|
<span t-esc="start_date"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<h2 style="text-align:left;">End Date: |
|
|
|
<span t-esc="end_date"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</tr> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="border: 2px solid black; padding: 15px; height: 90%;"> |
|
|
|
<div class="session_2" style="width: 500px; "> |
|
|
|
<tr> |
|
|
|
<h2 style="text-align:left;"> |
|
|
|
<span t-esc="company_name"/> |
|
|
|
</h2> |
|
|
|
<h2 style="text-align:left;"> |
|
|
|
<span t-esc="company_address"/>, |
|
|
|
<br/> |
|
|
|
<span t-esc="city"/>, |
|
|
|
<span t-esc="state"/>, |
|
|
|
<span t-esc="country"/> |
|
|
|
</h2> |
|
|
|
<h2 style="text-align:left;"> |
|
|
|
Email: |
|
|
|
<span t-esc="company_email"/> |
|
|
|
</h2> |
|
|
|
<h2 style="text-align:left;"> |
|
|
|
Contact: |
|
|
|
<span t-esc="company_phone"/> |
|
|
|
</h2> |
|
|
|
<h2 style="text-align:left;"> |
|
|
|
<span t-esc="website"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
<div style="border: 2px solid black; padding: 15px; height: 90%;"> |
|
|
|
<div class="session_2" style="width: 500px; "> |
|
|
|
<tr> |
|
|
|
<h2 style="text-align:left;"> |
|
|
|
<span t-esc="company_name"/> |
|
|
|
</h2> |
|
|
|
<h2 style="text-align:left;"> |
|
|
|
<span t-esc="company_address"/>, |
|
|
|
<br/> |
|
|
|
<span t-esc="city"/>, |
|
|
|
<span t-esc="state"/>, |
|
|
|
<span t-esc="country"/> |
|
|
|
</h2> |
|
|
|
<h2 style="text-align:left;"> |
|
|
|
Email: |
|
|
|
<span t-esc="company_email"/> |
|
|
|
</h2> |
|
|
|
<h2 style="text-align:left;"> |
|
|
|
Contact: |
|
|
|
<span t-esc="company_phone"/> |
|
|
|
</h2> |
|
|
|
<h2 style="text-align:left;"> |
|
|
|
<span t-esc="website"/> |
|
|
|
</h2> |
|
|
|
</tr> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</t> |
|
|
|
</t> |
|
|
|
</template> |
|
|
|
</odoo> |
|
|
|