debisoft commited on
Commit
411b5ed
·
1 Parent(s): 13e8e1d
Files changed (1) hide show
  1. main.py +7 -2
main.py CHANGED
@@ -99,8 +99,13 @@ def index():
99
  Style(style),
100
  Script(src="https://unpkg.com/[email protected]/dist/leaflet.js"),
101
  #Body(onload='load()'),
102
- page,
103
- Div(id='mapid'),
 
 
 
 
 
104
  Script(js)
105
  )
106
 
 
99
  Style(style),
100
  Script(src="https://unpkg.com/[email protected]/dist/leaflet.js"),
101
  #Body(onload='load()'),
102
+ Form(hx_post=send, hx_target="#chatlist", hx_swap="beforeend")(
103
+ Div(id="chatlist", cls="chat-box h-[73vh] overflow-y-auto"),
104
+ Div(id='mapid'),
105
+ Div(cls="flex space-x-2 mt-2")(
106
+ Group(ChatInput(), Button("Send", cls="btn btn-primary"))
107
+ )
108
+ ),
109
  Script(js)
110
  )
111