?? GreyFile — Mystic File Browser

Current path: home/webdevt/cryptoimpot.fr/module/User/view/user/auth/



?? Go up: /home/webdevt/cryptoimpot.fr/module/User/view/user

?? Viewing: register.phtml

<?php
$this->headTitle('Créer un compte gratuitement');

$this->mainMenu()->setActiveItemId('login');

$form->get('email')->setAttributes([
            'class' => 'form-control',
            'placeholder' => 'Adresse email',
            'required' => true,
            'autofocus' => true
        ])
        ->setLabelAttributes([
            'class' => 'sr-only'
        ]);

$form->get('password')->setAttributes([
            'class' => 'form-control',
            'placeholder' => 'Mot de passe',
            'required' => true,
        ]);
$form->get('password-verify')->setAttributes([
            'class' => 'form-control',
            'placeholder' => 'Confirmer votre mot de passe',
            'required' => true,
        ])
        ->setLabelAttributes([
            'class' => 'sr-only'
        ]);
?>
<div class="container">
    <div class="row justify-content-center align-items-center mt-5 mb-3">
        <div class="col col-sm-12">
            <h2 class="text-center"><?php echo $this->translate('Créer un compte gratuitement'); ?></h2>
        </div>
    </div>

    <?php
//var_dump($form->getMessages());
//var_dump($form->getMessages());

    $messages = $form->getMessages();
//    if ($this->flashMessenger()->setNamespace('register-form')->hasMessages()) : 
    ?>
    



    <div class="row justify-content-center align-items-center h-100">

        <div class="col col-sm-12 col-md-4 col-md-offset-4">
            <?php echo $this->form()->openTag($form) ?>
            <!--Email-->
            <div class="form-group <?php //echo ($this->formElementErrors($email)) ? ' has-error' : ''    ?>">
                <div><?= $this->formElement($form->get('email')); ?><?php //echo $this->formInput($email)   ?></div>
            </div>
            <!--./ Email-->

            <!-- Password -->
            <div class="form-group<?php //echo ($this->formElementErrors($password)) ? ' has-error' : ''    ?>">
                <div><?= $this->formElement($form->get('password')); ?><?php //echo $this->formInput($password)    ?></div>
            </div>
            <!--./ Password -->
            
            <!-- Password -->
            <div class="form-group<?php //echo ($this->formElementErrors($password)) ? ' has-error' : ''    ?>">
                <div><?= $this->formElement($form->get('password-verify')); ?><?php //echo $this->formInput($password)    ?></div>
            </div>
            <!--./ Password -->

            <!-- Csrf -->
            <?php //echo $this->formHidden($csrf)  ?>
            <?= $this->formElement($form->get('redirect_url')); ?>
            <?= $this->formElement($form->get('csrf')) ?>
            <!-- ./ Csrf -->

            <div class="form-group">
                <?php //echo $this->formButton($formButton)  ?>
                <button class="btn btn-lg btn-primary btn-block" type="submit">Créer mon compte gratuitement</button>
            </div>

            <div class="row mt-3">
                <div class="col-lg-12 text-center">
                    <a class="register-link" href="<?php echo $this->url('login') ?>"><?= $this->translate('Déjà un compte ?') ?></a>

                </div>
            </div>


            <?php echo $this->form()->closeTag() ?>





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


??

??