Skip to content

Commit

Permalink
Merge pull request #354 from compucorp/PCHR-3369-tasks-and-workflows-…
Browse files Browse the repository at this point in the history
…ux-improvements-cherry-picked

PCHR-3369: Tasks and Workflows UX improvements
  • Loading branch information
reneolivo authored Apr 30, 2018
2 parents c6e387a + 9eb8de7 commit 56b875d
Show file tree
Hide file tree
Showing 52 changed files with 1,231 additions and 180 deletions.
364 changes: 363 additions & 1 deletion package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@
"civicrm-cv": "^0.1.2",
"gulp": "^3.9.1",
"gulp-clean": "^0.4.0",
"gulp-concat": "^2.6.1",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.6.1",
"gulp-sass": "^3.2.1",
"gulp-sass-bulk-import": "^1.0.1",
"gulp-sourcemaps": "^2.6.4",
"gulp-uglify": "^3.0.0",
"husky": "^0.14.3",
"jasmine-core": "^2.9.1",
"karma": "^2.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,25 @@
require_once 'CRM/Core/Page.php';

class CRM_Tasksassignments_Page_Options extends CRM_Admin_Page_Options {

function run() {
parent::run();
}


/**
* Browse all options.
*/
public function browse() {
parent::browse();

$optionValues = $this->get_template_vars('rows');
$optionValues = array_filter($optionValues, function ($item) {
return $item['is_reserved'] == 0;
});

$this->assign('rows', $optionValues);
}

/**
* Use the form name to create the tpl file name
*
Expand All @@ -20,7 +34,7 @@ function getTemplateFileName() {
'CRM_Admin_Page_Options'
) . '.tpl';
}

function editForm() {
//return self::$_gName ? 'CRM_Admin_Form_Options' : 'CRM_Admin_Form_OptionGroup';
if (self::$_gName === 'activity_type') {
Expand Down
Loading

0 comments on commit 56b875d

Please sign in to comment.