rename Hire to Email
This commit is contained in:
parent
8d31eca193
commit
05996d5e8f
2
app.moon
2
app.moon
|
@ -4,7 +4,7 @@ lapis = require "lapis"
|
||||||
class extends lapis.Application
|
class extends lapis.Application
|
||||||
layout: require "layout.bootstrap"
|
layout: require "layout.bootstrap"
|
||||||
|
|
||||||
@include "controllers.hire"
|
@include "controllers.email"
|
||||||
@include "controllers.projects"
|
@include "controllers.projects"
|
||||||
@include "controllers.go"
|
@include "controllers.go"
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,8 @@ mime = require "mime"
|
||||||
import respond_to from require "lapis.application"
|
import respond_to from require "lapis.application"
|
||||||
import assert_valid from require "lapis.validate"
|
import assert_valid from require "lapis.validate"
|
||||||
|
|
||||||
class Hire extends lapis.Application
|
class Email extends lapis.Application
|
||||||
[hire: "/contact/email"]: respond_to {
|
[email: "/contact/email"]: respond_to {
|
||||||
GET: =>
|
GET: =>
|
||||||
@csrf_token = csrf.generate_token @
|
@csrf_token = csrf.generate_token @
|
||||||
return render: true
|
return render: true
|
|
@ -1,6 +1,6 @@
|
||||||
import Widget from require "lapis.html"
|
import Widget from require "lapis.html"
|
||||||
|
|
||||||
class Hire extends Widget
|
class Email extends Widget
|
||||||
content: =>
|
content: =>
|
||||||
link rel: "stylesheet", href: "/static/css/hire/main.css"
|
link rel: "stylesheet", href: "/static/css/hire/main.css"
|
||||||
|
|
||||||
|
@ -25,4 +25,4 @@ class Hire extends Widget
|
||||||
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 [[<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"
|
Loading…
Reference in New Issue