This commit is contained in:
JMARyA 2023-01-14 05:39:29 +01:00
parent 4712bd6534
commit 6506305c05
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 44 additions and 87 deletions

View file

@ -34,7 +34,7 @@ pub async fn message_page(r: HttpRequest) -> impl Responder {
h1 { "Message" };
br;
form action=(format!("http://{host}/message")) method="post" autocomplete="off" {
form action=(web_base::func::get_full_url(&r)) method="post" autocomplete="off" {
input value="" type="text" required name="msg_name" placeholder="Name" class="form-control bg-dark text-white" style="margin-bottom: 15px";
textarea placeholder="Message" required name="message" cols="10" rows="10" class="form-control bg-dark text-white" style="margin-bottom: 15px;" {};
input value="Send Message" type="submit" required name="submit" class="btn btn-danger text-white text-decoration-none";