Removed unneeded files

This commit is contained in:
Bernd Bestel 2020-08-31 19:03:55 +02:00
parent d220336f44
commit c102b6bd8c
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 0 additions and 47 deletions

View File

@ -1,17 +0,0 @@
$('#locale-save').on('click', function () {
var value = $("input:radio[name ='language']:checked").val();
var jsonData = {'value': value};
Grocy.Api.Put('user/settings/locale', jsonData,
function(result)
{
location.pathname = GetUriParam('returnto');
},
function(xhr)
{
if (!xhr.statusText.isEmpty())
{
Grocy.FrontendHelpers.ShowGenericError('Error while saving, probably this item already exists', xhr.response)
}
}
);
});

View File

@ -1,30 +0,0 @@
@extends('layout.default')
@section('title', $__t('Language'))
@section('activeNav', '')
@section('viewJsName', 'locale')
@section('content')
<div class="row">
<div class="col">
<h2 class="title">@yield('title')</h2>
</div>
</div>
<hr>
<div class="row mt-3">
<div class="col">
<ul>
@foreach($languages as $lang)
<li>
<label>
<input name="language" type="radio" class="change-language" value="{{ $lang }}" @if(GROCY_LOCALE == $lang) checked @endif>
<i class="flag-icon flag-icon-{{$lang}}"></i> <span
class="txt-lang-name">{{ $__t($lang) }}</span>
</label>
</li>
@endforeach
</ul>
<button id="locale-save" class="btn btn-success" type="submit">{{ $__t('Save') }}</button>
</div>
</div>
@endsection