Enable translation of accept-asset page (#8237)

This commit is contained in:
Dampfklon 2020-11-13 00:07:45 +01:00 committed by GitHub
parent 4ef11c463c
commit 1f9b04405c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View file

@ -242,4 +242,9 @@
'login_enabled' => 'Login Enabled',
'audit_due' => 'Due for Audit',
'audit_overdue' => 'Overdue for Audit',
'accept' => 'Accept :asset',
'i_accept' => 'I accept',
'i_decline' => 'I decline',
'sign_tos' => 'Sign below to indicate that you agree to the terms of service:',
'clear_signature' => 'Clear Signature'
];

View file

@ -2,7 +2,7 @@
{{-- Page title --}}
@section('title')
Accept {{ $item->present()->name() }}
{{trans('general.accept', ['asset' => $item->present()->name()])}}
@parent
@stop
@ -42,14 +42,14 @@
<div class="radio">
<label>
<input type="radio" name="asset_acceptance" id="accepted" value="accepted">
I accept
{{trans('general.i_accept')}}
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="asset_acceptance" id="declined" value="declined">
I decline
{{trans('general.i_decline')}}
</label>
</div>
@ -64,7 +64,7 @@
@if ($snipeSettings->require_accept_signature=='1')
<div class="col-md-12 col-sm-12 text-center" style="padding-top: 20px">
<h2>Sign below to indicate that you agree to the terms of service:</h2>
<h2>{{trans('general.sign_tos')}}</h2>
<div id="signature-pad" class="m-signature-pad">
<div class="m-signature-pad--body col-md-12 col-sm-12 col-lg-12 col-xs-12">
@ -72,7 +72,7 @@
<input type="hidden" name="signature_output" id="signature_output">
</div>
<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12 text-center">
<button type="button" class="btn btn-sm btn-primary clear" data-action="clear" id="clear_button">Clear Signature</button>
<button type="button" class="btn btn-sm btn-primary clear" data-action="clear" id="clear_button">{{trans('general.clear_signature')}}</button>
</div>
</div>
</div> <!-- .col-md-12.text-center-->