synoptic.blade.php 2.52 KB
Newer Older
1
@extends('layouts.subPages')
2
3
4
5

@section('title', $title )

@section('content')
Aria Givi's avatar
Aria Givi committed
6
	<h1>{{ trans('languages.header') }}</h1>
7
<?php /*
8
9
10
11
12
	<!--
	<div class="progress">
		<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="{{ round(100 * (($langTexts[$to]+$new) / count($sum))) }}" aria-valuemin="0" aria-valuemax="100" style="width: {{ round(100 * (($langTexts[$to]+$new) / count($sum))) }}%">
			{{ trans('languages.progress', ['uebersetzteTexte'=> ($langTexts[$to]+$new), 'textCount'=>count($sum), 'percentage'=>round(100 * (($langTexts[$to]+$new) / count($sum)))]) }}
		</div>
13
14
15
	</div> 
	--> 
*/?>
16
	<h2>Aktuelle Datei: {{$filename}}</h2>
17
18
19
	<form id="submit" method="POST">
		<input type="hidden" name="filename" value="{{$filename}}" />
	</form>
20
	<p style="display: inline;"> Andere Datei auswählen: </p>
21
	<select name="chosenFile" form="submit" onchange="this.form.submit()" type="submit">
22
23
24
25
	@foreach($otherFiles as $otherFile)
		<option value={{$otherFile}}>{{ $otherFile }}</option>
	@endforeach
	</select>
26
27
28
29
	<table class="table">
		<thead>
			<tr>
				<th>#ID</th>
30
				@foreach($to as $t)
31
32
33
					<th>
						{{$t}}
						@if(in_array($t, $recentlyChangedFiles))
Aria Givi's avatar
Aria Givi committed
34
							<span style="background-color: Khaki;font-weight: normal;"><u><br>{{ trans('languages.synoptic.hinweis') }}</u><br></span>
35
						@endif
36
					</th>
37
				@endforeach				
38
39
			</tr>
		</thead>
Aria Givi's avatar
Aria Givi committed
40
41
42
 <tbody> 
			@foreach($texts as $key => $language)
				<tr> <!--Key -->
43
				<td class="name language-name">{{$key}}</td>
Aria Givi's avatar
Aria Givi committed
44
				@foreach($language as $lang => $languageValue)
45
					@if($languageValue !== "")
46
47
48
						<td>
							<textarea class="language-text-area" rows="1" cols="20" form="submit" name="{{base64_encode($lang."_".$key)}}">{{$languageValue}}</textarea>
						</td>
49
50
					@else
						<td>
51
							<textarea class="language-text-area" rows="1" cols="20" form="submit" name="{{base64_encode("_new_".$lang."_".$key)}}"></textarea>
52
53
						</td>
					@endif
Aria Givi's avatar
Aria Givi committed
54
55
				@endforeach
				</tr>
56
			@endforeach
Aria Givi's avatar
Aria Givi committed
57
58
		</tbody>  

59
	</table>
60
<!--
61
62
63
64
	<p>{{ trans('languages.hinweis.1') }}</p>
	<p>{!! trans('languages.hinweis.2') !!}</p>
	<p>{!! trans('languages.hinweis.3') !!}</p>
	<p>{!! trans('languages.email') !!}</p>
65
-->
66
67
	<button name="download" class="btn btn-success" type="submit" form="submit">Dateien herunterladen</button>
	<button name="nextpage" class="btn btn-success" type="submit" form="submit">Nächste Seite</button>
68
69
70
	<script type="text/javascript" src="{{ elixir('js/lib.js') }}"></script>
	<script type="text/javascript" src="{{ elixir('js/editLanguage.js') }}"></script>
@endsection