mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] buttons to send checkin data in reservation and folio;collapse button in views
This commit is contained in:
@@ -124,6 +124,7 @@ class PortalFolio(CustomerPortal):
|
|||||||
except (AccessError, MissingError):
|
except (AccessError, MissingError):
|
||||||
return request.redirect("/my")
|
return request.redirect("/my")
|
||||||
values = self._folio_get_page_view_values(folio_sudo, access_token, **kw)
|
values = self._folio_get_page_view_values(folio_sudo, access_token, **kw)
|
||||||
|
values.update({"no_breadcrumbs": True})
|
||||||
return request.render("pms.portal_my_folio_precheckin", values)
|
return request.render("pms.portal_my_folio_precheckin", values)
|
||||||
|
|
||||||
|
|
||||||
@@ -252,6 +253,7 @@ class PortalReservation(CustomerPortal):
|
|||||||
values = self._reservation_get_page_view_values(
|
values = self._reservation_get_page_view_values(
|
||||||
reservation_sudo, access_token, **kw
|
reservation_sudo, access_token, **kw
|
||||||
)
|
)
|
||||||
|
values.update({"no_breadcrumbs": True})
|
||||||
return request.render("pms.portal_my_reservation_precheckin", values)
|
return request.render("pms.portal_my_reservation_precheckin", values)
|
||||||
|
|
||||||
|
|
||||||
@@ -298,6 +300,7 @@ class PortalPrecheckin(CustomerPortal):
|
|||||||
except (AccessError, MissingError):
|
except (AccessError, MissingError):
|
||||||
return request.redirect("/my")
|
return request.redirect("/my")
|
||||||
values = self._precheckin_get_page_view_values(checkin_sudo, access_token, **kw)
|
values = self._precheckin_get_page_view_values(checkin_sudo, access_token, **kw)
|
||||||
|
values.update({"no_breadcrumbs": True})
|
||||||
return request.render("pms.portal_my_precheckin_detail", values)
|
return request.render("pms.portal_my_precheckin_detail", values)
|
||||||
|
|
||||||
@http.route(["/my/precheckin"], type="http", auth="user", website=True, csrf=False)
|
@http.route(["/my/precheckin"], type="http", auth="user", website=True, csrf=False)
|
||||||
|
|||||||
@@ -475,213 +475,4 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template id="portal_my_folio_precheckin" name="Precheckin Folio">
|
|
||||||
<t t-call="portal.portal_layout">
|
|
||||||
<t t-set="breadcrumbs_searchbar" t-value="True" />
|
|
||||||
|
|
||||||
<t t-call="portal.portal_searchbar">
|
|
||||||
<t t-set="title">Precheckins</t>
|
|
||||||
</t>
|
|
||||||
<t t-if="not folio.reservation_ids">
|
|
||||||
<p
|
|
||||||
>There are currently no reservations in this folio for your account.</p>
|
|
||||||
</t>
|
|
||||||
<t t-if="folio.reservation_ids" t-call="portal.portal_table">
|
|
||||||
<thead>
|
|
||||||
<tr class="active">
|
|
||||||
<th>PreCheckin in Folio <span t-field="folio.name" /></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<t t-foreach="folio.reservation_ids" t-as="reservation">
|
|
||||||
<tr class="bg-light">
|
|
||||||
<td colspan="4"><em
|
|
||||||
class="font-weight-normal text-muted"
|
|
||||||
><span />Reservation: </em>
|
|
||||||
<a
|
|
||||||
t-att-href="reservation.get_portal_url(suffix='/precheckin')"
|
|
||||||
t-att-title="reservation.name"
|
|
||||||
>
|
|
||||||
<t t-esc="reservation.name" />
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<t
|
|
||||||
t-foreach="reservation.checkin_partner_ids"
|
|
||||||
t-as="checkin_partner"
|
|
||||||
>
|
|
||||||
<tr>
|
|
||||||
<td colspan="4">
|
|
||||||
<a t-att-href="checkin_partner.get_portal_url()">
|
|
||||||
Checkin
|
|
||||||
</a>
|
|
||||||
<div class="row o_portal_details">
|
|
||||||
<div class="col-lg-8">
|
|
||||||
<div class="row">
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="firstname"
|
|
||||||
>Name</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="firstname"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="name or checkin_partner.firstname"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="lastname"
|
|
||||||
>Lastname</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="lastname"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="lastname or checkin_partner.lastname"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="lastname2"
|
|
||||||
> Second Lastname</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="lastname2"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="lastname2 or checkin_partner.lastname2"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="birthdate_date"
|
|
||||||
> Birth Date</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="birthdate_date"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="birth_date or checkin_partner.birthdate_date"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="gender"
|
|
||||||
>Gender</label>
|
|
||||||
<select
|
|
||||||
class="form-control"
|
|
||||||
id="gender"
|
|
||||||
name="gender"
|
|
||||||
>
|
|
||||||
<option
|
|
||||||
value="female"
|
|
||||||
>Female</option>
|
|
||||||
<option
|
|
||||||
value="male"
|
|
||||||
>Male</option>
|
|
||||||
<option
|
|
||||||
value="other"
|
|
||||||
>Other</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="document_type"
|
|
||||||
>Doc. type</label>
|
|
||||||
<select
|
|
||||||
class="form-control"
|
|
||||||
id="doc_type_id"
|
|
||||||
name="document_type"
|
|
||||||
>
|
|
||||||
<option value="D">DNI</option>
|
|
||||||
<option
|
|
||||||
value="C"
|
|
||||||
>Driving License</option>
|
|
||||||
<option
|
|
||||||
value="I"
|
|
||||||
>Identification Document</option>
|
|
||||||
<option
|
|
||||||
value="N"
|
|
||||||
>Spanish residence permit</option>
|
|
||||||
<option
|
|
||||||
value="X"
|
|
||||||
>European residence permit</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="document_number"
|
|
||||||
>Doc. number</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="document_number"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="doc_number or checkin_partner.document_number"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="document_expedition_date"
|
|
||||||
>Doc. expedition date</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="document_expedition_date"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="doc_exp_date or checkin_partner.document_expedition_date"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="mobile"
|
|
||||||
>Mobile</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="mobile"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="mobile or checkin_partner.mobile"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="email"
|
|
||||||
>Email</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="email"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="email or checkin_partner.email"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</t>
|
|
||||||
</t>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<div class="clearfix">
|
|
||||||
<button
|
|
||||||
type="submit"
|
|
||||||
class="btn btn-primary float-right mb32 "
|
|
||||||
>
|
|
||||||
Confirm
|
|
||||||
<span class="fa fa-long-arrow-right" />
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</t>
|
|
||||||
</t>
|
|
||||||
</template>
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -14,132 +14,145 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-8">
|
<div class="col-lg-8">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div t-attf-class="form-group col-xl-6">
|
<div t-attf-class="form-group col-xl-6">
|
||||||
<label
|
<label
|
||||||
class="col-form-label"
|
class="col-form-label"
|
||||||
for="firstname"
|
for="firstname"
|
||||||
>Name</label>
|
>Name</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="firstname"
|
name="firstname"
|
||||||
t-attf-class="form-control"
|
t-attf-class="form-control"
|
||||||
t-att-value="name or checkin_partner.firstname"
|
t-att-value="firstname or checkin_partner.firstname"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div t-attf-class="form-group col-xl-6">
|
<div t-attf-class="form-group col-xl-6">
|
||||||
<label
|
<label
|
||||||
class="col-form-label"
|
class="col-form-label"
|
||||||
for="lastname"
|
for="lastname"
|
||||||
>Lastname</label>
|
>Lastname</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="lastname"
|
name="lastname"
|
||||||
t-attf-class="form-control"
|
t-attf-class="form-control"
|
||||||
t-att-value="lastname or checkin_partner.lastname"
|
t-att-value="lastname or checkin_partner.lastname"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div t-attf-class="form-group col-xl-6">
|
<div t-attf-class="form-group col-xl-6">
|
||||||
<label
|
<label
|
||||||
class="col-form-label"
|
class="col-form-label"
|
||||||
for="lastname2"
|
for="lastname2"
|
||||||
> Second Lastname</label>
|
> Second Lastname</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="lastname2"
|
name="lastname2"
|
||||||
t-attf-class="form-control"
|
t-attf-class="form-control"
|
||||||
t-att-value="lastname2 or checkin_partner.lastname2"
|
t-att-value="lastname2 or checkin_partner.lastname2"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div t-attf-class="form-group col-xl-6">
|
<div t-attf-class="form-group col-xl-6">
|
||||||
<label
|
<label
|
||||||
class="col-form-label"
|
class="col-form-label"
|
||||||
for="birthdate_date"
|
for="birthdate_date"
|
||||||
> Birth Date</label>
|
> Birth Date</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="date"
|
||||||
name="birthdate_date"
|
name="birthdate_date"
|
||||||
t-attf-class="form-control"
|
t-attf-class="form-control"
|
||||||
t-att-value="birth_date or checkin_partner.birthdate_date"
|
t-att-value="birth_date or checkin_partner.birthdate_date"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div t-attf-class="form-group col-xl-6">
|
<div t-attf-class="form-group col-xl-6">
|
||||||
<label
|
<label
|
||||||
class="col-form-label"
|
class="col-form-label"
|
||||||
for="gender"
|
for="gender"
|
||||||
>Gender</label>
|
>Gender</label>
|
||||||
<select class="form-control" id="gender" name="gender">
|
<select
|
||||||
<option value="female">Female</option>
|
class="form-control"
|
||||||
<option value="male">Male</option>
|
id="gender"
|
||||||
<option value="other">Other</option>
|
name="gender"
|
||||||
</select>
|
>
|
||||||
</div>
|
<option value="female">Female</option>
|
||||||
<div t-attf-class="form-group col-xl-6">
|
<option value="male">Male</option>
|
||||||
<label
|
<option value="other">Other</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
class="col-form-label"
|
class="col-form-label"
|
||||||
for="document_type"
|
for="document_type"
|
||||||
>Doc. type</label>
|
>Doc. type</label>
|
||||||
<select
|
<select
|
||||||
class="form-control"
|
class="form-control"
|
||||||
id="doc_type_id"
|
id="doc_type_id"
|
||||||
name="document_type"
|
name="document_type"
|
||||||
>
|
>
|
||||||
<option value="D">DNI</option>
|
<option value="D">DNI</option>
|
||||||
<option value="C">Driving License</option>
|
<option value="C">Driving License</option>
|
||||||
<option value="I">Identification Document</option>
|
<option
|
||||||
<option value="N">Spanish residence permit</option>
|
value="I"
|
||||||
<option value="X">European residence permit</option>
|
>Identification Document</option>
|
||||||
</select>
|
<option
|
||||||
</div>
|
value="N"
|
||||||
<div t-attf-class="form-group col-xl-6">
|
>Spanish residence permit</option>
|
||||||
<label
|
<option
|
||||||
|
value="X"
|
||||||
|
>European residence permit</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
class="col-form-label"
|
class="col-form-label"
|
||||||
for="document_number"
|
for="document_number"
|
||||||
>Doc. number</label>
|
>Doc. number</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
name="document_number"
|
name="document_number"
|
||||||
t-attf-class="form-control"
|
t-attf-class="form-control"
|
||||||
t-att-value="doc_number or checkin_partner.document_number"
|
t-att-value="doc_number or checkin_partner.document_number"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div t-attf-class="form-group col-xl-6">
|
<div t-attf-class="form-group col-xl-6">
|
||||||
<label
|
<label
|
||||||
class="col-form-label"
|
class="col-form-label"
|
||||||
for="document_expedition_date"
|
for="document_expedition_date"
|
||||||
>Doc. expedition date</label>
|
>Doc. expedition date</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="date"
|
||||||
name="document_expedition_date"
|
name="document_expedition_date"
|
||||||
t-attf-class="form-control"
|
t-attf-class="form-control"
|
||||||
t-att-value="doc_exp_date or checkin_partner.document_expedition_date"
|
t-att-value="doc_exp_date or checkin_partner.document_expedition_date"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div t-attf-class="form-group col-xl-6">
|
<div t-attf-class="form-group col-xl-6">
|
||||||
<label
|
<label
|
||||||
class="col-form-label"
|
class="col-form-label"
|
||||||
for="mobile"
|
for="mobile"
|
||||||
>Mobile</label>
|
>Mobile</label>
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="number"
|
||||||
name="mobile"
|
name="mobile"
|
||||||
t-attf-class="form-control"
|
t-attf-class="form-control"
|
||||||
t-att-value="mobile or checkin_partner.mobile"
|
t-att-value="mobile or checkin_partner.mobile"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div t-attf-class="form-group col-xl-6">
|
<div t-attf-class="form-group col-xl-6">
|
||||||
<label class="col-form-label" for="email">Email</label>
|
<label
|
||||||
<input
|
class="col-form-label"
|
||||||
type="text"
|
for="email"
|
||||||
|
>Email</label>
|
||||||
|
<input
|
||||||
|
type="email"
|
||||||
name="email"
|
name="email"
|
||||||
t-attf-class="form-control"
|
t-attf-class="form-control"
|
||||||
t-att-value="email or checkin_partner.email"
|
t-att-value="email or checkin_partner.email"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<button type="submit" class="btn btn-primary float-right mb32 ">
|
<button type="submit" class="btn btn-primary float-right mb32 ">
|
||||||
Confirm
|
Confirm
|
||||||
@@ -149,4 +162,455 @@
|
|||||||
</form>
|
</form>
|
||||||
</t>
|
</t>
|
||||||
</template>
|
</template>
|
||||||
|
<template id="portal_my_reservation_precheckin" name="Precheckin Reservation">
|
||||||
|
<t t-call="portal.portal_layout">
|
||||||
|
<t t-if="not reservation.checkin_partner_ids">
|
||||||
|
<p
|
||||||
|
>There are currently no precheckins in this reserva for your account.</p>
|
||||||
|
</t>
|
||||||
|
<t t-if="reservation.checkin_partner_ids" t-call="portal.portal_table">
|
||||||
|
<thead>
|
||||||
|
<tr class="active">
|
||||||
|
<th>PreCheckin in Reservation <span
|
||||||
|
t-field="reservation.name"
|
||||||
|
/></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<t t-set="count" t-value="1" />
|
||||||
|
<t
|
||||||
|
t-foreach="reservation.checkin_partner_ids"
|
||||||
|
t-as="checkin_partner"
|
||||||
|
>
|
||||||
|
<t t-set="id1" t-value="'counter'+ str(count)" />
|
||||||
|
<t t-set="id2" t-value="'#'" />
|
||||||
|
<t t-set="id3" t-value="str(id2)+str(id1)" />
|
||||||
|
<t t-set="count" t-value="count+1" />
|
||||||
|
<form class="collapse" action="/my/reservations/precheckin">
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">
|
||||||
|
<a t-att-href="checkin_partner.get_portal_url()">
|
||||||
|
Checkin
|
||||||
|
</a>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn btn-info"
|
||||||
|
data-toggle="collapse"
|
||||||
|
t-att-data-target="id3"
|
||||||
|
>Drop down</button>
|
||||||
|
<div class="row o_portal_details">
|
||||||
|
<div class="col-lg-8">
|
||||||
|
<div class="row collapse" t-att-id="id1">
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="firstname"
|
||||||
|
>Name</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="firstname"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="firstname or checkin_partner.firstname"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="lastname"
|
||||||
|
>Lastname</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="lastname"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="lastname or checkin_partner.lastname"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="lastname2"
|
||||||
|
> Second Lastname</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="lastname2"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="lastname2 or checkin_partner.lastname2"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="birthdate_date"
|
||||||
|
> Birth Date</label>
|
||||||
|
<input
|
||||||
|
type="date"
|
||||||
|
name="birthdate_date"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="birth_date or checkin_partner.birthdate_date"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="gender"
|
||||||
|
>Gender</label>
|
||||||
|
<select
|
||||||
|
class="form-control"
|
||||||
|
id="gender"
|
||||||
|
name="gender"
|
||||||
|
>
|
||||||
|
<option
|
||||||
|
value="female"
|
||||||
|
>Female</option>
|
||||||
|
<option
|
||||||
|
value="male"
|
||||||
|
>Male</option>
|
||||||
|
<option
|
||||||
|
value="other"
|
||||||
|
>Other</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="document_type"
|
||||||
|
>Doc. type</label>
|
||||||
|
<select
|
||||||
|
class="form-control"
|
||||||
|
id="doc_type_id"
|
||||||
|
name="document_type"
|
||||||
|
>
|
||||||
|
<option value="D">DNI</option>
|
||||||
|
<option
|
||||||
|
value="C"
|
||||||
|
>Driving License</option>
|
||||||
|
<option
|
||||||
|
value="I"
|
||||||
|
>Identification Document</option>
|
||||||
|
<option
|
||||||
|
value="N"
|
||||||
|
>Spanish residence permit</option>
|
||||||
|
<option
|
||||||
|
value="X"
|
||||||
|
>European residence permit</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="document_number"
|
||||||
|
>Doc. number</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="document_number"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="doc_number or checkin_partner.document_number"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="document_expedition_date"
|
||||||
|
>Doc. expedition date</label>
|
||||||
|
<input
|
||||||
|
type="date"
|
||||||
|
name="document_expedition_date"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="doc_exp_date or checkin_partner.document_expedition_date"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="mobile"
|
||||||
|
>Mobile</label>
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
name="mobile"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="mobile or checkin_partner.mobile"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="email"
|
||||||
|
>Email</label>
|
||||||
|
<input
|
||||||
|
type="email"
|
||||||
|
name="email"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="email or checkin_partner.email"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
t-attf-class="form-group col-xl-6 d-none"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="id"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="checkin_partner.id"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="clearfix">
|
||||||
|
<button
|
||||||
|
type="submit"
|
||||||
|
class="btn btn-primary float-right mb32 "
|
||||||
|
>
|
||||||
|
Confirm
|
||||||
|
<span class="fa fa-long-arrow-right" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</form>
|
||||||
|
</t>
|
||||||
|
<!-- <div t-attf-class="form-group col-xl-6 d-none">-->
|
||||||
|
<!-- <input-->
|
||||||
|
<!-- type="text"-->
|
||||||
|
<!-- name="checkins"-->
|
||||||
|
<!-- t-attf-class="form-control"-->
|
||||||
|
<!-- t-att-value="checkins"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </div>-->
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</t>
|
||||||
|
</t>
|
||||||
|
</template>
|
||||||
|
<template id="portal_my_folio_precheckin" name="Precheckin Folio">
|
||||||
|
<t t-call="portal.portal_layout">
|
||||||
|
<t t-if="not folio.reservation_ids">
|
||||||
|
<p
|
||||||
|
>There are currently no reservations in this folio for your account.</p>
|
||||||
|
</t>
|
||||||
|
<t t-if="folio.reservation_ids" t-call="portal.portal_table">
|
||||||
|
<thead>
|
||||||
|
<tr class="active">
|
||||||
|
<th>PreCheckin in Folio <span t-field="folio.name" /></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<t t-foreach="folio.reservation_ids" t-as="reservation">
|
||||||
|
<tr class="bg-light">
|
||||||
|
<td colspan="4"><em
|
||||||
|
class="font-weight-normal text-muted"
|
||||||
|
><span />Reservation: </em>
|
||||||
|
<a
|
||||||
|
t-att-href="reservation.get_portal_url(suffix='/precheckin')"
|
||||||
|
t-att-title="reservation.name"
|
||||||
|
>
|
||||||
|
<t t-esc="reservation.name" />
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<t t-set="count" t-value="1" />
|
||||||
|
<t
|
||||||
|
t-foreach="reservation.checkin_partner_ids"
|
||||||
|
t-as="checkin_partner"
|
||||||
|
>
|
||||||
|
<t t-set="id1" t-value="'counter'+ str(count)" />
|
||||||
|
<t t-set="id2" t-value="'#'" />
|
||||||
|
<t t-set="id3" t-value="str(id2)+str(id1)" />
|
||||||
|
<t t-set="count" t-value="count+1" />
|
||||||
|
<form class="collapse" action="/my/precheckin">
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">
|
||||||
|
<a t-att-href="checkin_partner.get_portal_url()">
|
||||||
|
Checkin
|
||||||
|
</a>
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
class="btn btn-info"
|
||||||
|
data-toggle="collapse"
|
||||||
|
t-att-data-target="id3"
|
||||||
|
>Drop down</button>
|
||||||
|
<div class="row o_portal_details">
|
||||||
|
<div class="col-lg-8">
|
||||||
|
<div class="row collapse" t-att-id="id1">
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="firstname"
|
||||||
|
>Name</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="firstname"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="firstname or checkin_partner.firstname"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="lastname"
|
||||||
|
>Lastname</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="lastname"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="lastname or checkin_partner.lastname"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="lastname2"
|
||||||
|
> Second Lastname</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="lastname2"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="lastname2 or checkin_partner.lastname2"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="birthdate_date"
|
||||||
|
> Birth Date</label>
|
||||||
|
<input
|
||||||
|
type="date"
|
||||||
|
name="birthdate_date"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="birth_date or checkin_partner.birthdate_date"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="gender"
|
||||||
|
>Gender</label>
|
||||||
|
<select
|
||||||
|
class="form-control"
|
||||||
|
id="gender"
|
||||||
|
name="gender"
|
||||||
|
>
|
||||||
|
<option
|
||||||
|
value="female"
|
||||||
|
>Female</option>
|
||||||
|
<option
|
||||||
|
value="male"
|
||||||
|
>Male</option>
|
||||||
|
<option
|
||||||
|
value="other"
|
||||||
|
>Other</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="document_type"
|
||||||
|
>Doc. type</label>
|
||||||
|
<select
|
||||||
|
class="form-control"
|
||||||
|
id="doc_type_id"
|
||||||
|
name="document_type"
|
||||||
|
>
|
||||||
|
<option value="D">DNI</option>
|
||||||
|
<option
|
||||||
|
value="C"
|
||||||
|
>Driving License</option>
|
||||||
|
<option
|
||||||
|
value="I"
|
||||||
|
>Identification Document</option>
|
||||||
|
<option
|
||||||
|
value="N"
|
||||||
|
>Spanish residence permit</option>
|
||||||
|
<option
|
||||||
|
value="X"
|
||||||
|
>European residence permit</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="document_number"
|
||||||
|
>Doc. number</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="document_number"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="doc_number or checkin_partner.document_number"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="document_expedition_date"
|
||||||
|
>Doc. expedition date</label>
|
||||||
|
<input
|
||||||
|
type="date"
|
||||||
|
name="document_expedition_date"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="doc_exp_date or checkin_partner.document_expedition_date"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="mobile"
|
||||||
|
>Mobile</label>
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
name="mobile"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="mobile or checkin_partner.mobile"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div t-attf-class="form-group col-xl-6">
|
||||||
|
<label
|
||||||
|
class="col-form-label"
|
||||||
|
for="email"
|
||||||
|
>Email</label>
|
||||||
|
<input
|
||||||
|
type="email"
|
||||||
|
name="email"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="email or checkin_partner.email"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
t-attf-class="form-group col-xl-6 d-none"
|
||||||
|
>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="id"
|
||||||
|
t-attf-class="form-control"
|
||||||
|
t-att-value="id or checkin_partner.id"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<div class="clearfix">
|
||||||
|
<button
|
||||||
|
type="submit"
|
||||||
|
class="btn btn-primary float-right mb32 "
|
||||||
|
>
|
||||||
|
Confirm
|
||||||
|
<span class="fa fa-long-arrow-right" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</form>
|
||||||
|
</t>
|
||||||
|
</t>
|
||||||
|
</tbody>
|
||||||
|
</t>
|
||||||
|
</t>
|
||||||
|
</template>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -279,197 +279,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</template>
|
</template>
|
||||||
<template id="portal_my_reservation_precheckin" name="Precheckin Reservation">
|
|
||||||
<t t-call="portal.portal_layout">
|
|
||||||
<t t-set="breadcrumbs_searchbar" t-value="True" />
|
|
||||||
|
|
||||||
<t t-call="portal.portal_searchbar">
|
|
||||||
<t t-set="title">Precheckins</t>
|
|
||||||
</t>
|
|
||||||
<t t-if="not reservation.checkin_partner_ids">
|
|
||||||
<p
|
|
||||||
>There are currently no precheckins in this reserva for your account.</p>
|
|
||||||
</t>
|
|
||||||
<t t-if="reservation.checkin_partner_ids" t-call="portal.portal_table">
|
|
||||||
<thead>
|
|
||||||
<tr class="active">
|
|
||||||
<th>PreCheckin in Reservation <span
|
|
||||||
t-field="reservation.name"
|
|
||||||
/></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<t
|
|
||||||
t-foreach="reservation.checkin_partner_ids"
|
|
||||||
t-as="checkin_partner"
|
|
||||||
>
|
|
||||||
<tr>
|
|
||||||
<td colspan="4">
|
|
||||||
<a t-att-href="checkin_partner.get_portal_url()">
|
|
||||||
Checkin
|
|
||||||
</a>
|
|
||||||
<div class="row o_portal_details">
|
|
||||||
<div class="col-lg-8">
|
|
||||||
<div class="row">
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="firstname"
|
|
||||||
>Name</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="firstname"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="name or checkin_partner.firstname"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="lastname"
|
|
||||||
>Lastname</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="lastname"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="lastname or checkin_partner.lastname"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="lastname2"
|
|
||||||
> Second Lastname</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="lastname2"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="lastname2 or checkin_partner.lastname2"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="birthdate_date"
|
|
||||||
> Birth Date</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="birthdate_date"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="birth_date or checkin_partner.birthdate_date"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="gender"
|
|
||||||
>Gender</label>
|
|
||||||
<select
|
|
||||||
class="form-control"
|
|
||||||
id="gender"
|
|
||||||
name="gender"
|
|
||||||
>
|
|
||||||
<option
|
|
||||||
value="female"
|
|
||||||
>Female</option>
|
|
||||||
<option value="male">Male</option>
|
|
||||||
<option value="other">Other</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="document_type"
|
|
||||||
>Doc. type</label>
|
|
||||||
<select
|
|
||||||
class="form-control"
|
|
||||||
id="doc_type_id"
|
|
||||||
name="document_type"
|
|
||||||
>
|
|
||||||
<option value="D">DNI</option>
|
|
||||||
<option
|
|
||||||
value="C"
|
|
||||||
>Driving License</option>
|
|
||||||
<option
|
|
||||||
value="I"
|
|
||||||
>Identification Document</option>
|
|
||||||
<option
|
|
||||||
value="N"
|
|
||||||
>Spanish residence permit</option>
|
|
||||||
<option
|
|
||||||
value="X"
|
|
||||||
>European residence permit</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="document_number"
|
|
||||||
>Doc. number</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="document_number"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="doc_number or checkin_partner.document_number"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="document_expedition_date"
|
|
||||||
>Doc. expedition date</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="document_expedition_date"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="doc_exp_date or checkin_partner.document_expedition_date"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="mobile"
|
|
||||||
>Mobile</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="mobile"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="mobile or checkin_partner.mobile"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div t-attf-class="form-group col-xl-6">
|
|
||||||
<label
|
|
||||||
class="col-form-label"
|
|
||||||
for="email"
|
|
||||||
>Email</label>
|
|
||||||
<input
|
|
||||||
type="text"
|
|
||||||
name="email"
|
|
||||||
t-attf-class="form-control"
|
|
||||||
t-att-value="email or checkin_partner.email"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</t>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<div class="clearfix">
|
|
||||||
<button
|
|
||||||
type="submit"
|
|
||||||
class="btn btn-primary float-right mb32 "
|
|
||||||
>
|
|
||||||
Confirm
|
|
||||||
<span class="fa fa-long-arrow-right" />
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</t>
|
|
||||||
</t>
|
|
||||||
</template>
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
Reference in New Issue
Block a user