97 lines
No EOL
3.8 KiB
PHP
97 lines
No EOL
3.8 KiB
PHP
@extends('translation::layout')
|
|
|
|
@section('body')
|
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
{{ __('translation::translation.translations') }} {{ $model }}
|
|
</h5>
|
|
|
|
<div class="card-body p-0">
|
|
|
|
{!! Form::open(['url' => route('admin_translate', ['model'=>$model]), 'class' => 'form-horizontal', 'method'=>'get']) !!}
|
|
|
|
<div class="form-row align-items-center pb-0 px-4 pt-1">
|
|
<div class="col-12">
|
|
<p><em>Hinweis: Platzhalter in den Inhalte die mit einem Doppelkunkt beginnen (wie :date :num :attribute etc), oder Platzhalter wie $0 oder {0} müssen erhalten bleiben und werden bei der Ausgabe dynamisch durch entsprechende Werte ersetzt.
|
|
<br>Tags wie <b> <strong> <br> etc. formatieren den Text und sollten genau so in den Übersetzungen übernommen werden. </em></p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-row align-items-center px-4 pb-2 pt-1">
|
|
|
|
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
|
@include('translation::forms.select', ['name' => 'key', 'items' => $keys, 'submit' => true, 'selected' => Request::get('key'), 'optional' => false])
|
|
</div>
|
|
<div class="col-6 col-sm-4 col-md-2 col-lg-2 mb-1">
|
|
@include('translation::forms.select', ['name' => 'language', 'items' => $languages, 'submit' => true, 'selected' => $select_language])
|
|
</div>
|
|
{{-- <div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
|
@include('translation::forms.search', ['name' => 'filter', 'value' => Request::get('filter')])
|
|
</div>
|
|
--}}
|
|
|
|
</div>
|
|
{!! Form::close() !!}
|
|
<style>
|
|
|
|
</style>
|
|
<div class="card-datatable table-responsive pt-0">
|
|
<table class="datatables-style table table-striped table-bordered" id="">
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<th style="width: 40%;">{{ $select_language }}</th>
|
|
<th style="width: 40%;">{{ $source_language }}</th>
|
|
<th style="width: 20%;">Titel</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($translations as $id => $value)
|
|
<tr>
|
|
<td>
|
|
<translation-input
|
|
initial-translation="{{ $value['trans'] }}"
|
|
language="{{ $select_language }}"
|
|
group="{{ $select_key }}"
|
|
translation-key="{{ $id }}"
|
|
route="admin/translate/update/{{ $model }}">
|
|
</translation-input>
|
|
</td>
|
|
<td>{{ $value['source'] }}</td>
|
|
<td><span style="display: inline-block;">{{ $value['master'] }}</span></td>
|
|
</tr>
|
|
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$( document ).ready(function() {
|
|
$("textarea").each(function(){
|
|
this.style.height = "5px";
|
|
this.style.height = (this.scrollHeight) + "px";
|
|
});
|
|
$("textarea").focus(function(){
|
|
this.style.height = "5px";
|
|
this.style.height = (this.scrollHeight) + "px";
|
|
});
|
|
$("textarea").focusout(function(){
|
|
this.style.height = "5px";
|
|
this.style.height = (this.scrollHeight) + "px";
|
|
});
|
|
$("textarea").on('change keyup paste', function() {
|
|
this.style.height = "5px";
|
|
this.style.height = (this.scrollHeight) + "px";
|
|
|
|
});
|
|
});
|
|
</script>
|
|
|
|
|
|
@endsection |