njazari/sef-founderwall

View on GitHub
app/views/dedications/new.html.haml

Summary

Maintainability
Test Coverage
// should only be accessible if (logged in?) donor has a donation without a dedication

%h1 New Dedication and Consent for Digital Wall of Founders

= form_tag dedication_path(@dedication), :method => :put do

  %h2 Dedication
  = label :dedication, :dedication, 'Write a dedication for your donation'
  = text_field :dedication, 'dedication'

  %h2 Digital Wall of Founders
  = label :dedication, :status, 'I want my dedication to appear on the Digital Wall of Founders'
  = check_box :dedication, 'status', {}, true, false

  = submit_tag 'Save'
  = submit_tag 'Publish', name: 'publish'