<?php
/**
 * Import a group view 
 */
?>

<div class="side-body" id="edit-survey-text-element">
    <h3><?php eT("Import question group"); ?></h3>
    <div class="row">
        <div class="col-lg-12">
            <!-- form -->
            <?php echo CHtml::form(array("admin/questiongroups/sa/import"), 'post', array('id'=>'importgroup', 'name'=>'importgroup', 'class'=>'form30 form-horizontal', 'enctype'=>'multipart/form-data', 'onsubmit'=>'return validatefilename(this,"'.gT('Please select a file to import!','js').'");')); ?>
            
                <!-- Select question group file -->
                <div class="form-group">
                    <label for='the_file' class="col-sm-2 control-label"><?php eT("Select question group file (*.lsg):"); ?></label>
                        <div class="col-sm-3">
                           <input id='the_file' name="the_file" type="file" class="form-control" />
                        </div> 
                </div>
                
                <!-- Convert resource links -->
                <div class="form-group">
                    <label for='translinksfields' class="col-sm-2 control-label"><?php eT("Convert resource links?"); ?></label>
                    <div class="col-sm-10">
                        <input id='translinksfields' name="translinksfields" type="checkbox" checked="checked" />
                    </div>
                </div>
                        
                <input type='submit' class="hidden" value='<?php eT("Import question group"); ?>' />
                <input type='hidden' name='action' value='importgroup' />
                <input type='hidden' name='sid' value='<?php echo $surveyid; ?>' />
            </form>
        </div>
    </div>
</div>