Skip to content

Instantly share code, notes, and snippets.

View bangpound's full-sized avatar

Benjamin Doherty bangpound

View GitHub Profile
diff --git a/src/app/controllers/accounts.controller.js b/src/app/controllers/accounts.controller.js
index 223be0e..b720462 100644
--- a/src/app/controllers/accounts.controller.js
+++ b/src/app/controllers/accounts.controller.js
@@ -10,6 +10,15 @@ export class AccountsController {
this.HateoasResource = HateoasResource;
this.$scope = $scope;
this.$state = $state;
+ this.period = 'P1M';
+ this.schedules = [
diff --git a/src/app/views/accountFormEdit.html b/src/app/views/accountFormEdit.html
index aad91b1..00dba76 100644
--- a/src/app/views/accountFormEdit.html
+++ b/src/app/views/accountFormEdit.html
@@ -35,8 +35,8 @@
<input type="number" class="form-control" id="balance" step="any" ng-model="accountForm.currentLedger.balance" required />
</div>
<div class="form-group">
- <label for="payment" ng-if="accountForm.accountType == 'saving'">Contribution this Month</label>
- <label for="payment" ng-if="accountForm.accountType == 'debt'">Payment this Month</label>
diff --git a/docroot/profiles/discoverdesign/modules/cafprojectedit/cafprojectedit.module b/docroot/profiles/discoverdesign/modules/cafprojectedit/cafprojectedit.module
index 80585de..2a67188 100644
--- a/docroot/profiles/discoverdesign/modules/cafprojectedit/cafprojectedit.module
+++ b/docroot/profiles/discoverdesign/modules/cafprojectedit/cafprojectedit.module
@@ -27,6 +27,7 @@ function cafprojectedit_preprocess_node(&$variables) {
/** @var \Drupal\node\Entity\Node $entity */
$entity = $variables['node'];
if ($entity->bundle() === 'project' && $entity->access('edit')) {
+ $variables['csrf'] = \Drupal::csrfToken()->get('rest');
$variables['editable'] = TRUE;
diff --git a/docroot/profiles/discoverdesign/modules/cafprojectedit/js/drupalEntity.directive.js b/docroot/profiles/discoverdesign/modules/cafprojectedit/js/drupalEntity.directive.js
index 758a6bb..6da21c0 100644
--- a/docroot/profiles/discoverdesign/modules/cafprojectedit/js/drupalEntity.directive.js
+++ b/docroot/profiles/discoverdesign/modules/cafprojectedit/js/drupalEntity.directive.js
@@ -14,6 +14,7 @@
var entityUrl = attrs['ddDrupalEntity'];
scope.alerts = [];
+ scope.mode = 'form';
--
docroot/core//assets/vendor/ckeditor/skins/moono/dialog.css-/*
docroot/core//assets/vendor/ckeditor/skins/moono/dialog.css-Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
docroot/core//assets/vendor/ckeditor/skins/moono/dialog.css-For licensing, see LICENSE.md or http://ckeditor.com/license
docroot/core//assets/vendor/ckeditor/skins/moono/dialog.css-*/
docroot/core//assets/vendor/ckeditor/skins/moono/dialog.css:.cke_dialog{visibility:visible}.cke_dialog_body{z-index:1;background:#eaeaea;border:1px solid #b2b2b2;border-bottom-color:#999;border-radius:3px;box-shadow:0 0 3px rgba(0,0,0,.15)}.cke_dialog strong{font-weight:bold}.cke_dialog_title{font-weight:bold;font-size:13px;cursor:move;position:relative;color:#474747;text-shadow:0 1px 0 rgba(255,255,255,.75);border-bottom:1px solid #999;padding:6px 10px;border-radius:2px 2px 0 0;box-shadow:0 1px 0 #fff inset;background:#cfd1cf;background-image:linear-gradient(to bottom,#f5f5f5,#cfd1cf);filter:progid:DXImageTransform.Microsoft.grad
@bangpound
bangpound / -
Last active June 16, 2016 05:23
diff --git a/src/app/controllers/login.controller.js b/src/app/controllers/login.controller.js
index df3eba1..a0d15b3 100644
--- a/src/app/controllers/login.controller.js
+++ b/src/app/controllers/login.controller.js
@@ -30,11 +30,12 @@ export class LoginController {
let userId = this.$Auth.getPayload().userId;
this.User.get({ id: userId }, (user) => {
this.$UserService.setUser(user);
-
+ return user;
<?php
/**
* @file
* Contains the theme's functions to manipulate Drupal's default markup.
*
* Complete documentation for this file is available online.
* @see https://drupal.org/node/1728096
*/
include_once 'includes/template.pager.inc';
<?php
/**
* @file
* Drupal site-specific configuration file.
*
* IMPORTANT NOTE:
* This file may have been set to read-only by the Drupal installation program.
* If you make changes to this file, be sure to protect it again after making
* your modifications. Failure to remove write permissions to this file is a
commit 3d51895ff8fb2aa8fd0e24448fd5fb6a92ff7145
Author: Benjamin Doherty <[email protected]>
Date: Mon Jun 20 18:19:16 2016 -0500
convert profile back into a multisite setup.
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d9b8363
--- /dev/null
diff --git a/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php b/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php
index b8197b2..190e47e 100644
--- a/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php
+++ b/docroot/profiles/discoverdesign/modules/cafbadges/src/Wizard/BadgingWizard.php
@@ -121,24 +121,14 @@ public function finish(array &$form, FormStateInterface $form_state) {
*/
protected function customizeForm(array $form, FormStateInterface $form_state) {
$form = parent::customizeForm($form, $form_state);
- if ($this->machine_name) {
- $entity = $this->entityTypeManager->getStorage($this->entityTypeId)