diff --git a/file-service/src/html.rs b/file-service/src/html.rs index 5f5e2cd..1be10bc 100644 --- a/file-service/src/html.rs +++ b/file-service/src/html.rs @@ -74,7 +74,7 @@ impl Html for Form { None => "".to_owned(), }; format!( - "
\n", + "\n{elements}\n
\n", path = self.path, method = self.method, encoding = encoding, diff --git a/file-service/src/pages.rs b/file-service/src/pages.rs index e68aabe..589f6b7 100644 --- a/file-service/src/pages.rs +++ b/file-service/src/pages.rs @@ -106,9 +106,8 @@ pub fn thumbnail(info: &FileInfo) -> Container { ) .with_html( Form::new() - .with_path(&format!("/{}", *info.id)) + .with_path(&format!("/delete/{}", *info.id)) .with_method("post") - .with_html(Input::new("hidden", "_method").with_value("delete")) .with_html(Button::new("Delete")), ), )