| 1 |
<?xml version="1.0" encoding="UTF-8" ?> |
| 2 |
<odoo><data> |
| 3 |
|
| 4 |
<template id="event_booth_registration_details" inherit_id="website_event_booth.event_booth_registration_details"> |
| 5 |
<form id="o_wbooth_contact_details_form" position="attributes"> |
| 6 |
<attribute name="enctype">multipart/form-data</attribute> |
| 7 |
</form> |
| 8 |
<xpath expr="//div[@id='o_wbooth_contact_details']" position="before"> |
| 9 |
<div id="o_wbooth_sponsor_details" t-if="booth_category.use_sponsor"> |
| 10 |
<h4 class="mt32"> |
| 11 |
<strong>Sponsor Details</strong> |
| 12 |
</h4> |
| 13 |
<div class="form-text text-muted mb16"> |
| 14 |
How can we showcase your company ? |
| 15 |
</div> |
| 16 |
<div class="row mb-3"> |
| 17 |
<label class="col-form-label col-sm-auto" for="sponsor_name"> |
| 18 |
<span>Company Name</span> |
| 19 |
<span class="mandatory_mark"> *</span> |
| 20 |
</label> |
| 21 |
<div class="col-sm"> |
| 22 |
<input class="form-control" type="text" name="sponsor_name" id="sponsor_name" required="True"/> |
| 23 |
</div> |
| 24 |
</div> |
| 25 |
<div class="row mb-3"> |
| 26 |
<label class="col-form-label col-sm-auto" for="sponsor_email"> |
| 27 |
<span>Email</span> |
| 28 |
<span class="mandatory_mark"> *</span> |
| 29 |
</label> |
| 30 |
<div class="col-sm"> |
| 31 |
<input class="form-control" type="email" name="sponsor_email" id="sponsor_email" required="True"/> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
<div class="row mb-3"> |
| 35 |
<label class="col-form-label col-sm-auto" for="sponsor_phone">Phone</label> |
| 36 |
<div class="col-sm"> |
| 37 |
<input class="form-control" type="text" name="sponsor_phone" id="sponsor_phone"/> |
| 38 |
</div> |
| 39 |
</div> |
| 40 |
<div class="row mb-3"> |
| 41 |
<label class="col-form-label col-sm-auto" for="sponsor_slogan">Slogan</label> |
| 42 |
<div class="col-sm"> |
| 43 |
<input class="form-control" type="text" name="sponsor_slogan" id="sponsor_slogan"/> |
| 44 |
</div> |
| 45 |
</div> |
| 46 |
<div class="row mb-3" t-if="booth_category.exhibitor_type != 'sponsor'"> |
| 47 |
<label class="col-form-label col-sm-auto" for="sponsor_description">Description</label> |
| 48 |
<div class="col-sm"> |
| 49 |
<textarea class="form-control" name="sponsor_description" id="sponsor_description"/> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
<div class="row mb-3"> |
| 53 |
<label class="col-form-label col-sm-auto" for="sponsor_image">Picture</label> |
| 54 |
<div class="col-sm"> |
| 55 |
<input name="sponsor_image" type="file" accept="image/*"/> |
| 56 |
</div> |
| 57 |
</div> |
| 58 |
<div class="form-check"> |
| 59 |
<input class="form-check-input" type="checkbox" id="contact_details"/> |
| 60 |
<label class="fw-normal" for="contact_details">Contact me through a different email/phone.</label> |
| 61 |
</div> |
| 62 |
</div> |
| 63 |
</xpath> |
| 64 |
<xpath expr="//div[@id='o_wbooth_contact_details']" position="attributes"> |
| 65 |
<attribute name="t-att-class">'d-none' if booth_category.use_sponsor else ''</attribute> |
| 66 |
</xpath> |
| 67 |
<xpath expr="//input[@name='contact_name']" position="attributes"> |
| 68 |
<attribute name="t-att-required">False if booth_category.use_sponsor else True</attribute> |
| 69 |
</xpath> |
| 70 |
<xpath expr="//input[@name='contact_email']" position="attributes"> |
| 71 |
<attribute name="t-att-required">False if booth_category.use_sponsor else True</attribute> |
| 72 |
</xpath> |
| 73 |
</template> |
| 74 |
|
| 75 |
</data></odoo> |