mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-20 19:05:55 -08:00
messages/translations
This commit is contained in:
parent
f2d34b2c03
commit
27103124bf
|
@ -30,7 +30,7 @@ class ReportTemplatesController extends Controller
|
||||||
|
|
||||||
if (!$reportTemplate) {
|
if (!$reportTemplate) {
|
||||||
return redirect()->route('reports/custom')
|
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();
|
$customfields = CustomField::get();
|
||||||
|
|
|
@ -12,4 +12,5 @@ return [
|
||||||
'apply_template' => 'Apply Template',
|
'apply_template' => 'Apply Template',
|
||||||
'generate_template' => 'Generate Template',
|
'generate_template' => 'Generate Template',
|
||||||
'apply_and_generate' => 'Apply and Generate',
|
'apply_and_generate' => 'Apply and Generate',
|
||||||
|
'report_name' => 'Report Name',
|
||||||
];
|
];
|
|
@ -10,4 +10,6 @@ return array(
|
||||||
],
|
],
|
||||||
|
|
||||||
'delete' => 'Are you sure you want to delete this report?',
|
'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.',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
|
@ -477,7 +477,7 @@
|
||||||
<input type="hidden" id="savetemplateform" name="options">
|
<input type="hidden" id="savetemplateform" name="options">
|
||||||
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}">
|
<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--}}
|
{{--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 }}">
|
<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>') !!}
|
{!! $errors->first('name', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue