Dotclear


Ignore:
Timestamp:
03/02/18 15:55:06 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use specialized input fields (color, email, url, number, …) where is relevant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/comment.php

    r3703 r3725  
    209209    '<h3>' . __('Comment submitted') . '</h3>' . 
    210210    '<p><label for="comment_author" class="required"><abbr title="' . __('Required field') . '">*</abbr>' . __('Author:') . '</label>' . 
    211     form::field('comment_author', 30, 255, html::escapeHTML($comment_author), '', '', false, 'required placeholder="' . __('Author') . '"') . 
     211    form::field('comment_author', 30, 255, array( 
     212        'default'    => html::escapeHTML($comment_author), 
     213        'extra_html' => 'required placeholder="' . __('Author') . '"' 
     214    )) . 
    212215    '</p>' . 
    213216 
    214217    '<p><label for="comment_email">' . __('Email:') . '</label>' . 
    215     form::field('comment_email', 30, 255, html::escapeHTML($comment_email)) . 
     218    form::email('comment_email', 30, 255, html::escapeHTML($comment_email)) . 
    216219    '<span>' . $comment_mailto . '</span>' . 
    217220    '</p>' . 
    218221 
    219222    '<p><label for="comment_site">' . __('Web site:') . '</label>' . 
    220     form::field('comment_site', 30, 255, html::escapeHTML($comment_site)) . 
     223    form::url('comment_site', 30, 255, html::escapeHTML($comment_site)) . 
    221224    '</p>' . 
    222225 
Note: See TracChangeset for help on using the changeset viewer.

Sites map