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

                    <div class="form-group">
                        <label><?php echo $view['translator']->trans("Small Icon"); ?></label>
                        <input name="upanh" type="text" id="upanh" style="display: none;" value="">
                        <br>
                        <label id="fileContainer2" class="fileContainer">
                            <input class="uploadImg" data-bind="64-64" type="file" name="images2" id="images2" style="display: none;"/>
                            <?php echo $view['translator']->trans("Upload"); ?>
                        </label>
                        <div style="display: inline;">
                            <img id="small_img" src="" style="display: inline; width: 36px; min-height: 36px; height: 36px; margin-bottom: 0px;">
                            <div id="response2">
                                <h4><?php echo $view['translator']->trans("Size 64x64px"); ?></h4>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label><?php echo $view['translator']->trans("Large Icon"); ?></label>
                        <input name="licon" type="text" id="licon" style="display: none;" value="">
                        <br>
                        <label id="fileContainer3" class="fileContainer">
                            <input class="uploadImg" data-bind="500-200" type="file" name="large_icon" id="large_icon" style="display: none;"/>
                            <?php echo $view['translator']->trans("Upload"); ?>
                        </label>
                        <div style="display: inline;">
                            <img id="large_img" src="" style="display: inline; width: 100px; min-height: 40px; height: 40px; margin-bottom: 0px;">
                            <div id="response3">
                                <h4><?php echo $view['translator']->trans("Size 500x200px"); ?></h4>
                            </div>
                        </div>
                    </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 ($value->getMid() == 0) {
                                        // echo "disabled";
                                    }
                                    ?> value="<?php echo $value->getId(); ?>"><?php echo $value->getTitle(); ?></option>
                                        <?php
                                    }
                                }
                                ?>                            
                        </select>
                    </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>

