[IMP] event: clarify event kanban view and add some mobile tweak
This commit adds 2 improvements to help clarify kanban view: 1. In kanban view on Mobile, add some space between the two clickable links (expevted & confirmed) 2. The "Confirmed" button land on kanban view instead of pivot view Task ID 2228562 closes odoo/odoo#49595 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
committed by
Thibault Delavallée
parent
cf078da86e
commit
a06a35b238
@@ -152,7 +152,7 @@
|
||||
<field name="res_model">event.registration</field>
|
||||
<field name="name">Attendees</field>
|
||||
<field name="view_mode">kanban,tree,form,calendar,graph</field>
|
||||
<field name="context">{'search_default_event_id': active_id, 'default_event_id': active_id, 'search_default_expected': True}</field>
|
||||
<field name="context">{'search_default_event_id': active_id, 'default_event_id': active_id}</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Add a new attendee
|
||||
@@ -186,6 +186,7 @@
|
||||
<div class="oe_button_box" name="button_box" groups="base.group_user">
|
||||
<button name="%(event.act_event_registration_from_event)d"
|
||||
type="action"
|
||||
context="{'search_default_expected': True}"
|
||||
class="oe_stat_button"
|
||||
icon="fa-users"
|
||||
help="Total Registrations for this Event">
|
||||
@@ -349,15 +350,15 @@
|
||||
<div><i class="fa fa-map-marker" title="Location"/> <span class="o_text_overflow o_event_kanban_location" t-esc="record.address_id.value"/></div>
|
||||
</div>
|
||||
<h5 class="o_event_fontsize_11 p-0">
|
||||
<a name="%(act_event_registration_from_event)d" type="action">
|
||||
<a name="%(act_event_registration_from_event)d" type="action" context="{'search_default_expected': True}">
|
||||
<t t-esc="record.seats_expected.raw_value"/> Expected attendees
|
||||
</a>
|
||||
<t t-set="total_seats" t-value="record.seats_reserved.raw_value + record.seats_used.raw_value"/>
|
||||
<t t-if="total_seats > 0 "><br/>
|
||||
<a class="pl-2" name="%(event_event_action_pivot)d" type="action">
|
||||
<div class="pt-2 pt-md-0" t-if="total_seats > 0">
|
||||
<a class="pl-2" name="%(act_event_registration_from_event)d" type="action" context="{'search_default_confirmed': True}">
|
||||
<i class="fa fa-level-up fa-rotate-90" title="Confirmed"/><span class="pl-2"><t t-esc="total_seats"/> Confirmed</span>
|
||||
</a>
|
||||
</t>
|
||||
</div>
|
||||
</h5>
|
||||
<div class="text-right">
|
||||
<div class="float-left"><field name="activity_ids" widget="kanban_activity"/></div>
|
||||
|
||||
Reference in New Issue
Block a user