diff --git a/.gitignore b/.gitignore index 496ee2ca..5cd3d290 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ +.sass-cache .DS_Store \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 55091eca..0a558db1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,8 @@ language: php php: - 5.3 +sudo: false + env: - DB=MYSQL CORE_RELEASE=master - DB=PGSQL CORE_RELEASE=master @@ -19,4 +21,4 @@ before_script: - cd ~/builds/ss script: - - phpunit reports/tests/ \ No newline at end of file + - phpunit reports/tests/ diff --git a/code/Report.php b/code/Report.php index baa0c1f0..3c1470ae 100644 --- a/code/Report.php +++ b/code/Report.php @@ -25,7 +25,7 @@ * =========================== * * Right now, all subclasses of SS_Report will be shown in the ReportAdmin. In SS3 there is only - * one place where reports can go, so this class is greatly simplifed from from its version in SS2. + * one place where reports can go, so this class is greatly simplifed from its version in SS2. * * @package reports */ @@ -284,8 +284,9 @@ class SS_Report extends ViewableData { new GridFieldSortableHeader(), new GridFieldDataColumns(), new GridFieldPaginator(), - new GridFieldPrintButton(), - new GridFieldExportButton() + new GridFieldButtonRow('after'), + new GridFieldPrintButton('buttons-after-left'), + new GridFieldExportButton('buttons-after-left') ); $gridField = new GridField('Report',$this->title(), $items, $gridFieldConfig); $columns = $gridField->getConfig()->getComponentByType('GridFieldDataColumns'); diff --git a/code/ReportAdmin.php b/code/ReportAdmin.php index ae2fe8f9..1aa0845f 100644 --- a/code/ReportAdmin.php +++ b/code/ReportAdmin.php @@ -47,7 +47,7 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider { $this->reportObject = (isset($allReports[$this->reportClass])) ? $allReports[$this->reportClass] : null; // Set custom options for TinyMCE specific to ReportAdmin - HtmlEditorConfig::get('cms')->setOption('ContentCSS', project() . '/css/editor.css'); + HtmlEditorConfig::get('cms')->setOption('content_css', project() . '/css/editor.css'); HtmlEditorConfig::get('cms')->setOption('Lang', i18n::get_tinymce_lang()); // Always block the HtmlEditorField.js otherwise it will be sent with an ajax request diff --git a/templates/Includes/ReportAdmin_Content.ss b/templates/Includes/ReportAdmin_Content.ss index ff6c2419..9ee88de3 100644 --- a/templates/Includes/ReportAdmin_Content.ss +++ b/templates/Includes/ReportAdmin_Content.ss @@ -1,20 +1,20 @@
- <% with EditForm %> + <% with $EditForm %>
- <% include BackLink_Button %> - <% with Controller %> + <% include BackLink_Button %> + <% with $Controller %> <% include CMSBreadcrumbs %> - <% end_with %> + <% end_with %>
<% end_with %>
- + $EditForm - +
- +
\ No newline at end of file diff --git a/templates/ReportAdminForm.ss b/templates/ReportAdminForm.ss index bc8e262b..e239fe76 100644 --- a/templates/ReportAdminForm.ss +++ b/templates/ReportAdminForm.ss @@ -1,41 +1,41 @@
- +
$FieldMap.ReportTitle.FieldHolder $FieldMap.ReportDescription.FieldHolder - - <% if FieldMap.Filters.Children %> + + <% if $FieldMap.Filters.Children %>

<% _t('ReportAdminForm.FILTERBY', 'Filter by') %>

- +
- <% loop FieldMap.Filters %> - <% loop Children %> + <% loop $FieldMap.Filters %> + <% loop $Children %> $FieldHolder <% end_loop %> <% end_loop %>
- +
- <% if FieldMap.action_updatereport %> + <% if $FieldMap.action_updatereport %> $FieldMap.action_updatereport.Field <% end_if %>
- +
 
<% end_if %> - + $FieldMap.ReportContent.FieldHolder - - <% loop HiddenFields %>$Field<% end_loop %> - + + <% loop $HiddenFields %>$Field<% end_loop %> +
- - + +
\ No newline at end of file