Skip to content
Snippets Groups Projects
Commit e0cbe63d authored by efalcy's avatar efalcy
Browse files

dev #17875 : RGAA comment on login display group legend

parent e7b4b8e7
Branches
Tags
3 merge requests!896Master,!799Dev 17875 rgaa,!785Dev 17875 rgaa
......@@ -16,11 +16,11 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class ZendAfi_Form_Login extends ZendAfi_Form {
protected $_data, $_redirect_url, $_id_notice,$_service;
public function init() {
......@@ -35,20 +35,20 @@ class ZendAfi_Form_Login extends ZendAfi_Form {
'loginlink',
'lostpass',
'register'];
$this->setMethod(Zend_Form::METHOD_POST)
->setAttrib('autocomplete', $this->_data['autocomplete_off'] ? 'off' : 'on')
->setAttrib('class', 'login')
->addElement('text',
'username',
->addElement('text',
'username',
['label' => $this->_data['identifiant'],
'placeholder' => $this->_data['identifiant_exemple'],
'required' => true,
'allowEmpty' => false,
'size' => 15])
->addElement('password',
'password',
->addElement('password',
'password',
['label' => $this->_data['mot_de_passe'],
'placeholder' => $this->_data['mot_de_passe_exemple'],
'required' => true,
......@@ -56,7 +56,7 @@ class ZendAfi_Form_Login extends ZendAfi_Form {
'size' => 15,
'onkeypress' => 'if (event.keyCode == 13) {this.form.submit();return false;}'])
->addElement('submit',
->addElement('submit',
'login',
['label' => $this->_data['lien_connexion'],
'onclick' => '$(this).parents(\'form\').submit()'])
......@@ -84,7 +84,7 @@ class ZendAfi_Form_Login extends ZendAfi_Form {
array_push($group, 'register');
}
if(!$this->_redirect_url==''){
$this->addElement('hidden',
'redirect',
......@@ -108,6 +108,7 @@ class ZendAfi_Form_Login extends ZendAfi_Form {
}
$this->addDisplayGroup($group,'login_form',[]);
// RGAA : $this->addDisplayGroup($group,'login_form',['legend' => 'Login']);
}
public function setData($data){
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment