mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 13:26:14 +02:00
Removed unneeded files
This commit is contained in:
parent
d220336f44
commit
c102b6bd8c
|
|
@ -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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
@ -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
|
|
||||||
Loading…
Reference in New Issue
Block a user