-
Notifications
You must be signed in to change notification settings - Fork 0
/
_homepage_excerpt_feedback.html
69 lines (55 loc) · 3.05 KB
/
_homepage_excerpt_feedback.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
<div class="form">
{% form_for feedback %}
{% hidden_field_tag "page_id", homepage_excerpt.id %}
<div class="form-errors">{% error_messages_for feedback %}</div>
{% if homepage_excerpt.feedback.is_content? %}
<div class="row">
<div class="col-md-12"><div class="form-group"><label for="feedback_content">{{ homepage_excerpt.feedback.content_name }}</label>{% text_area "content", class:"textarea form-control autogrow" %}</div>
</div>
</div>
{% if site.ask_to_publish_to_stream? %}
<div class="row">
<div class="col-md-12"><div class="checkbox"><label for="feedback_is_private">{% check_box "is_private", class:"checkbox" %} Don't post this publicly</label></div>
</div>
</div>
{% endif %}
{% endif %}
{% if request.sorta_logged_in? == false or request.current_signup.has_name? == false %}
<div class="row">
<div class="col-md-6"><div class="form-group"><label for="feedback_first_name">First Name</label>{% text_field "first_name", class:"text form-control" %}</div></div>
<div class="col-md-6"><div class="form-group"><label for="feedback_last_name">Last Name</label>{% text_field "last_name", class:"text form-control" %}</div></div>
</div>
{% endif %}
{% if request.sorta_logged_in? == false or request.current_signup.has_mobile? == false %}
<div class="row">
<div class="col-md-6"><div class="form-group"><label for="feedback_email">Email</label>{% email_field "email", class:"text form-control" %}</div></div>
{% if site.ask_for_mobiles? %}
<div class="col-md-6"><div class="form-group"><label for="feedback_mobile_number">Mobile phone (optional)</label>{% phone_field "mobile_number", class:"text form-control" %}</div></div>
{% endif %}
</div>
<div class="row">
<div class="col-md-6"><div class="checkbox"><label for="feedback_email_opt_in">{% check_box "email_opt_in", class:"checkbox" %} Send me email updates</label></div>
</div>
{% if site.ask_for_mobiles? %}
<div class="col-md-6"><div class="checkbox"><label for="feedback_mobile_opt_in">{% check_box "mobile_opt_in", class:"checkbox" %} Send me text messages</label></div>
</div>
{% endif %}
</div>
{% endif %}
{% if request.sorta_logged_in? == false or request.current_signup.has_full_address? == false %}
<div class="row">
<div class="col-md-12"><div class="form-group"><label for="feedback_submitted_address">Address (Street, City, State, Postal code)</label>{% text_field "submitted_address", class:"text form-control" %}</div></div>
</div>
{% endif %}
{% if homepage_excerpt.feedback.is_volunteers? and site.ask_for_volunteers? %}
{% if request.logged_in? == false or request.current_signup.is_volunteer == false %}
<div class="row">
<div class="col-md-12"><div class="checkbox"><label for="feedback_is_volunteer">{% check_box "is_volunteer", class:"checkbox" %} I want to volunteer</label></div>
</div>
</div>
{% endif %}
{% endif %}
{% submit_tag homepage_excerpt.feedback.submit_button_name, class:"submit-button btn btn-primary" %}
<div class="form-submit"></div>
{% endform_for %}
</div>