@@ -10,8 +10,8 @@ discard block |
||
10 | 10 | private static $table_name = 'Sunnysideup_clickspots_DataPoint'; |
11 | 11 | |
12 | 12 | private static $db = [ |
13 | - 'Title' => 'Varchar', |
|
14 | - 'Description' => 'HTMLText', |
|
13 | + 'Title' => 'Varchar', |
|
14 | + 'Description' => 'HTMLText', |
|
15 | 15 | ]; |
16 | 16 | |
17 | 17 | private static $has_one = [ |
@@ -20,19 +20,19 @@ discard block |
||
20 | 20 | |
21 | 21 | public function getCMSFields() |
22 | 22 | { |
23 | - $fields = parent::getCMSFields(); |
|
24 | - $fields->addFieldToTab( |
|
25 | - 'Root.Main', |
|
26 | - ImageCoordField::create( |
|
27 | - $name = 'DataPointImageCoordinates', |
|
28 | - $xFieldName = 'XCoordinate', |
|
29 | - $yFieldName = 'YCoordinate', |
|
30 | - $imageURL = $this->Parent()->DataPointImage()->Link(), |
|
31 | - $width = $this->Parent()->DataPointImage()->getWidth(), |
|
32 | - $height = $this->Parent()->DataPointImage()->getHeight(), |
|
33 | - $cssGrid = true |
|
34 | - ) |
|
35 | - ); |
|
36 | - return $fields; |
|
23 | + $fields = parent::getCMSFields(); |
|
24 | + $fields->addFieldToTab( |
|
25 | + 'Root.Main', |
|
26 | + ImageCoordField::create( |
|
27 | + $name = 'DataPointImageCoordinates', |
|
28 | + $xFieldName = 'XCoordinate', |
|
29 | + $yFieldName = 'YCoordinate', |
|
30 | + $imageURL = $this->Parent()->DataPointImage()->Link(), |
|
31 | + $width = $this->Parent()->DataPointImage()->getWidth(), |
|
32 | + $height = $this->Parent()->DataPointImage()->getHeight(), |
|
33 | + $cssGrid = true |
|
34 | + ) |
|
35 | + ); |
|
36 | + return $fields; |
|
37 | 37 | } |
38 | 38 | } |