Skip to content

Instantly share code, notes, and snippets.

View Bramjetten's full-sized avatar

Bram Jetten Bramjetten

View GitHub Profile
module Denkgroot
include ActiveSupport::Configurable
config_accessor :title, :page_parts, :view_templates, :layout_parts, :custom_pages, :plugins, :structures
self.title = "denkGroot thema"
self.page_parts = [
{ name: 'text', title: 'Text', page_partable_type: "Spina::Text" },
{ name: 'teaser', title: 'Teaser', page_partable_type: "Spina::Line" },
module Restaurant
include ActiveSupport::Configurable
config_accessor :title, :page_parts, :view_templates, :layout_parts, :custom_pages, :plugins, :structures
self.title = "Restaurant thema"
self.page_parts = [
{ name: 'header_photo', title: 'Header', page_partable_type: "Spina::Photo" },
{ name: 'background_photo', title: 'Achtergrond', page_partable_type: "Spina::Photo" },
= form_for [spina, Spina::Inquiry.new], remote: true, html: {class: 'contact-form'} do |f|
= raw negative_captcha(captcha)
%p= f.negative_text_field captcha, :name, placeholder: 'Naam'
%p= f.negative_text_field captcha, :email, placeholder: 'Email'
%p= f.negative_text_area captcha, :message, placeholder: 'Bericht', rows: 5
%p= button_tag "Bericht verzenden", type: :submit, class: 'button'
### Keybase proof
I hereby claim:
* I am Bramjetten on github.
* I am bramjetten (https://keybase.io/bramjetten) on keybase.
* I have a public key whose fingerprint is 9553 B2DB 67BA F32F 109E 66D8 4773 9A97 95F8 B870
To claim this, I am signing this object: