This commit is contained in:
gsinghpal
2026-02-23 00:32:20 -05:00
parent d6bac8e623
commit e8e554de95
549 changed files with 1330 additions and 124935 deletions

View File

@@ -1,47 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<templates xml:space="preserve">
<!-- Places Autocomplete Address Field (inherits CharField, turns off browser autocomplete) -->
<t t-name="fusion_clock.PlacesAddress" t-inherit="web.CharField" t-inherit-mode="primary">
<xpath expr="//input" position="attributes">
<attribute name="autocomplete">off</attribute>
</xpath>
</t>
<!-- Interactive Map Widget -->
<t t-name="fusion_clock.LocationMap">
<div class="fclk-map-widget">
<!-- Search box (edit mode only) -->
<div t-if="state.loaded and !props.readonly" class="mb-2">
<input t-ref="searchInput" type="text"
class="form-control"
placeholder="Search for a place or address..."/>
</div>
<!-- Map container -->
<div t-ref="mapContainer"
style="width:100%; height:400px; border-radius:8px; border:1px solid var(--o-border-color, #dee2e6);"/>
<!-- Coordinate display -->
<div t-if="state.loaded and !props.readonly"
class="mt-2 text-muted small">
<i class="fa fa-info-circle me-1"/>
Drag the pin or use the search box to adjust. Changes save with the form.
</div>
<!-- Loading -->
<div t-if="!state.loaded and !state.error"
class="text-center p-4 text-muted">
<i class="fa fa-spinner fa-spin fa-2x"/>
<div class="mt-2">Loading map...</div>
</div>
<!-- Error -->
<div t-if="state.error" class="alert alert-warning mt-2 mb-0">
<i class="fa fa-exclamation-triangle me-1"/>
<t t-esc="state.error"/>
</div>
</div>
</t>
</templates>