Merge pull request #12 from Godmartinz/remove_jquery

removes jquery and updates translation
This commit is contained in:
Godfrey Martinez 2024-03-27 11:58:11 -07:00 committed by GitHub
commit bcdda551b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 19 deletions

View file

@ -49,7 +49,7 @@ return [
'default_eula_text' => 'Default EULA',
'default_language' => 'Default Language',
'default_eula_help_text' => 'You can also associate custom EULAs to specific asset categories.',
'decline_message' => 'Add details to why you can\'t accept this (Optional)',
'acceptance_note' => 'Add a note for your decision (Optional)',
'display_asset_name' => 'Display Asset Name',
'display_checkout_date' => 'Display Checkout Date',
'display_eol' => 'Display EOL in table view',

View file

@ -67,7 +67,7 @@
<div class="col-md-12">
<br>
<div class="col-md-12" style="display:block;">
<label id="note_label" for="note" style="text-align:center;" >{{trans('admin/settings/general.decline_message')}}</label>
<label id="note_label" for="note" style="text-align:center;" >{{trans('admin/settings/general.acceptance_note')}}</label>
</div>
<div class="col-md-12">
<textarea id="note" name="note" rows="4" cols="50" value="note" style="width:100%" ></textarea>
@ -103,24 +103,7 @@
@section('moar_scripts')
<script nonce="{{ csrf_token() }}">
$(document).ready(function(){
$('#note').hide();
$('#note_label').hide();
$('input[id="declined"]').change(function(){
if($(this).is(':checked')){
$('#note_label').show();
$('#note').show();
}
else {
$('#note_label').hide();
$('#note').hide();
}
});
});
var wrapper = document.getElementById("signature-pad"),
clearButton = wrapper.querySelector("[data-action=clear]"),
saveButton = wrapper.querySelector("[data-action=save]"),