diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.php index 20624eb4c9..92f831372a 100644 --- a/resources/views/reports/custom.blade.php +++ b/resources/views/reports/custom.blade.php @@ -14,206 +14,206 @@ @section('content')
-
+
- {{ Form::open([ - 'method' => 'post', - 'class' => 'form-horizontal', - 'id' => 'custom-report-form', - 'url' => request()->routeIs('report-templates.edit') ? route('report-templates.update', $reportTemplate) : '/reports/custom', - ]) }} + {{ Form::open([ + 'method' => 'post', + 'class' => 'form-horizontal', + 'id' => 'custom-report-form', + 'url' => request()->routeIs('report-templates.edit') ? route('report-templates.update', $reportTemplate) : '/reports/custom', + ]) }} {{csrf_field()}} -
-
-

- @if (request()->routeIs('report-templates.edit')) - Updating: {{ $reportTemplate->name }} - @elseif(request()->routeIs('report-templates.show')) - Saved Template: {{ $reportTemplate->name }} - @else - {{ trans('general.customize_report') }} +
+
+

+ @if (request()->routeIs('report-templates.edit')) + Updating: {{ $reportTemplate->name }} + @elseif(request()->routeIs('report-templates.show')) + Saved Template: {{ $reportTemplate->name }} + @else + {{ trans('general.customize_report') }} + @endif +

+ @if (request()->routeIs('report-templates.show')) +
+ + + {{ trans('general.update') }} + + +
@endif -

- @if (request()->routeIs('report-templates.show')) -
- - - {{ trans('general.update') }} - - -
- @endif
- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -435,22 +435,22 @@
- -
+ +
{{ Form::close() }} -
+
@@ -488,12 +488,12 @@
-
-

{{ trans('admin/reports/message.about_templates') }}

-
-
-

{!! trans('admin/reports/message.saving_templates_description') !!}

-
+
+

{{ trans('admin/reports/message.about_templates') }}

+
+
+

{!! trans('admin/reports/message.saving_templates_description') !!}

+
@endif @@ -537,7 +537,7 @@ }); $("#checkAll").change(function () { - $("input:checkbox").prop('checked', $(this).prop("checked")); + $("input:checkbox").prop('checked', $(this).prop("checked")); }); $("#savetemplateform").submit(function(e) { @@ -554,12 +554,12 @@ }); $('#saved_report_select') - .on('select2:select', function (event) { - window.location.href = '/reports/templates/' + event.params.data.id; - }) - .on('select2:clearing', function (event) { - window.location.href = '{{ route('reports/custom') }}'; - }); + .on('select2:select', function (event) { + window.location.href = '/reports/templates/' + event.params.data.id; + }) + .on('select2:clearing', function (event) { + window.location.href = '{{ route('reports/custom') }}'; + }); $('#dataConfirmModal').on('show.bs.modal', function (event) { var content = $(event.relatedTarget).data('content'); diff --git a/tests/Unit/ReportTemplateTest.php b/tests/Unit/ReportTemplateTest.php index d76f89fd5a..ff36175382 100644 --- a/tests/Unit/ReportTemplateTest.php +++ b/tests/Unit/ReportTemplateTest.php @@ -99,7 +99,6 @@ class ReportTemplateTest extends TestCase $this->assertEquals(['2', '3', '4'], $template->selectValues('an_array')); $this->assertEquals([], $template->selectValues('an_empty_array')); - // @todo: should this actually be []? $this->assertEquals([null], $template->selectValues('an_array_containing_null')); $this->assertEquals([], $template->selectValues('non_existent_key')); }