Commit b1c40acc authored by peterh-gr's avatar peterh-gr Committed by peterh-gr
Browse files

Added a model for the donate form

We want to be able to create some different donate forms with different
settings on different pages. This is the bare bones of that with just
one field called frequency that decides whether it's a monthly form, a
single form, or both. It still needs to be hooked up to the React
component in order to work.

Issue #45066
parent 5cb0f192
html: donate.html
_model: donate-form
---
stripePublishableKey: foo
_template: layout.html
---
color: primary
---
title: Donate
--
frequency: both
---
intro:
<div class="left-column">
<h4 class="end-of-year-2019-campaign-header-subtitle">Intro!</h4>
</div>
---
html: donate-form.html
---
body:
### Body!
_model: donate-form
---
_template: layout.html
---
color: primary
---
title: Single Donation
--
frequency: single
---
intro:
<div class="left-column">
<h4 class="end-of-year-2019-campaign-header-subtitle">Single!</h4>
</div>
---
html: donate-form.html
---
body:
### Body!
[model]
name = Donate Form
label = {{ this.title }}
[fields.frequency]
label = Frequency
type = select
choices = single, monthly, both
choice_labels = Single, Monthly, Both
[fields.intro]
label = Intro
type = html
[fields.title]
label = Title
type = string
[fields.section]
label = Section
type = string
translate = True
[fields.section_id]
label = Section_id
type = string
translate = False
[fields.body]
label = Body
type = markdown
[fields.color]
label = Color
type = string
[fields.html]
label = Html
type = string
<div class="header">
{{ this.intro }}
</div>
<div id="monthly-giving-form">
<div id="loading-dialog"></div>
<script type="text/javascript" src="https://js.stripe.com/v3/"></script>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment