wefra/themes/default/views/list-translations.php

42 lines
2.1 KiB
PHP

<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="panel panel-info">
<h4 class="text-center box-title">List Translations</h4>
<div class="panel-body">
<!-- displays columns titles -->
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-2"><?php echo $oTrans->getTranslation('webpage_listTranslations_codeTitle', $_SESSION['user']['lang_code']); ?></div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-5"><?php echo $oTrans->getTranslation('webpage_listTranslations_sourceTitle', $_SESSION['user']['lang_code']); ?></div>
<div class="col-xs-6 col-sm-6 col-md-6 col-lg-5"><?php echo $_SESSION['user']['lang_code']; ?></div>
</div>
<!-- displays translations -->
<?php foreach($translations as $translation){ ?>
<div class="col-lg-12 padding-2" style="border-top: 1px solid gray;">
<!-- displays code and action -->
<div class="col-lg-12 col-lg-2">
<a class="workflow_button" href="<?php echo $oConf->getURLRoot($buttonsTranslation."-".$translation['id']); ?>">
<?php echo $oTrans->getTranslation('webpage_listTranslations_translateButtons', $_SESSION['user']['lang_code']); ?>
</a>
<span style="font-weight:bold;"><?php echo $translation['code']; ?></span>
</div>
<!-- displays source -->
<div class="col-xs-6 col-lg-5">
<?php echo substr($translation['source'], 0, 60); ?>
</div>
<!-- displays language translated -->
<div class="col-xs-6 col-lg-5">
<?php echo substr($translation[$_SESSION['user']['lang_code']], 0, 60); ?>
</div>
</div> <!--ENDOF row -->
<?php } ?> <!--ENDOF displays translations -->
</div> <!--ENDOF panel-body -->
</div> <!--ENDOF panel -->
</div> <!--ENDOF <div class="col-*-12"> -->
</div> <!--ENDOF <div class="row"> -->
</div> <!--ENDOF <div class="container"> -->