diff --git a/controllers/hire.moon b/controllers/hire.moon index d786b8a..a95f9fd 100644 --- a/controllers/hire.moon +++ b/controllers/hire.moon @@ -26,6 +26,7 @@ class Hire extends lapis.Application headers: { "authentication": "Basic " .. (mime.b64 os.getenv "MAILGUN_KEY") } + method: "POST" body: { from: "#{@params.name} ", to: "xena@yolo-swag.com", diff --git a/layout/bootstrap.moon b/layout/bootstrap.moon index 03b01cd..46639ba 100644 --- a/layout/bootstrap.moon +++ b/layout/bootstrap.moon @@ -42,6 +42,9 @@ class Layout extends Widget li -> a href: "/about", "About" + li -> + a href: "/hire", "Hire Me" + ul class: "nav navbar-nav navbar-right", -> li -> a href: "/contact", "Contact" diff --git a/views/hire.moon b/views/hire.moon index ed0a2fd..6b3d645 100644 --- a/views/hire.moon +++ b/views/hire.moon @@ -6,28 +6,19 @@ class Hire extends Widget form class: "form-signin", method: "POST", action: "/hire", -> input type: "hidden", name: "csrf_token", value: @csrf_token - i class:"glyphicon glyphicon-ok form-control-feedback", -> - p "Required" - div class: "form-group", -> label for: "name", "Your Name" div class: "input-group", -> input type: "text", class: "form-control", name: "name", id: "name", placeholder: "Enter Name", :required - raw [[]] div class: "form-group", -> label for: "email", "Your Email Address" div class: "input-group", -> input type: "email", class: "form-control", name: "email", id: "email", placeholder: "Enter Email Address", :required - raw [[]] div class: "form-group", -> label for: "name", "Message" div class: "input-group", -> textarea type: "text", class: "form-control", name: "message", id: "message", rows: 5, :required - raw [[]] - raw [[]] - -