<?php
$view->extend('MarketZodacoBundle::base_admin.html.php');
?>
<div class="col-lg-12">
    <div class="panel panel-default">
        <div class="panel-heading"><?php echo $view['translator']->trans("Edit Help"); ?></div>
        <div class="panel-body">
            <form role="form" method="POST" action="">
                <fieldset>
                    <div class="form-group">
                        <label><?php echo $view['translator']->trans("Title"); ?></label>
                        <input class="form-control" placeholder="<?php echo $view['translator']->trans("Title"); ?>" id="title" name="title" type="text" autofocus="" required value="<?php echo $viewT->getTitle(); ?>">
                    </div>

                    <div class="form-group">
                        <label><?php echo $view['translator']->trans("Detail"); ?></label>
                        <textarea class="ckeditor" type="text" id="detail" name="detail"><?php echo $viewT->getDetails(); ?></textarea>
                    </div>

                    <div class="form-group">
                        <label><?php echo $view['translator']->trans("Detail"); ?></label>
                        <textarea class="ckeditor" type="text" id="vn_detail" name="vn_detail"><?php echo $viewT->getVnDetails(); ?></textarea>
                    </div>

                    <div class="form-group">
                        <label><?php echo $view['translator']->trans("Categories"); ?></label>
                        <select name="cid" id="cid" class="form-control">
                            <option value="0" selected="selected">---</option> 
                            <?php
                            if (count(@$list) > 0) {
                                foreach ($list as $key => $value) {
                                    ?>
                                    <option <?php
                                        if ($viewT->getCId() == $value->getId()) {
                                            echo "selected='selected'";
                                        }
                                        ?>  value="<?php echo $value->getId(); ?>"><?php echo $value->getTitle(); ?></option>
                                        <?php
                                    }
                                }
                                ?>                            
                        </select>
                    </div>
                    <input type="submit" class="btn btn-success" value="<?php echo $view['translator']->trans("Save"); ?>">
                </fieldset>
            </form>

        </div>
    </div>
</div>

