bug in health form
This commit is contained in:
parent
9e5acd6aa5
commit
64917db638
4 changed files with 14 additions and 16 deletions
|
@ -62,7 +62,6 @@ struct HealthForm {
|
|||
|
||||
#[post("/health-form")]
|
||||
pub async fn health_form(MultipartForm(form): MultipartForm<HealthForm>) -> HttpResponse {
|
||||
log::info!("{:?}", form);
|
||||
let first = form
|
||||
.first_name
|
||||
.as_ref()
|
||||
|
@ -432,7 +431,6 @@ pub async fn health_form(MultipartForm(form): MultipartForm<HealthForm>) -> Http
|
|||
let mut path: Option<String> = Some(String::from(""));
|
||||
let mut file_exists = false;
|
||||
let mut filename = String::from("");
|
||||
log::info!("{:?}", form);
|
||||
log::info!("{:?}", file_exists);
|
||||
if let Some(f) = form.file {
|
||||
if let Some(file) = f.file_name {
|
||||
|
@ -474,7 +472,7 @@ pub async fn health_form(MultipartForm(form): MultipartForm<HealthForm>) -> Http
|
|||
.unwrap(),
|
||||
)
|
||||
.to("Chris Cochrun <chris@tfcconnection.org>".parse().unwrap())
|
||||
// .to("Ethan Rose <ethan@tfcconnection.org>".parse().unwrap())
|
||||
.to("Ethan Rose <ethan@tfcconnection.org>".parse().unwrap())
|
||||
.subject(email_subject)
|
||||
.multipart(multi)
|
||||
{
|
||||
|
|
|
@ -221,7 +221,7 @@ pub async fn local_form(MultipartForm(form): MultipartForm<LocalForm>) -> HttpRe
|
|||
}
|
||||
}
|
||||
body {
|
||||
h1 { @format!("Mission trip form for {} {}!", first, last) }
|
||||
h1 { @format!("Local mission trip form for {} {}!", first, last) }
|
||||
hr;
|
||||
table {
|
||||
tr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue