Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-7244

Missing accessibility label on login block input forms

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.3
    • Fix Version/s: 1.8
    • Component/s: Accessibility
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_16_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE

      Description

      Missing label on Login form input fields, I suggest to change rows 54-58 of blocks/login/block_login.php into the following:

      $this->content->text .= '<tr><td class="c0 r0" align="right"><label for=username accesskey=u>'.get_string('username').'</label>:</td>';
      $this->content->text .= '<td class="c1 r0"><input type="text" id="username" name="username" size="10" value="'.$username.'" /></td></tr>';

      $this->content->text .= '<tr><td class="c0 r1" align="right"><label for=password accesskey=p>'.get_string('password').'</label>:</td>';
      $this->content->text .= '<td class="c1 r1"><input type="password" id="password" name="password" size="10" value="" /></td></tr>';

      (accesskey attributes can be skipped).
      This preserves localization and theme.

        Attachments

          Activity

            People

            Assignee:
            nfreear Nick Freear
            Reporter:
            michele.albrigo Michele Albrigo
            Tester:
            Nobody
            Participants:
            Component watchers:
            Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              31/Mar/07