Skip to content
This repository
Browse code

MINOR add 'print button' to Member list and data list of ModelAdmin

  • Loading branch information...
commit 2f3949ac6e647dd9ee39a672dec83b687aeae2f2 1 parent 63b23a2
Normann Lou authored
1  admin/code/ModelAdmin.php
@@ -124,6 +124,7 @@ function getEditForm($id = null) {
124 124
 			$fieldConfig = GridFieldConfig_RecordEditor::create($this->stat('page_length'))
125 125
 				->addComponent($exportButton)
126 126
 				->removeComponentsByType('GridFieldFilterHeader')
  127
+				->addComponents(new GridFieldPrintButton())
127 128
 		);
128 129
 
129 130
 		// Validation
1  security/Group.php
@@ -97,6 +97,7 @@ public function getCMSFields() {
97 97
 		if($this->ID) {
98 98
 			$config = new GridFieldConfig_RelationEditor();
99 99
 			$config->addComponents(new GridFieldExportButton());
  100
+			$config->addComponents(new GridFieldPrintButton());
100 101
 			$config->getComponentByType('GridFieldAddExistingAutocompleter')
101 102
 				->setResultsFormat('$Title ($Email)')->setSearchFields(array('FirstName', 'Surname', 'Email'));
102 103
 			$config->getComponentByType('GridFieldDetailForm')->setValidator(new Member_Validator());

0 notes on commit 2f3949a

Please sign in to comment.
Something went wrong with that request. Please try again.