<?php
$view->extend('MarketZodacoBundle::base.html.php');
?>
<?php $view['slots']->set('title', $view['translator']->trans("Create an Account") . " | " . $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 no-padding">
                <div class="col-lg-5 centerDiv">
                    <?php if ($check || $checkName || $error) { ?>
                        <div class="alert bg-danger" role="alert">
                            <ul>
                                <?php if ($check) { ?>
                                    <li><?php echo $view['translator']->trans("The e-mail you have entered is already taken."); ?></li>
                                <?php } ?>   
                                <?php if ($checkName) { ?>
                                    <li><?php echo $view['translator']->trans("The username already exists. Please input another."); ?></li>
                                <?php } ?>
                                <?php if ($error) { ?>
                                    <li><?php echo $view['translator']->trans("Error! Please try again."); ?></li>
                                <?php } ?>
                            </ul>
                        </div>
                    <?php } ?>
                    <div class="panel panel-default">
                        <div class="panel-body">
                            <form role="form" method="POST" action="">
                                <fieldset>
                                    <div class="form-group">
                                        <center><h3><i class="fa fa-user"></i> <?php echo $view['translator']->trans("Create an account"); ?></h3>
                                            <a href="<?php echo $view['router']->generate('login', array(), true); ?>"><span><?php echo $view['translator']->trans("Already have an account?"); ?></span></a><br>
                                        </center>
                                    </div>
                                    <div class="form-group">
                                        <input class="form-control" placeholder="<?php echo $view['translator']->trans("First Name"); ?>" id="first_name" name="first_name" type="text" autofocus="" required>
                                    </div>
                                    <div class="form-group">
                                        <input class="form-control" placeholder="<?php echo $view['translator']->trans("Last Name"); ?>" id="last_name" name="last_name" type="text" required>
                                    </div>
                                    <div class="form-group">
                                        <input class="form-control" placeholder="<?php echo $view['translator']->trans("UserName"); ?>" id="user_name" name="user_name" type="text" required>
                                    </div>
                                    <div class="form-group">
                                        <input class="form-control" placeholder="<?php echo $view['translator']->trans("Email"); ?>" id="email" name="email" type="email" required>
                                    </div>
                                    <div class="form-group">
                                        <input class="form-control" placeholder="<?php echo $view['translator']->trans("Password"); ?>" id="password" name="password" type="password" required>
                                    </div>
                                    <?php //echo $view['translator']->trans("By signing up to Market Place you confirm that you agree with the member terms and conditions"); ?>
                                    <button type="submit" class="btn btn-success" style="width: 100%;height: 60px;font-size: 18px;"><?php echo $view['translator']->trans("Create my account"); ?></button>
                                </fieldset>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div><!--/.row-->
    </div>
</div>