Dotclear


Ignore:
Timestamp:
12/29/17 14:17:26 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add required attribute for mandatory fields

Location:
admin/install
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/install/index.php

    r3599 r3639  
    346346     '<fieldset><legend>'.__('Username and password').'</legend>'. 
    347347     '<p><label for="u_login" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').' '. 
    348      form::field('u_login',30,32,html::escapeHTML($u_login)).'</label></p>'. 
     348     form::field('u_login',30,32,html::escapeHTML($u_login),'','',false,'required placeholder="'.__('Username').'"').'</label></p>'. 
    349349     '<div class="pw-table">'. 
    350350          '<p class="pw-cell">'. 
    351351               '<label for="u_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('New password:').'</label>'. 
    352                form::password('u_pwd',30,255,'','','',false,' data-indicator="pwindicator" '). 
     352               form::password('u_pwd',30,255,'','','',false,' data-indicator="pwindicator" required placeholder="'.__('Password').'"'). 
    353353          '</p>'. 
    354354          '<div id="pwindicator">'. 
     
    358358     '</div>'. 
    359359     '<p><label for="u_pwd2" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Confirm password:').' '. 
    360      form::password('u_pwd2',30,255).'</label></p>'. 
     360     form::password('u_pwd2',30,255,'','','',false,'required placeholder="'.__('Password').'"').'</label></p>'. 
    361361     '</fieldset>'. 
    362362 
  • admin/install/wizard.php

    r3565 r3639  
    201201'<form action="wizard.php" method="post">'. 
    202202'<p><label class="required" for="DBDRIVER"><abbr title="'.__('Required field').'">*</abbr> '.__('Database type:').'</label> '. 
    203     form::combo('DBDRIVER',array(__('MySQL (deprecated)')=>'mysql',__('MySQLi')=>'mysqli',__('MySQLi (full UTF-8)')=>'mysqlimb4',__('PostgreSQL')=>'pgsql',__('SQLite')=>'sqlite'),$DBDRIVER).'</p>'. 
     203    form::combo('DBDRIVER',array( 
     204     __('MySQL (deprecated)') => 'mysql', 
     205     __('MySQLi')                  => 'mysqli', 
     206     __('MySQLi (full UTF-8)')     => 'mysqlimb4', 
     207     __('PostgreSQL')              => 'pgsql', 
     208     __('SQLite')                  => 'sqlite'), 
     209     $DBDRIVER,'','',false,'required placeholder="'.__('Driver').'"').'</p>'. 
    204210'<p><label for="DBHOST">'.__('Database Host Name:').'</label> '. 
    205211form::field('DBHOST',30,255,html::escapeHTML($DBHOST)).'</p>'. 
     
    211217form::password('DBPASSWORD',30,255).'</p>'. 
    212218'<p><label for="DBPREFIX" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Database Tables Prefix:').'</label> '. 
    213 form::field('DBPREFIX',30,255,html::escapeHTML($DBPREFIX)).'</p>'. 
     219form::field('DBPREFIX',30,255,html::escapeHTML($DBPREFIX),'','',false,'required placeholder="'.__('Prefix').'"').'</p>'. 
    214220'<p><label for="ADMINMAILFROM">'.__('Master Email: (used as sender for password recovery)').'</label> '. 
    215221form::field('ADMINMAILFROM',30,255,html::escapeHTML($ADMINMAILFROM)).'</p>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map