17 Nov - Static Sites to laravel
This commit is contained in:
parent
610aa1e202
commit
5ff57a21a7
3661 changed files with 569001 additions and 771 deletions
|
|
@ -4,11 +4,11 @@
|
|||
<!-- row -->
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-3 col-xl-2">
|
||||
<!-- <div class="col-lg-3 col-xl-2">
|
||||
|
||||
<div>
|
||||
@foreach($files as $k => $fl)
|
||||
<a href="{{ url('/admin/translate/edit/'.$k) }}" class="media align-items-center bg-lighter text-dark py-1 px-1 @if($k == $language) active @endif">
|
||||
<a href="{{ url('/admin/translate/all/edit/'.$k) }}" class="media align-items-center bg-lighter text-dark py-1 px-1 @if($k == $language) active @endif">
|
||||
<div class=" text-center text-xlarge"><img src="{{asset('images/'.$k.'.png')}}" alt="" height="20"></div>
|
||||
<div class="media-body ml-3">
|
||||
{{ $k }}
|
||||
|
|
@ -19,6 +19,7 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
-->
|
||||
|
||||
<div class="col">
|
||||
<div class="white-box p-0 min-height-500">
|
||||
|
|
@ -28,7 +29,7 @@
|
|||
|
||||
@if($translations)
|
||||
|
||||
{!! Form::open([ 'url' => route('admin_translate_update', [$language, $from]), 'method' => 'post', 'class' => 'form-horizontal' ]) !!}
|
||||
{!! Form::open([ 'url' => route('admin_translate_all_update', [$language, $from]), 'method' => 'post', 'class' => 'form-horizontal' ]) !!}
|
||||
|
||||
<!-- /.left-aside-column-->
|
||||
<div class="right-aside">
|
||||
|
|
@ -39,14 +40,15 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="float-right">
|
||||
<!-- <div class="float-right">
|
||||
Translation from
|
||||
<select class="selectpicker" onchange="if (this.value) window.location.href=this.value" >
|
||||
@foreach($files as $k => $fl)
|
||||
<option value="{{ url('/admin/translate/edit/'.$language.'/'.$k) }}" @if($k == $from) selected @endif>{{ $k }}</option>
|
||||
<option value="{{ url('/admin/translate/all/edit/'.$language.'/'.$k) }}" @if($k == $from) selected @endif>{{ $k }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
-->
|
||||
<div class="">
|
||||
<br>
|
||||
<button type="submit" class="btn btn-primary">
|
||||
|
|
@ -67,7 +69,7 @@
|
|||
<tr>
|
||||
<th width="30%">Source</th>
|
||||
|
||||
<th width="70%">Translation {{ $language }}
|
||||
<th width="70%">Inhalt {{ $language }}
|
||||
|
||||
|
||||
|
||||
|
|
@ -106,13 +108,11 @@
|
|||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
Save
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@endif
|
||||
|
|
|
|||
131
resources/views/translation/index_file.blade.php
Normal file
131
resources/views/translation/index_file.blade.php
Normal file
|
|
@ -0,0 +1,131 @@
|
|||
@extends('layouts.layout-2')
|
||||
@section('content')
|
||||
|
||||
|
||||
<style type="text/css">
|
||||
.form-control.has-error {
|
||||
border: 1px solid #ea8e49;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-lg-3 col-xl-2">
|
||||
|
||||
<div>
|
||||
@foreach($files as $fl)
|
||||
|
||||
<?php
|
||||
$ae = substr($fl, 0, strrpos($fl,' ('));
|
||||
?>
|
||||
|
||||
<a href="{{ url('/admin/translation/file/'.substr($fl, 0, strrpos($fl,' (')).'/'.$language.'/'.$langsource.'/'.$show) }}" class="media align-items-center bg-lighter text-dark py-1 px-1 @if($ae === $edit) active @endif">
|
||||
<div class="media-body ml-3">
|
||||
{{ $fl }}
|
||||
</div>
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="white-box p-0 min-height-500">
|
||||
<!-- .left-right-aside-column-->
|
||||
<div class="page-aside">
|
||||
<!-- .left-aside-column-->
|
||||
|
||||
@if($translations)
|
||||
|
||||
{!! Form::open([ 'url' => route('admin_translate_file_update', [$file, $language, $langsource, $show]), 'method' => 'post', 'class' => 'form-horizontal' ]) !!}
|
||||
|
||||
<!-- /.left-aside-column-->
|
||||
<div class="right-aside">
|
||||
|
||||
|
||||
<div class="clearfix"></div>
|
||||
<div class="scrollable">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<!-- <div class="float-right">
|
||||
Translation from
|
||||
<select class="selectpicker" onchange="if (this.value) window.location.href=this.value" >
|
||||
@foreach($langs as $source)
|
||||
<option value="{{ url('/admin/translation/file/'.$file.'/'.$language.'/'.$source.'/'.$show) }}" @if($source == $langsource) selected @endif>{{ $source }}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="float-right">
|
||||
Translation
|
||||
<select class="selectpicker" onchange="if (this.value) window.location.href=this.value" >
|
||||
@foreach($langs as $lang)
|
||||
<option value="{{ url('/admin/translation/file/'.$file.'/'.$lang.'/'.$langsource.'/'.$show) }}" @if($language == $lang) selected @endif>{{ $lang }}</option>
|
||||
@endforeach
|
||||
|
||||
</select>
|
||||
</div>
|
||||
-->
|
||||
<div class="">
|
||||
<br>
|
||||
<button type="submit" class="btn btn-primary">
|
||||
Save
|
||||
</button>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"><br></div>
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
|
||||
<table class="table table-striped">
|
||||
|
||||
<tbody>
|
||||
@foreach($translations as $key => $value)
|
||||
@include('translation.translation_row', [
|
||||
'key' => $key,
|
||||
'value' => $value,
|
||||
'language'=> $language,
|
||||
'parent' => null,
|
||||
'prefix' => $prefix,
|
||||
'langsource' => $langsource,
|
||||
'show' => $show,
|
||||
])
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-xs-12">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
Save
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@endif
|
||||
|
||||
<!-- .left-aside-column-->
|
||||
</div>
|
||||
<!-- /.left-right-aside-column-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.row -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@endsection
|
||||
|
|
@ -1,12 +1,12 @@
|
|||
@if(is_array($value))
|
||||
<tr>
|
||||
<td @if(is_array($value))colspan="3"@endif>
|
||||
<td @if(is_array($value))colspan="2"@endif>
|
||||
<h4>{{ $key }}</h4>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@foreach($value as $subKey => $subValue)
|
||||
@include('components.translation_row', [
|
||||
@include('translation.translation_row', [
|
||||
'language' => $language,
|
||||
'key' => $subKey,
|
||||
'value' => $subValue,
|
||||
|
|
@ -19,12 +19,12 @@
|
|||
@endforeach
|
||||
@else
|
||||
|
||||
<?php
|
||||
$bool = Lang::has($prefix.'.'.$key, $language, false);
|
||||
<?php
|
||||
$bool = Lang::has($prefix.'.'.$key, $language, false);
|
||||
?>
|
||||
<tr <?php if($show == 'empty' && $bool) echo 'style="display:none"'; ?>>
|
||||
<td>{{ $key }}</td>
|
||||
<td>{!! nl2br(htmlentities($value)) !!}</td>
|
||||
<!--<td>{!! nl2br(htmlentities($value)) !!}</td> -->
|
||||
<td>
|
||||
<?php
|
||||
$old = $key;
|
||||
|
|
@ -37,8 +37,8 @@
|
|||
?>
|
||||
|
||||
<textarea name="{{ $name }}"
|
||||
class="form-control @if(!$bool) has-error @endif"
|
||||
rows="4">{{ old(
|
||||
class="form-control @if(!$bool) has-error @endif"
|
||||
rows="4">{{ old(
|
||||
"{$old}",
|
||||
$bool ? Lang::trans($prefix.'.'.$key, [], $language) : null
|
||||
) }}</textarea>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue