<?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 and Support 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 value="<?php echo $viewT->getTitle(); ?>">
                    </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 value="<?php echo $viewT->getShortTitle(); ?>">
                    </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 <?php
                                        if ($viewT->getMid() == $value->getId()) {
                                            echo "selected='selected'";
                                        }
                                        ?>  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
                                    if ($viewT->getTotal() == 0) {
                                        echo 'checked';
                                    }
                                    ?>><?php echo $view['translator']->trans("No"); ?>
                            </label>
                        </div>
                        <div class="radio">
                            <label>
                                <input type="radio" name="footer" value="1"  <?php
                                    if ($viewT->getTotal() == 1) {
                                        echo '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
                                    if ($viewT->getActive() == 0) {
                                        echo 'checked';
                                    }
                                    ?>><?php echo $view['translator']->trans("No"); ?>
                            </label>
                        </div>
                        <div class="radio">
                            <label>
                                <input type="radio" name="active" value="1"  <?php
                                    if ($viewT->getActive() == 1) {
                                        echo '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>

                    