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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.moduleslist.php

    r3627 r3639  
    13121312          '<h4>'.__('Upload a zip file').'</h4>'. 
    13131313          '<p class="field"><label for="pkg_file" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Zip file path:').'</label> '. 
    1314           '<input type="file" name="pkg_file" id="pkg_file" /></p>'. 
     1314          '<input type="file" name="pkg_file" id="pkg_file" required /></p>'. 
    13151315          '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
    1316           form::password(array('your_pwd','your_pwd1'),20,255).'</p>'. 
     1316          form::password(array('your_pwd','your_pwd1'),20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 
    13171317          '<p><input type="submit" name="upload_pkg" value="'.__('Upload').'" />'. 
    13181318          $this->core->formNonce().'</p>'. 
     
    13241324          '<h4>'.__('Download a zip file').'</h4>'. 
    13251325          '<p class="field"><label for="pkg_url" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Zip file URL:').'</label> '. 
    1326           form::field(array('pkg_url','pkg_url'),40,255).'</p>'. 
     1326          form::field(array('pkg_url','pkg_url'),40,255,'','','',false,'required placeholder="'.__('URL').'"').'</p>'. 
    13271327          '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label> '. 
    1328           form::password(array('your_pwd','your_pwd2'),20,255).'</p>'. 
     1328          form::password(array('your_pwd','your_pwd2'),20,255,'','','',false,'required placeholder="'.__('Password').'"').'</p>'. 
    13291329          '<p><input type="submit" name="fetch_pkg" value="'.__('Download').'" />'. 
    13301330          $this->core->formNonce().'</p>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map