This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

reynierpm
reynierpm

Hi there, I'm working on a theme and I'm overwriting some views from User plugin, right now only register.htm and signin.htm and I copied to my theme partials folder the default.htm too. This is the code in register.htm:

<div class="col-md-8">
    <div class="w-section inverse">                       
        <div class="w-box sign-in-wr bg-5">
            <div class="form-header">
                <h2>Crear una nueva cuenta</h2>
            </div>
            <div class="form-body">
                <form class="form-light padding-15" data-request="onRegister">                                
                    <div class="form-group">
                        <label for="registerName">Nombre completo</label>
                        <input name="name" type="text" class="form-control" id="registerEmail" placeholder="Escriba su nombre completo">
                    </div>
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="registerEmail">Correo</label>
                                <input name="email" type="email" class="form-control" id="registerEmail" placeholder="Escriba su correo electrónico">
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="registerPassword">Contraseña</label>
                                <input name="password" type="password" class="form-control" id="registerPassword" placeholder="Escriba su contraseña">
                            </div>
                        </div>
                    </div>      
                    <div class="row">
                        <div class="col-md-12">
                            <button class="btn btn-three pull-right" type="submit">Registrarme</button>                        
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

And this is the code in signin.htm:

<div class="col-md-4">
    <div class="w-section inverse">                       
        <div class="w-box sign-in-wr bg-5">
            <div class="form-header">
                <h2>Inicie sesión en su cuenta</h2>
            </div>
            <div class="form-body">
                <form role="form" class="form-light padding-15" data-request="onSignin">
                    <div class="form-group">
                        <label for="userSigninEmail">Correo</label>
                        <input name="email" type="email" class="form-control" id="userSigninEmail" placeholder="Escriba su correo electrónico">
                    </div>
                    <div class="form-group">
                        <label for="userSigninPassword">Contraseña</label>
                        <input name="password" type="password" class="form-control" id="userSigninPassword" placeholder="Escriba su contraseña">
                    </div>

                    <div class="row">
                        <div class="col-md-12">
                            <button type="submit" class="btn btn-two pull-right">Entrar</button>                      
                        </div>
                    </div>
                </form>
            </div>
            <div class="form-footer">
                <p>Perdiste tu contraseña? <a href="{{ '/forgot-password'|app }}">Has clic para recuperarla.</a></p>
            </div>
        </div>
    </div>
</div>

is practically the same code with some changes in the HTML markup. Any time I try to send the login or register form none works and I got the parameters on the URL as for example: http://alomicuba.dev/account?email=test%40gmail.com&password=1qazxsw2, what I'm doing wrong? Did I miss something?

alxy
alxy

To overwrite the the register.htm partial you need to create /partials/account/register.htm in your themes folder.

reynierpm
reynierpm

Hi @alxy, it's created on that route on my theme folder I can't find why is not working :-(

alxy
alxy

Doubble check your folder structure or paste an image here . it SHOULD work like this.

reynierpm
reynierpm

Ummmm I checked once more time and it's fine, see the image as you asked:

Theme

Last updated

reynierpm
reynierpm

ummm apologies the problem was a javascript that was not being loaded and was giving errors down there, it's working now

vikas.softadroit17582
vikas.softadroit17582

reynierpm said:

Ummmm I checked once more time and it's fine, see the image as you asked:

Theme

1-7 of 7

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.