<?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 Informations Categories"); ?></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("Short Description"); ?></label>
                        <input class="form-control" placeholder="<?php echo $view['translator']->trans("Short Description"); ?>" id="short_title" name="short_title" type="text" required>
                    </div>

                    <div class="form-group">
                        <label><?php echo $view['translator']->trans("Parent 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>

                    <div class="form-group">
                        <label><?php echo $view['translator']->trans("Show Footer ?"); ?></label>
                        <div class="radio">
                            <label>
                                <input type="radio" name="footer" value="0"><?php echo $view['translator']->trans("No"); ?>
                            </label>
                        </div>
                        <div class="radio">
                            <label>
                                <input type="radio" name="footer" value="1" checked><?php echo $view['translator']->trans("Yes"); ?>
                            </label>
                        </div>
                    </div>

                    <div class="form-group">
                        <label><?php echo $view['translator']->trans("Active"); ?></label>
                        <div class="radio">
                            <label>
                                <input type="radio" name="active" value="0"><?php echo $view['translator']->trans("No"); ?>
                            </label>
                        </div>
                        <div class="radio">
                            <label>
                                <input type="radio" name="active" value="1" checked><?php echo $view['translator']->trans("Yes"); ?>
                            </label>
                        </div>
                    </div>
                    <input type="submit" class="btn btn-success" value="<?php echo $view['translator']->trans("Submit"); ?>">
                </fieldset>
            </form>

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

