diff --git a/lib/modules/dosomething/dosomething_campaign/dosomething_campaign.module b/lib/modules/dosomething/dosomething_campaign/dosomething_campaign.module
index 08c0621ce..b61b11749 100644
--- a/lib/modules/dosomething/dosomething_campaign/dosomething_campaign.module
+++ b/lib/modules/dosomething/dosomething_campaign/dosomething_campaign.module
@@ -549,7 +549,9 @@ function dosomething_campaign_add_signup_data_form_vars(&$node) {
if (!$sid) {
// Staff is viewing a campaign which they haven't signed up for.
$node->content['signup_data_form'] = array(
+ '#prefix' => '
',
'#markup' => "You haven't signed up for this campaign!",
+ '#suffix' => '
',
);
// If we are collecting User address:
@@ -334,6 +334,8 @@ function dosomething_signup_user_signup_data_form($form, &$form_state, $signup)
// If we are collecting User school:
if ($config['collect_user_school']) {
$form['school_finder'] = array(
+ '#prefix' => '
");
diff --git a/lib/themes/dosomething/paraneue_dosomething/js/campaign/sources.js b/lib/themes/dosomething/paraneue_dosomething/js/campaign/sources.js
deleted file mode 100644
index b050c985c..000000000
--- a/lib/themes/dosomething/paraneue_dosomething/js/campaign/sources.js
+++ /dev/null
@@ -1,38 +0,0 @@
-define(function(require) {
- "use strict";
-
- var $ = require("jquery");
- var Events = require("neue/events");
-
-
- var toggleSources = function(container) {
- var $list = container.find("ul, div:first");
-
- // Hide the fact sources list if present.
- $list.hide();
-
- // Toggle visibility of fact sources.
- $(".js-toggle-sources").on("click", function() {
-
- // Toggle visibility of fact sources list.
- $list.slideToggle();
-
- });
- };
-
-
- var $sources = $(".sources") || null;
-
- // If there's a list of sources output in a modal, activate the toggle.
- Events.subscribe("Modal:opened", function() {
- var $sources = $(".modal .sources") || null;
- toggleSources($sources);
- });
-
-
- // If there's a list of sources output on the page, activate the toggle.
- if ($sources) {
- toggleSources($sources);
- }
-
-});
diff --git a/lib/themes/dosomething/paraneue_dosomething/js/campaign/tips.js b/lib/themes/dosomething/paraneue_dosomething/js/campaign/tips.js
deleted file mode 100644
index 878bb718b..000000000
--- a/lib/themes/dosomething/paraneue_dosomething/js/campaign/tips.js
+++ /dev/null
@@ -1,25 +0,0 @@
-define(function(require) {
- "use strict";
-
- var $ = require("jquery");
-
- // View other tips on click
- $(".js-show-tip").on("click", function(event) {
- event.preventDefault();
-
- // Cache $(this) and reference to parent wrapper
- var $this = $(this);
- var $thisParent = $this.closest(".tips--wrapper");
-
- // Pass "active" class to move tip indicator
- $thisParent.find(".tip-header").removeClass("active");
- $this.addClass("active");
-
- // Get current tip number
- var tipNumber = $this.attr("href").slice(1);
-
- // Show current tip
- $thisParent.find(".tip-body").hide();
- $thisParent.find("." + tipNumber).show();
- });
-});
diff --git a/lib/themes/dosomething/paraneue_dosomething/js/config.js b/lib/themes/dosomething/paraneue_dosomething/js/config.js
index fde635c59..a49b2121c 100644
--- a/lib/themes/dosomething/paraneue_dosomething/js/config.js
+++ b/lib/themes/dosomething/paraneue_dosomething/js/config.js
@@ -18,9 +18,24 @@ require.config({
"jquery-iecors": "../bower_components/jquery.iecors/jquery.iecors",
"lodash": "../bower_components/lodash/dist/lodash",
"mailcheck": "../bower_components/mailcheck/src/mailcheck",
- "neue": "../bower_components/neue/js",
- "text": "../bower_components/requirejs-text/text",
+ "text": "../bower_components/requirejs-text/text"
},
+ packages: [
+ {
+ name: "neue",
+ location: "../../bower_components/neue/js"
+ },
+ {
+ name: "modal",
+ location: "../../bower_components/dosomething-modal/js",
+ main: "modal"
+ },
+ {
+ name: "validation",
+ location: "../../bower_components/dosomething-validation/js",
+ main: "validation"
+ }
+ ],
stubModules: ["text"],
shim: {
"jquery-once": { deps: ["jquery"] },
diff --git a/lib/themes/dosomething/paraneue_dosomething/js/images/ImageUploadBeta.js b/lib/themes/dosomething/paraneue_dosomething/js/images/ImageUploadBeta.js
index 54aecdc77..d1da80df6 100644
--- a/lib/themes/dosomething/paraneue_dosomething/js/images/ImageUploadBeta.js
+++ b/lib/themes/dosomething/paraneue_dosomething/js/images/ImageUploadBeta.js
@@ -2,10 +2,9 @@ define(function(require) {
"use strict";
var $ = require("jquery");
- var Events = require("neue/events");
+ var Modal = require("modal");
var ImageCrop = require("images/ImageCrop");
var ImageCropPreview = require("../images/ImageCropPreview");
- var Modal = require("neue/modal");
/**
@@ -117,7 +116,7 @@ define(function(require) {
Modal.close();
});
- Events.subscribe("Modal:Close", function() {
+ Modal.Events.subscribe("Modal:Close", function() {
_this.resetFileField();
});
};
diff --git a/lib/themes/dosomething/paraneue_dosomething/js/reportback/Reportback.js b/lib/themes/dosomething/paraneue_dosomething/js/reportback/Reportback.js
index e5499bd27..016e36b66 100644
--- a/lib/themes/dosomething/paraneue_dosomething/js/reportback/Reportback.js
+++ b/lib/themes/dosomething/paraneue_dosomething/js/reportback/Reportback.js
@@ -3,7 +3,7 @@ define(function(require) {
var $ = require("jquery");
var _ = require("lodash");
- var Events = require("neue/events");
+ var Modal = require("modal");
var ImageUploadBeta = require("../images/ImageUploadBeta");
var reportbackTplSrc = require("text!reportback/templates/reportback.tpl.html");
@@ -78,7 +78,7 @@ define(function(require) {
}
// Show the caption field when the user is done with the modal.
- Events.subscribe("Modal:Close", function() {
+ Modal.Events.subscribe("Modal:Close", function() {
_this.$captionField.show();
});
},
diff --git a/lib/themes/dosomething/paraneue_dosomething/js/validation/address.js b/lib/themes/dosomething/paraneue_dosomething/js/validators/address.js
similarity index 99%
rename from lib/themes/dosomething/paraneue_dosomething/js/validation/address.js
rename to lib/themes/dosomething/paraneue_dosomething/js/validators/address.js
index 94915c098..4e2f68477 100644
--- a/lib/themes/dosomething/paraneue_dosomething/js/validation/address.js
+++ b/lib/themes/dosomething/paraneue_dosomething/js/validators/address.js
@@ -2,7 +2,7 @@ define(function(require) {
"use strict";
var $ = require("jquery");
- var Validation= require("neue/validation");
+ var Validation= require("validation");
/** @NOTE: Temporary, testing out some new ideas. */
var requiredValidator = function(string, done, args) {
diff --git a/lib/themes/dosomething/paraneue_dosomething/js/validation/auth.js b/lib/themes/dosomething/paraneue_dosomething/js/validators/auth.js
similarity index 99%
rename from lib/themes/dosomething/paraneue_dosomething/js/validation/auth.js
rename to lib/themes/dosomething/paraneue_dosomething/js/validators/auth.js
index 8f1a8b3c6..a3c52cb5b 100644
--- a/lib/themes/dosomething/paraneue_dosomething/js/validation/auth.js
+++ b/lib/themes/dosomething/paraneue_dosomething/js/validators/auth.js
@@ -1,7 +1,7 @@
define(function(require) {
"use strict";
- var Validation= require("neue/validation");
+ var Validation= require("validation");
var mailcheck = require("mailcheck");
// # Helpers
diff --git a/lib/themes/dosomething/paraneue_dosomething/js/validation/donate.js b/lib/themes/dosomething/paraneue_dosomething/js/validators/donate.js
similarity index 99%
rename from lib/themes/dosomething/paraneue_dosomething/js/validation/donate.js
rename to lib/themes/dosomething/paraneue_dosomething/js/validators/donate.js
index d86d170bf..2fd5dcf39 100644
--- a/lib/themes/dosomething/paraneue_dosomething/js/validation/donate.js
+++ b/lib/themes/dosomething/paraneue_dosomething/js/validators/donate.js
@@ -1,7 +1,7 @@
define(function(require) {
"use strict";
- var Validation= require("neue/validation");
+ var Validation= require("validation");
// Credit card types
var cardTypes = {
diff --git a/lib/themes/dosomething/paraneue_dosomething/js/validation/reportback.js b/lib/themes/dosomething/paraneue_dosomething/js/validators/reportback.js
similarity index 98%
rename from lib/themes/dosomething/paraneue_dosomething/js/validation/reportback.js
rename to lib/themes/dosomething/paraneue_dosomething/js/validators/reportback.js
index a2ca4edf8..c61c49e38 100644
--- a/lib/themes/dosomething/paraneue_dosomething/js/validation/reportback.js
+++ b/lib/themes/dosomething/paraneue_dosomething/js/validators/reportback.js
@@ -1,7 +1,7 @@
define(function(require) {
"use strict";
- var Validation = require("neue/validation");
+ var Validation = require("validation");
var $ = require("jquery");
// validate number of items
diff --git a/lib/themes/dosomething/paraneue_dosomething/scss/app.scss b/lib/themes/dosomething/paraneue_dosomething/scss/app.scss
index 06e86bae5..486ada8c8 100644
--- a/lib/themes/dosomething/paraneue_dosomething/scss/app.scss
+++ b/lib/themes/dosomething/paraneue_dosomething/scss/app.scss
@@ -17,6 +17,9 @@ $asset-path: "";
@import "../bower_components/susy/sass/susy";
@import "../bower_components/neue/scss/neue";
+@import "../bower_components/dosomething-modal/scss/modal";
+@import "../bower_components/dosomething-validation/scss/validation";
+
// Import our local variables and helpers
@import "helpers/mixins";
@@ -25,9 +28,7 @@ $asset-path: "";
// Local patterns
@import "patterns/carousel";
-@import "patterns/disclaimer";
@import "patterns/promotion"; // @TODO: Move to Neue!
-@import "patterns/sources"; // @TODO: Move to Neue!
@import "patterns/statistic"; // @TODO: Move to Neue!
@import "patterns/tile";
diff --git a/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-creator.scss b/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-creator.scss
index 4070d0e05..b9c9dd6cd 100644
--- a/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-creator.scss
+++ b/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-creator.scss
@@ -2,10 +2,6 @@
max-width: 700px;
padding: 0;
- .heading.-banner {
- margin: 0;
- }
-
> .wrapper {
overflow: hidden;
diff --git a/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-crop.scss b/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-crop.scss
index 371af6b38..85b73376b 100644
--- a/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-crop.scss
+++ b/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-crop.scss
@@ -1,13 +1,14 @@
.modal--crop {
.heading.-banner {
- margin: (-$base-spacing) (-$base-spacing) 0px;
+ margin: 0;
}
.image-editor {
padding-top: 10px;
.__buttons {
+ padding: 0 $base-spacing;
text-align: right;
.button {
@@ -45,7 +46,6 @@
}
.image-preview {
- margin: 0 (-$base-spacing);
text-align: center;
background: #000;
line-height: 0;
diff --git a/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-reportback.scss b/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-reportback.scss
index 2747dbab5..5a0fed060 100644
--- a/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-reportback.scss
+++ b/lib/themes/dosomething/paraneue_dosomething/scss/content/_modal-reportback.scss
@@ -54,7 +54,7 @@
.submitted-image {
text-align: center;
- .legal {
+ .footnote {
color: rgba(255, 255, 255, 0.6);
font-weight: $weight-bold;
margin-bottom: $base-spacing;
diff --git a/lib/themes/dosomething/paraneue_dosomething/scss/patterns/_disclaimer.scss b/lib/themes/dosomething/paraneue_dosomething/scss/patterns/_disclaimer.scss
deleted file mode 100644
index 3ecd86c56..000000000
--- a/lib/themes/dosomething/paraneue_dosomething/scss/patterns/_disclaimer.scss
+++ /dev/null
@@ -1,8 +0,0 @@
-.disclaimer {
- clear: both;
- padding-top: 36px;
-
- p, a {
- color: darken($med-gray, 10%);
- }
-}
diff --git a/lib/themes/dosomething/paraneue_dosomething/scss/patterns/_sources.scss b/lib/themes/dosomething/paraneue_dosomething/scss/patterns/_sources.scss
deleted file mode 100644
index 79da8bb01..000000000
--- a/lib/themes/dosomething/paraneue_dosomething/scss/patterns/_sources.scss
+++ /dev/null
@@ -1,37 +0,0 @@
-.sources {
- clear: both;
- word-wrap: break-word;
-
- ul {
- list-style-type: none;
- margin: 0;
- padding: 0;
-
- li + li {
- margin-top: 9px;
- }
- }
-
- sup, p {
- display: inline;
- }
-
- .__title {
- color: $med-gray;
- cursor: pointer;
- font-size: $font-regular;
- font-weight: $weight-normal;
- margin-bottom: 0;
- text-decoration: underline;
- }
-
-
- .__body {
- padding-top: 18px;
- }
-
- + .container__title {
- margin-top: 27px;
- }
-}
-
diff --git a/lib/themes/dosomething/paraneue_dosomething/templates/campaign/node--campaign.tpl.php b/lib/themes/dosomething/paraneue_dosomething/templates/campaign/node--campaign.tpl.php
index 39ebed340..6d1bfb986 100644
--- a/lib/themes/dosomething/paraneue_dosomething/templates/campaign/node--campaign.tpl.php
+++ b/lib/themes/dosomething/paraneue_dosomething/templates/campaign/node--campaign.tpl.php
@@ -79,9 +79,9 @@
fact_sources)): ?>
-
-
-
+
+
+
fact_sources as $key => $source): ?>
@@ -298,15 +298,17 @@
This is a purely frontend form that will grab crop options and a caption
And then when the user submits the form, it will populate the drupal form with these values.
*/?>
-