Skip to content

Commit

Permalink
some minor tweaks for #477 [1] -- textarea as input is not supported …
Browse files Browse the repository at this point in the history
…- work in progress
  • Loading branch information
Hans-Jörg Bibiko committed Mar 22, 2018
1 parent dca1c94 commit fadd987
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions site/admin/translation/showTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function showTable($tdata, $showKeep = false){
//Encoding tooltip contents:
$desc = preg_replace("/'/",'"',$desc);
$desc = htmlspecialchars($desc);
echo "<td class='description'$isAdmin' data-req='$req' data-html='true' data-container='body' data-title='$desc'>$short</td>";
echo "<td class='description'$isAdmin' data-req='$req' data-html='true' data-container='body' data-title='$desc' style='max-width:10% !important'>$short</td>";
//Title in case of search:
$title = '';
if(array_key_exists('Match', $value)){
Expand All @@ -43,7 +43,7 @@ function showTable($tdata, $showKeep = false){
$stud = $value['Study'];
$orig = "$stud:<code>$orig</code>";
}else{$orig = "<code>$orig</code>";}
echo '<td class="original"'.$title.'>'.$orig
echo '<td class="original"'.$title.' style="width:30% !important">'.$orig
. '<a class="btn pull-right copy-over">'
. '<i class="icon-arrow-right"></i></a></td>';
//Translation:
Expand All @@ -52,8 +52,8 @@ function showTable($tdata, $showKeep = false){
$tId = $trans['TranslationId'];
$pay = $trans['Payload'];
$trans = $trans['Translation'];
echo "<td data-tId='$tId' data-provider='$prov' data-payload='$pay'>"
. "<input type='text' value='$trans' class='translation'>"
echo "<td data-tId='$tId' data-provider='$prov' data-payload='$pay' style='width:80% !important'>"
. "<input type='text' value='$trans' style='width:80% !important' class='translation'>"
. '<a class="btn save"><i class="icon-hdd"></i>Save</a>'
. $showKeep . '</td>';
//Handling the exit condition:
Expand Down

0 comments on commit fadd987

Please sign in to comment.