add custom logic for mailing form

This commit is contained in:
Christine Dodrill 2015-01-31 23:13:07 -08:00
parent 1835ed94c4
commit dec2178c25
2 changed files with 23 additions and 15 deletions

5
static/css/hire/main.css Normal file
View File

@ -0,0 +1,5 @@
div.ccd-login-form {
max-width: 330px;
padding: 15px;
margin: 0 auto;
}

View File

@ -2,22 +2,25 @@ import Widget from require "lapis.html"
class Hire extends Widget class Hire extends Widget
content: => content: =>
form class: "form-signin", method: "POST", action: "/hire", -> link rel: "stylesheet", href: "/static/css/hire/main.css"
input type: "hidden", name: "csrf_token", value: @csrf_token
div class: "form-group", -> div class: "ccd-login-form", ->
label for: "name", "Your Name" form class: "form-signin", method: "POST", action: "/hire", ->
div class: "input-group", -> input type: "hidden", name: "csrf_token", value: @csrf_token
input type: "text", class: "form-control", name: "name", id: "name", placeholder: "Enter Name", :required
div class: "form-group", -> div class: "form-group", ->
label for: "email", "Your Email Address" label for: "name", "Your Name"
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: "text", class: "form-control", name: "name", id: "name", placeholder: "Enter Name", :required
div class: "form-group", -> div class: "form-group", ->
label for: "name", "Message" label for: "email", "Your Email Address"
div class: "input-group", -> div class: "input-group", ->
textarea type: "text", class: "form-control", name: "message", id: "message", rows: 5, :required input type: "email", class: "form-control", name: "email", id: "email", placeholder: "Enter Email Address", :required
raw [[<input type="submit" name="submit" id="submit" value="Submit" class="btn btn-info pull-right">]] 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 [[<input type="submit" name="submit" id="submit" value="Submit" class="btn btn-info pull-right">]]