A free open source IT asset/license management system
standardizing naming to use Template
akemidx20bd83232ea8
diff --git a/resources/lang/en/admin/reports/general.php b/resources/lang/en/admin/reports/general.phpindex 37b1ca7b16..938a191a28 100644--- a/resources/lang/en/admin/reports/general.php+++ b/resources/lang/en/admin/reports/general.php@@ -7,10 +7,10 @@ return ['reminder_sent' => 'Reminder sent','acceptance_deleted' => 'Acceptance request deleted','acceptance_request' => 'Acceptance request',- 'saved_reports' => 'Saved Reports',+ 'saved_templates' => 'Saved Templates','save_template' => 'Save Template','apply_template' => 'Apply Template','generate_template' => 'Generate Template','apply_and_generate' => 'Apply and Generate',- 'report_name' => 'Enter Report Name',+ 'template_name' => 'Enter Template Name',];\ No newline at end of filediff --git a/resources/lang/en/admin/reports/message.php b/resources/lang/en/admin/reports/message.phpindex 5c5363ecee..42967dee96 100644--- a/resources/lang/en/admin/reports/message.php+++ b/resources/lang/en/admin/reports/message.php@@ -3,13 +3,13 @@return array('error' => 'You must select at least ONE option.','no_report_permission' => 'Template does not exist or you do not have permission to view it.',- 'about_reports' => 'About Saved Reports',- 'saving_reports_description' => 'Select your options, then enter the name of your report in the box above and click the \'Save Template\' button. Use the dropdown to select a previously saved report.',+ 'about_templates' => 'About Saved Templates',+ 'saving_templates_description' => 'Select your options, then enter the name of your template in the box above and click the \'Save Template\' button. Use the dropdown to select a previously saved template.','create' => [- 'success' => 'Report saved successfully',- 'needs_title' => 'Report title can not be blank.',- 'duplicate' => 'Report title already exists. Please choose a different one.',+ 'success' => 'Template saved successfully',+ 'needs_title' => 'Template title can not be blank.',+ 'duplicate' => 'Template title already exists. Please choose a different one.',],'delete' => [diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.phpindex 9817c3aaf5..20624eb4c9 100644--- a/resources/views/reports/custom.blade.php+++ b/resources/views/reports/custom.blade.php@@ -452,16 +452,16 @@{{ Form::close() }}</div>+ <!-- Saved Reports right column --><div class="col-md-2">@if (! request()->routeIs('report-templates.edit'))<div class="form-group">- <label for="saved_report_select">{{ trans('admin/reports/general.saved_reports') }}</label>+ <label for="saved_report_select">{{ trans('admin/reports/general.saved_templates') }}</label><selectid="saved_report_select"class="form-control select2"- data-placeholder="{{ trans('admin/reports/general.saved_reports') }}"- data-allow-clear="true"- >+ data-placeholder="{{ trans('admin/reports/general.saved_templates') }}"+ data-allow-clear="true"><option></option>@foreach($report_templates as $template)<option value="{{ $template->id }}" @if (request()->route()->parameter('reportId') == $template->id) selected @endif>@@ -478,8 +478,7 @@@csrf<input type="hidden" id="savetemplateform" name="options"><div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">- {{--this means that the name of a loaded report is in the input box. could lead to confusion with update--}}- <label for="name">{{ trans('admin/reports/general.report_name') }}</label>+ <label for="name">{{ trans('admin/reports/general.template_name') }}</label><input class="form-control" placeholder="" name="name" type="text" id="name" value="{{ $reportTemplate->name }}">{!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}</div>@@ -490,10 +489,10 @@</div><div class="box box-success"><div class="box-header with-border">- <h4>{{ trans('admin/reports/message.about_reports') }}</h4>+ <h4>{{ trans('admin/reports/message.about_templates') }}</h4></div><div class="box-body">- <p>{!! trans('admin/reports/message.saving_reports_description') !!}</p>+ <p>{!! trans('admin/reports/message.saving_templates_description') !!}</p></div></div>@endif