messages/translations

This commit is contained in:
akemidx 2024-01-09 16:49:56 -05:00
parent f2d34b2c03
commit 27103124bf
4 changed files with 5 additions and 2 deletions

View file

@ -30,7 +30,7 @@ class ReportTemplatesController extends Controller
if (!$reportTemplate) {
return redirect()->route('reports/custom')
->with('error', 'Template does not exist or you do not have permission to view it.');
->with('error', 'Template does not exist or you do not have permission to view it.'); //needs translation
}
$customfields = CustomField::get();

View file

@ -12,4 +12,5 @@ return [
'apply_template' => 'Apply Template',
'generate_template' => 'Generate Template',
'apply_and_generate' => 'Apply and Generate',
'report_name' => 'Report Name',
];

View file

@ -10,4 +10,6 @@ return array(
],
'delete' => 'Are you sure you want to delete this report?',
'no_report_permission' => 'Template does not exist or you do not have permission to view it.',
);

View file

@ -477,7 +477,7 @@
<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">Name</label>
<label for="name">{{ trans('admin/reports/general.report_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>