hiring: use post for email sending
This commit is contained in:
parent
d16d10860b
commit
45d3ee9907
|
@ -26,6 +26,7 @@ class Hire extends lapis.Application
|
||||||
headers: {
|
headers: {
|
||||||
"authentication": "Basic " .. (mime.b64 os.getenv "MAILGUN_KEY")
|
"authentication": "Basic " .. (mime.b64 os.getenv "MAILGUN_KEY")
|
||||||
}
|
}
|
||||||
|
method: "POST"
|
||||||
body: {
|
body: {
|
||||||
from: "#{@params.name} <siteusernoreply@mailgun.xeserv.us>",
|
from: "#{@params.name} <siteusernoreply@mailgun.xeserv.us>",
|
||||||
to: "xena@yolo-swag.com",
|
to: "xena@yolo-swag.com",
|
||||||
|
|
|
@ -42,6 +42,9 @@ class Layout extends Widget
|
||||||
li ->
|
li ->
|
||||||
a href: "/about", "About"
|
a href: "/about", "About"
|
||||||
|
|
||||||
|
li ->
|
||||||
|
a href: "/hire", "Hire Me"
|
||||||
|
|
||||||
ul class: "nav navbar-nav navbar-right", ->
|
ul class: "nav navbar-nav navbar-right", ->
|
||||||
li ->
|
li ->
|
||||||
a href: "/contact", "Contact"
|
a href: "/contact", "Contact"
|
||||||
|
|
|
@ -6,28 +6,19 @@ class Hire extends Widget
|
||||||
form class: "form-signin", method: "POST", action: "/hire", ->
|
form class: "form-signin", method: "POST", action: "/hire", ->
|
||||||
input type: "hidden", name: "csrf_token", value: @csrf_token
|
input type: "hidden", name: "csrf_token", value: @csrf_token
|
||||||
|
|
||||||
i class:"glyphicon glyphicon-ok form-control-feedback", ->
|
|
||||||
p "Required"
|
|
||||||
|
|
||||||
div class: "form-group", ->
|
div class: "form-group", ->
|
||||||
label for: "name", "Your Name"
|
label for: "name", "Your Name"
|
||||||
div class: "input-group", ->
|
div class: "input-group", ->
|
||||||
input type: "text", class: "form-control", name: "name", id: "name", placeholder: "Enter Name", :required
|
input type: "text", class: "form-control", name: "name", id: "name", placeholder: "Enter Name", :required
|
||||||
raw [[<span class="input-group-addon"><i class="glyphicon glyphicon-ok form-control-feedback"></i></span>]]
|
|
||||||
|
|
||||||
div class: "form-group", ->
|
div class: "form-group", ->
|
||||||
label for: "email", "Your Email Address"
|
label for: "email", "Your Email Address"
|
||||||
div class: "input-group", ->
|
div class: "input-group", ->
|
||||||
input type: "email", class: "form-control", name: "email", id: "email", placeholder: "Enter Email Address", :required
|
input type: "email", class: "form-control", name: "email", id: "email", placeholder: "Enter Email Address", :required
|
||||||
raw [[<span class="input-group-addon"><i class="glyphicon glyphicon-ok form-control-feedback"></i></span>]]
|
|
||||||
|
|
||||||
div class: "form-group", ->
|
div class: "form-group", ->
|
||||||
label for: "name", "Message"
|
label for: "name", "Message"
|
||||||
div class: "input-group", ->
|
div class: "input-group", ->
|
||||||
textarea type: "text", class: "form-control", name: "message", id: "message", rows: 5, :required
|
textarea type: "text", class: "form-control", name: "message", id: "message", rows: 5, :required
|
||||||
raw [[<span class="input-group-addon"><i class="glyphicon glyphicon-ok form-control-feedback"></i></span>]]
|
|
||||||
|
|
||||||
|
|
||||||
raw [[<input type="submit" name="submit" id="submit" value="Submit" class="btn btn-info pull-right">]]
|
raw [[<input type="submit" name="submit" id="submit" value="Submit" class="btn btn-info pull-right">]]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue