rename Hire to Email

This commit is contained in:
Christine Dodrill 2015-02-03 12:34:20 -08:00
parent 8d31eca193
commit 05996d5e8f
3 changed files with 5 additions and 5 deletions

View File

@ -4,7 +4,7 @@ lapis = require "lapis"
class extends lapis.Application
layout: require "layout.bootstrap"
@include "controllers.hire"
@include "controllers.email"
@include "controllers.projects"
@include "controllers.go"

View File

@ -6,8 +6,8 @@ mime = require "mime"
import respond_to from require "lapis.application"
import assert_valid from require "lapis.validate"
class Hire extends lapis.Application
[hire: "/contact/email"]: respond_to {
class Email extends lapis.Application
[email: "/contact/email"]: respond_to {
GET: =>
@csrf_token = csrf.generate_token @
return render: true

View File

@ -1,6 +1,6 @@
import Widget from require "lapis.html"
class Hire extends Widget
class Email extends Widget
content: =>
link rel: "stylesheet", href: "/static/css/hire/main.css"
@ -25,4 +25,4 @@ class Hire extends Widget
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">]]
input type: "submit", name: "submit", id: "submit", value: "Submit", class: "btn btn-info"