<?php
$view->extend('MarketZodacoBundle::base.html.php');
?>
<?php $view['slots']->set('title', $view['translator']->trans("Upload your work")." | ".$view['translator']->trans("Zodaco Market")) ?>
<div class="col-sm-12 col-lg-12 main" id="mainContents">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                    <form role="form" method="GET" action="<?php echo $view['router']->generate('upload_form', array(), true); ?>">
                        <div class="panel panel-default">
                            <div class="panel-body">
                                <h2><?php echo $view['translator']->trans("Upload your work"); ?></h2>

                                <div class="form-group">
                                    <label style="padding-right:100px;"><?php echo $view['translator']->trans("Select a category:"); ?></label>      
                                    <select class="form-control" name="category" id="category">
                                        <?php
                                        if ($list) {
                                            foreach ($list as $key => $value) {
                                                ?>
                                                <option value="<?php echo $value->getId(); ?>"><?php echo $value->getTitle(); ?></option>
                                                <?php
                                            }
                                        }
                                        ?>
                                    </select>
                                </div>
                                <button type="submit" class="btn btn-danger"><?php echo $view['translator']->trans("Upload"); ?></button>
                            </div>
                        </div>
                    </form>
            </div>
        </div><!--/.row-->
    </div>
</div>