v0.5.7 - Add the last support for english
This commit is contained in:
@@ -7,28 +7,28 @@
|
||||
@section("content")
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
<main>
|
||||
<h1 class="text-center sde-blue mt-0">Konto</h1>
|
||||
<h4 class="mt-0">Navn: {{ Auth::user()->name_first . " " . Auth::user()->name_last }}</h4>
|
||||
<h4 class="mt-0">Email: {{ Auth::user()->email }}</h4>
|
||||
<h4 class="mt-0">Telefon Nr.: {{ Auth::user()->phone }}</h4>
|
||||
<h1 class="text-center sde-blue mt-0">{{__('msg.konto')}}</h1>
|
||||
<h4 class="mt-0">{{__('msg.navn')}}: {{ Auth::user()->name_first . " " . Auth::user()->name_last }}</h4>
|
||||
<h4 class="mt-0">{{__('msg.email')}}: {{ Auth::user()->email }}</h4>
|
||||
<h4 class="mt-0">{{__('msg.telefon')}} Nr.: {{ Auth::user()->phone }}</h4>
|
||||
{!! session()->get('success#credentialschanged') !!}
|
||||
<a class="btn text-center btn-sde-blue mt-1" href="{{ route("users.accountedit") }}">Rediger Oplysninger</a>
|
||||
<a class="btn text-center btn-sde-blue mt-1" href="{{ route("users.accounteditpass") }}">Ændre Password</a>
|
||||
<a class="btn text-center btn-sde-blue mt-1" href="{{ route("users.accountedit") }}">{{__('msg.redigeroplysninger')}}</a>
|
||||
<a class="btn text-center btn-sde-blue mt-1" href="{{ route("users.accounteditpass") }}">{{__('msg.ændrepassword')}}</a>
|
||||
|
||||
<label for="langu">Sprog / Languages:</label>
|
||||
<select name="langName" id="lang">
|
||||
@if(request()->cookie('languagesSetting') == "dk")
|
||||
<option selected name="langDK" value="dk">Dansk</option>
|
||||
@else
|
||||
<option name="langDK" value="dk">Dansk</option>
|
||||
@endif
|
||||
@if(request()->cookie('languagesSetting') == "en")
|
||||
<option selected name="langEN" value="en">English</option>
|
||||
@else
|
||||
<option name="langEN" value="en">English</option>
|
||||
@endif
|
||||
<label for="langu">Sprog / Languages:</label>
|
||||
<select name="langName" id="lang">
|
||||
@if(request()->cookie('languagesSetting') == "dk")
|
||||
<option selected name="langDK" value="dk">Dansk</option>
|
||||
@else
|
||||
<option name="langDK" value="dk">Dansk</option>
|
||||
@endif
|
||||
@if(request()->cookie('languagesSetting') == "en")
|
||||
<option selected name="langEN" value="en">English</option>
|
||||
@else
|
||||
<option name="langEN" value="en">English</option>
|
||||
@endif
|
||||
|
||||
</select>
|
||||
</select>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
@@ -40,7 +40,7 @@
|
||||
url: '{{route('users.setLanguages')}}',
|
||||
data: {'lang':$value},
|
||||
success:function (data) {
|
||||
console.log($value);
|
||||
console.log($value);
|
||||
location.reload();
|
||||
},
|
||||
error:function (data) {
|
||||
@@ -51,6 +51,4 @@
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user