Skip to content
This repository was archived by the owner on Oct 29, 2020. It is now read-only.

Commit 9a8b8e9

Browse files
committed
Merge pull request #2275 from DFurnes/hunt-mcc-google-form
Hunt mcc google form
2 parents ebbcf0b + 32d92f1 commit 9a8b8e9

File tree

5 files changed

+1675
-144
lines changed

5 files changed

+1675
-144
lines changed

lib/themes/dosomething/paraneue_dosomething/includes/preprocess.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ function paraneue_dosomething_preprocess_page(&$vars) {
3131

3232
$vars['navigation'] = theme('navigation', $navigation_vars);
3333

34+
// Show Hunt MCC form confirmation if query string exists
35+
$node_type = menu_get_object()->type;
36+
if ($node_type == 'campaign_group' && array_key_exists('submitted_mcc', $_GET)) {
37+
drupal_set_message('Thanks for submitting your idea!');
38+
}
3439

3540
// Footer Output Setup
3641
$vars['footer'] = theme('footer');

lib/themes/dosomething/paraneue_dosomething/scss/app.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@
3535
@import "content/explore-campaigns";
3636
@import "content/finder";
3737
@import "content/user";
38+
39+
// One-off pages
40+
@import "content/campaign/hunt-mcc";
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
.mcc--googleform {
2+
background: #fff;
3+
4+
.ss-form {
5+
@include media($tablet) {
6+
@include span-columns(8 of 12);
7+
@include shift(2);
8+
}
9+
}
10+
11+
.ss-form-desc {
12+
margin-bottom: 2rem;
13+
}
14+
15+
.required-message {
16+
@include visually-hidden;
17+
}
18+
19+
.ss-required-asterisk {
20+
display: none;
21+
}
22+
23+
.field-label-optional {
24+
color: $light-gray;
25+
}
26+
27+
.ss-form-question {
28+
margin-bottom: 1rem;
29+
@include clearfix;
30+
}
31+
32+
.ss-choices {
33+
list-style-type: none;
34+
}
35+
36+
.ss-choice-item label {
37+
margin: 0.25em 0;
38+
}
39+
40+
.ss-q-other-container {
41+
padding-left: 1.25rem;
42+
43+
input {
44+
max-width: 400px;
45+
}
46+
}
47+
48+
.ss-datetime-box select {
49+
@include span-columns(2 of 8);
50+
@include omega(3n);
51+
}
52+
53+
// Hide Google Datepicker control
54+
.ss-picker-button-container {
55+
display: none;
56+
}
57+
58+
.ss-secondary-text {
59+
color: $med-gray;
60+
font-size: 0.9rem;
61+
padding-bottom: 1rem;
62+
}
63+
64+
// These should be hidden since we're not running Google's JS
65+
.error-message {
66+
display: none;
67+
}
68+
69+
.ss-navigate {
70+
margin-bottom: 2rem;
71+
72+
table {
73+
margin: 0 auto;
74+
}
75+
}
76+
}

lib/themes/dosomething/paraneue_dosomething/tasks/options/requirejs.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ module.exports = {
1111
dev: {
1212
options: {
1313
uglify2: {
14+
output: {
15+
beautify: true
16+
},
1417
compress: {
1518
global_defs: {
1619
DEBUG: true
1720
}
18-
}
21+
},
22+
mangle: false
1923
}
2024
}
2125
},

0 commit comments

Comments
 (0)