-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgmaker.html
146 lines (135 loc) · 5.91 KB
/
gmaker.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
---
layout: default
page: form
---
<div class="formblock">
{% for form in site.data.grantmaker %}
{% assign loopindex = forloop.index0%}
<section class="page {% if loopindex == 0 %}show{% endif %} col col--xs-12 col--sm-12 col--md-8 col--lg-8 col--md-offset-2 col--lg-offset-2" id="{{form.grantinfo}}">
{% if form.desc %}
<section class="block">
<div class="form-desc col col--xs-12 col--sm-12 col--md-12 col--lg-12">
{{form.desc}}
</div>
</section>
{% endif %}
{% if forloop.first %}
<section class="block" id="template">
<h2 id="template-open">Template Wizard ➕</h2>
<div id="wizard" class="wizard col col--xs-12 col--sm-12 col--md-12 col--lg-12">
<h3>Load from Wizard</h3>
<p>We have developed several templates for your use as a starting place to calculate how much time it may take a nonprofit to complete your grant process. Use the template wizard below to choose the grant amount, the type of grant, and whether the grant is a new or renewal grant. This will pre-populate the program information pages with nonprofit team members and time spent. Once the wizard populates the grant process steps, you may change this information or alter it if your process does not include one of the steps we’ve outlined.</p>
<p>You do not have to use the template wizard if you are more familiar with the steps your grantseekers may take to apply for grants and fulfill monitoring and reporting requirements.</p>
<label>
<span>What is the grant amount?</span>
<select class="wiz" id="wiz-amount">
<option value="" selected disabled hidden>Select an option</option>
<option value="50">Under $50k</option>
<option value="100">$50k to 250k</option>
<option value="250">Over 250k</option>
</select>
</label>
<label>
<span>What is the grant for?</span>
<select class="wiz" id="wiz-type">
<option value="" selected disabled hidden>Select an option</option>
<option value="project">Project</option>
<option value="operating">General operating</option>
</select>
</label>
<label>
<span>Is this a new grant, or renewed?</span>
<select class="wiz" id="wiz-new">
<option value="" selected disabled hidden>Select an option</option>
<option value="new">New</option>
<option value="renew">Renewal</option>
</select>
</label>
<button id="loadwizard">Load</button>
<h3>Or Load from existing Template?</h3>
<p>Note: Any changes you have made will not bechanged by the template.</p>
<select id="templateselect">
<option>Loading templates...</option>
</select>
</div>
</section>
{% endif %}
<div class="pages">
{% if forloop.index > 1 %}<button class="turn prev">Prev</button>{% endif %}
{% if forloop.index < forloop.length %}<button class="turn next">Next</button>{% endif %}
</div>
<div class="title"><h2>{{ form.name }}</h2></div>
{% for section in form.sections %}
<section class="block" id="{{section.name}}">
<h3>{{section.header}}</h3>
<form class="form">
{% for question in section.questions %}
<div class="question{% if question.required %} required{% endif%}{% if question.notemplate %} notemplate{% endif%}">
<label>{{question.label}}</label>
{% if question.type == "dropdown" %}
<select id="{{question.dbfield}}" class="live">
{% for option in question.content %}
<option data_id="{{option.label}}">{{option.label}}</option>
{% endfor %}
</select>
{% elsif question.type == "text" %}
<input class="live" type="text" id="{{question.dbfield}}" />
{% elsif question.type == "number" %}
<input class="live" type="number" min="0.0" step="0.01" id="{{question.dbfield}}" />
{% elsif question.type == "money" %}
<div class="money"><input class="live" type="number" min="0.0" step="0.01" id="{{question.dbfield}}" /></div>
{% elsif question.type == "percentage" %}
<div class="percentage"><input class="live" type="number" min="0.0" max="100.0" step="0.1" id="{{question.dbfield}}" /></div>
{% elsif question.type == "radio" %}
<div class="radio">
{% for option in question.content %}
<p>
<input class="live" type="radio" id="{{question.dbfield}}-{{option.label}}"
name="{{question.dbfield}}" value="{{option.label}}" />
<label for="{{question.dbfield}}-{{option.label}}">{{option.label}}</label>
</p>
{% endfor %}
</div>
{% elsif question.type == "peoplelist" %}
<div class="peoplelist" id="{{question.dbfield}}">
<div class="header">
<div>Contributor</div>
<div>Hours</div>
</div>
<div class="bod">
</div>
<a class="button people-button" id="{{question.dbfield}}">Add contributor</a>
</div>
{% else %}
{% endif %}
{% if question.desc %}
<div class="tag" data-tooltip="{{question.desc}}">
<img src="{{ "/img/tooltip.png" | prepend: site.baseurl | prepend: site.url }}" />
</div>
{% endif %}
</div>
{% endfor %}
</form>
</section>
{% endfor %}
<div class="pages">
{% if forloop.index > 1 %}<button class="turn prev">Prev</button>{% endif %}
{% if forloop.index < forloop.length %}<button class="turn next">Next</button>{% endif %}
</div>
{% if forloop.last %}
<a href="{{ "/makerresult" | prepend: site.baseurl | prepend: site.url }}" class="button local bottomgrant">Grant Result</a>{% endif %}
<div class="del col col--xs-12 col--sm-12 col--md-8 col--lg-8 col--md-offset-2 col--lg-offset-2"">
<a href="#" class="delete">Delete Grant?</a>
</div>
</section>
{% endfor %}
</div>
<div style="display:none" id="ppllistTemplate">
<div class="time" db_id="<%= id %>" obj_id="<%= id %>">
<select id="<%= dbid %>" class="live ppl objlist">
<option>Loading contributors...</option>
</select>
<input class="live ppl hours" type="number" min="0.0" step="0.1" id="<%= dbid %>" value="0" />
<a class="ppllistdel">x</a>
</div>
</div>