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
|
||||
layout: require "layout.bootstrap"
|
||||
|
||||
@include "controllers.hire"
|
||||
@include "controllers.email"
|
||||
@include "controllers.projects"
|
||||
@include "controllers.go"
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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"
|
Loading…
Reference in New Issue