<script type='text/javascript'>
    var duplicatelabelcode='<?php eT('Error: You are trying to use duplicate label codes.','js'); ?>';
    var otherisreserved='<?php eT("Error: 'other' is a reserved keyword.",'js'); ?>';
</script>

<!-- quick add popup -->
<?php $this->renderPartial("./labels/_labelviewquickadd_view", array()); ?>

<div class="col-sm-12 labels">
    <h3 class="pagetitle"><?php eT("Labels") ?></h3>
    <div class="row">

        <!-- Left content -->
        <div class="col-sm-8 content-right text-center">

            <!-- tabs -->
            <ul class="nav nav-tabs">
                <?php  foreach ($lslanguages as $i => $language): ?>
                    <li role="presentation" <?php if($i==0){ echo 'class="active"';}?>>
                        <a data-toggle="tab" href='#neweditlblset<?php echo $i; ?>' >
                            <?php echo getLanguageNameFromCode($language, false); ?>
                        </a>
                    </li>
                <?php endforeach;?>
            </ul>

            <!-- FORM -->
            <?php echo CHtml::form(array("admin/labels/sa/process"), 'post', array('id'=>'mainform')); ?>
                <input type='hidden' name='lid' value='<?php echo $lid ?>' />
                <input type='hidden' name='action' value='modlabelsetanswers' />

                <!-- tab content -->
                <?php $this->renderPartial("./labels/_labelviewtabcontent_view", array('lslanguages'=>$lslanguages, 'results'=>$results, 'action' => $action)); ?>
            </form>
        </div>

        <!-- Right content -->
        <div class="col-sm-4">
            <?php $this->renderPartial("./labels/_labelviewrightcontent_view", array('lid'=>$lid)); ?>
        </div>
    </div>
</div>
