<?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("New 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>
                    </div>

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

