[IMP] portal: improve design
Small changes to the customer portal : form input reorderings, relabelling, removal of the draft quotation warning.
This commit is contained in:
@@ -363,7 +363,6 @@ img.o_we_custom_image {
|
||||
|
||||
address {
|
||||
span[itemprop="name"] {
|
||||
font-weight: bold;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
|
||||
|
||||
@@ -370,10 +370,6 @@
|
||||
<label class="col-form-label" for="email">Email</label>
|
||||
<input type="email" name="email" t-attf-class="form-control #{error.get('email') and 'is-invalid' or ''}" t-att-value="email or partner.email" />
|
||||
</div>
|
||||
<div t-attf-class="form-group #{error.get('phone') and 'o_has_error' or ''} col-xl-6">
|
||||
<label class="col-form-label" for="phone">Phone</label>
|
||||
<input type="tel" name="phone" t-attf-class="form-control #{error.get('phone') and 'is-invalid' or ''}" t-att-value="phone or partner.phone" />
|
||||
</div>
|
||||
|
||||
<div class="clearfix" />
|
||||
<div t-attf-class="form-group #{error.get('company_name') and 'o_has_error' or ''} col-xl-6">
|
||||
@@ -385,6 +381,10 @@
|
||||
<label class="col-form-label label-optional" for="vat">VAT Number</label>
|
||||
<input type="text" name="vat" t-attf-class="form-control #{error.get('vat') and 'is-invalid' or ''}" t-att-value="vat or partner.vat" t-att-readonly="None if partner.can_edit_vat() else '1'" t-att-title="None if partner.can_edit_vat() else 'Changing VAT number is not allowed once document(s) have been issued for your account. Please contact us directly for this operation.'" />
|
||||
</div>
|
||||
<div t-attf-class="form-group #{error.get('phone') and 'o_has_error' or ''} col-xl-6">
|
||||
<label class="col-form-label" for="phone">Phone</label>
|
||||
<input type="tel" name="phone" t-attf-class="form-control #{error.get('phone') and 'is-invalid' or ''}" t-att-value="phone or partner.phone" />
|
||||
</div>
|
||||
|
||||
<div class="clearfix" />
|
||||
<div t-attf-class="form-group #{error.get('street') and 'o_has_error' or ''} col-xl-6">
|
||||
|
||||
@@ -198,7 +198,7 @@ class CustomerPortal(CustomerPortal):
|
||||
return {'error': _('Invalid order')}
|
||||
|
||||
if not order_sudo.has_to_be_signed():
|
||||
return {'error': _('Order is not in a state requiring customer signature.')}
|
||||
return {'error': _('The order is not in a state requiring customer signature.')}
|
||||
if not signature:
|
||||
return {'error': _('Signature is missing.')}
|
||||
|
||||
|
||||
@@ -305,11 +305,6 @@
|
||||
<strong>This quotation has been canceled.</strong> <a role="button" href="#discussion"><i class="fa fa-comment"/> Contact us to get a new quotation.</a>
|
||||
</div>
|
||||
|
||||
<div t-if="sale_order.state == 'draft'" class="alert alert-warning alert-dismissable d-print-none" role="status">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="close">&times;</button>
|
||||
<strong>This is a draft quotation.</strong> <a role="button" href="#discussion"><i class="fa fa-comment"/> Contact us to get the final version.</a>
|
||||
</div>
|
||||
|
||||
<div t-if="sale_order.is_expired" class="alert alert-warning alert-dismissable d-print-none" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="close">&times;</button>
|
||||
<strong>This offer expired!</strong> <a role="button" href="#discussion"><i class="fa fa-comment"/> Contact us to get a new quotation.</a>
|
||||
@@ -343,7 +338,7 @@
|
||||
|
||||
<!-- chatter -->
|
||||
<div id="sale_order_communication" class="mt-4">
|
||||
<h2>Communication</h2>
|
||||
<h2>History</h2>
|
||||
<t t-call="portal.message_thread">
|
||||
<t t-set="object" t-value="sale_order"/>
|
||||
</t>
|
||||
@@ -361,8 +356,8 @@
|
||||
<template id="sale_order_portal_content" name="Sales Order Portal Content">
|
||||
<!-- Intro -->
|
||||
<div id="introduction" t-attf-class="pb-2 pt-3 #{'card-header bg-white' if report_type == 'html' else ''}">
|
||||
<h2 class="my-0">
|
||||
<span t-field="sale_order.type_name"></span>
|
||||
<h2 class="my-0">
|
||||
<t t-esc="sale_order.type_name"/>
|
||||
<em t-esc="sale_order.name"/>
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user