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

@section('title', $title )

@section('content')
6
7
	<h1>Übersicht</h1>
<?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
16
	</div> 
	--> 
*/?>
	<h2>{{$filename}}</h2>
17
18
19
20
21
22
23
	<form id="submit" method="POST">
		<input type="hidden" name="filename" value="{{$filename}}" />
	</form>
	<table class="table">
		<thead>
			<tr>
				<th>#ID</th>
24
25
26
				@foreach($to as $t)
					<th>{{$t}}</th>
				@endforeach				
27
28
			</tr>
		</thead>
Aria Givi's avatar
Aria Givi committed
29
30
31
32
33
34
35
36
37
38
 <tbody> 
			@foreach($texts as $key => $language)
				<tr> <!--Key -->
				<td class="name language-name">{{preg_replace("/(\s*).*#(.*)$/si", "$1$2", $key)}}</td>
				@foreach($language as $lang => $languageValue)
					<td>
						<textarea class="language-text-area" rows="1" cols="50" form="submit" name="{{base64_encode("_new_" . $key)}}">{{ $languageValue }} </textarea>
					</td>
				@endforeach
				</tr>
39
			@endforeach
Aria Givi's avatar
Aria Givi committed
40
41
		</tbody>  

42
43
44
45
46
47
48
49
50
51
52
	</table>
	<!--
	<p>{{ trans('languages.hinweis.1') }}</p>
	<p>{!! trans('languages.hinweis.2') !!}</p>
	<p>{!! trans('languages.hinweis.3') !!}</p>
	<p>{!! trans('languages.email') !!}</p>
	-->
	<button class="btn btn-success" type="submit" form="submit">Daten übermitteln</button>
	<script type="text/javascript" src="{{ elixir('js/lib.js') }}"></script>
	<script type="text/javascript" src="{{ elixir('js/editLanguage.js') }}"></script>
@endsection