File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
examples/applications/csv_editor Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 12
12
@rt
13
13
async def get_test_file ():
14
14
import httpx
15
- url = "https://raw.githubusercontent.com/AnswerDotAI/FastHTML-Gallery/main/applications/start_simple /csv_editor/ex_data.csv"
15
+ url = "https://raw.githubusercontent.com/AnswerDotAI/FastHTML-Gallery/refs/heads/ main/examples/applications /csv_editor/ex_data.csv"
16
16
response = await httpx .AsyncClient ().get (url )
17
17
return Response (response .text , media_type = "text/csv" ,
18
18
headers = {'Content-Disposition' : 'attachment; filename="ex_data.csv"' })
@@ -30,7 +30,7 @@ def index(sess):
30
30
31
31
def render_row (row ):
32
32
vals = [Td (Input (value = v , name = k , oninput = "this.classList.add('edited')" )) for k ,v in row .items ()]
33
- vals .append (Td (Group (Button ('delete' , hx_delete = remove .rt (id = row ['id' ]).lstrip ('/' )),
33
+ vals .append (Td (Group (Button ('delete' , hx_delete = remove .to (id = row ['id' ]).lstrip ('/' )),
34
34
Button ('update' , hx_post = 'update' , hx_include = "closest tr" ))))
35
35
return Tr (* vals , hx_target = 'closest tr' , hx_swap = 'outerHTML' )
36
36
You can’t perform that action at this time.
0 commit comments