Hola Pascal, estoy intentando insertar un link que me lleve a mi vista Registro.php ubicada en app/view, modificando el archivo logindialog.js en el siguiente punto:
_createLoginForm: function () {
/* Construction of the login form content */
this.element.find('.pui-dialog-title').text(this.labels.title);
var formEntryTag = '<div class="zdk-form-entry"/>';
$('<label>' + this.labels.loginFieldLabel + '</label>').appendTo(this.loginForm);
this.loginField = $('<input name="login_name" maxlength="50" type="text" autocomplete="off" value="" required data-errmess-required="' + this.labels.fieldMandatory + '">').appendTo(this.loginForm);
this.passwordLabel = $('<label>' + this.labels.passwordFieldLabel + '</label>').appendTo(this.loginForm);
this.passwordField = $('<input name="password" maxlength="20" type="password" autocomplete="off" value="" required data-errmess-required="' + this.labels.fieldMandatory + '">').appendTo(this.loginForm);
if (this.labels.selectAccess) {
this.formEntryAccess = $(formEntryTag).appendTo(this.loginForm);
$('<label class="required">' + this.labels.accessLabel + '</label>').appendTo(this.formEntryAccess);
var radioButtonGroup = $('<div class="zdk-radiobuttongroup" data-name="access"/>').appendTo(this.formEntryAccess);
var publicRadioButton = $('<input type="radio" id="public-access" value="public">').appendTo(radioButtonGroup);
radioButtonGroup.append('<label for="public-access">' + this.labels.publicAccessLabel + '</label>');
radioButtonGroup.append('<br>');
var privateRadioButton = $('<input type="radio" id="private-access" value="private">').appendTo(radioButtonGroup);
radioButtonGroup.append('<label for="private-access">' + this.labels.privateAccessLabel + '</label>');
if (this.labels.defaultAccess === 'public') {
publicRadioButton.prop('checked', true);
} else if (this.labels.defaultAccess === 'private') {
privateRadioButton.prop('checked', true);
}
}
this.formEntryNewPassword = $(formEntryTag).appendTo(this.loginForm).hide();
$('<input name="login_password" maxlength="20" type="password" disabled autocomplete="off" data-errmess-required="' + this.labels.fieldMandatory + '">').appendTo(this.formEntryNewPassword);
$('<label>' + this.labels.changePasswordNew + '</label>').prependTo(this.formEntryNewPassword);
this.formEntryConfirmPassword = $(formEntryTag).appendTo(this.loginForm).hide();
$('<input name="login_password2" maxlength="20" type="password" disabled autocomplete="off" data-errmess-required="' + this.labels.fieldMandatory + '">').appendTo(this.formEntryConfirmPassword);
$('<label>' + this.labels.changePasswordConfirm + '</label>').prependTo(this.formEntryConfirmPassword);
this.loginButton = $('<button class="zdk-bt-yes" type="submit">' + this.labels.loginButtonLabel + '</button>').appendTo(this.loginForm);
this.cancelButton = $('<button class="zdk-bt-cancel" type="button">' + this.labels.cancelButtonLabel + '</button>').appendTo(this.loginForm);
this.linkRegister = $('<div><a href="#">Registrarse</a></div>');
this.loginForm.zdkform({controller: 'security', action: 'login', msgsuccess: false});
/* Bind login events */
this._bindLoginEvents();
},
y no logro hacerlo funcionar, es más ni siquiera aparece.