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
  • plugins/blogroll/index.php

    r3709 r3725  
    208208        echo 
    209209        '<tr class="line" id="l_' . $rs->link_id . '">' . 
    210         '<td class="handle minimal">' . form::field(array('order[' . $rs->link_id . ']'), 2, 5, $position, 'position', '', false, 'title="' . __('position') . '"') . '</td>' . 
     210        '<td class="handle minimal">' . form::field(array('order[' . $rs->link_id . ']'), 2, 5, array( 
     211            'default'    => $position, 
     212            'class'      => 'position', 
     213            'extra_html' => 'title="' . __('position') . '"' 
     214        )) . 
     215        '</td>' . 
    211216        '<td class="minimal">' . form::checkbox(array('remove[]'), $rs->link_id, 
    212217            array( 
     
    263268'<h3>' . __('Add a new link') . '</h3>' . 
    264269'<p class="col"><label for="link_title" class="required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Title:') . '</label> ' . 
    265 form::field('link_title', 30, 255, $link_title, '', '', false, 'required placeholder="' . __('Title') . '"') . 
     270form::field('link_title', 30, 255, array( 
     271    'default'    => $link_title, 
     272    'extra_html' => 'required placeholder="' . __('Title') . '"' 
     273)) . 
    266274'</p>' . 
    267275 
    268276'<p class="col"><label for="link_href" class="required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('URL:') . '</label> ' . 
    269 form::field('link_href', 30, 255, $link_href, '', '', false, 'required placeholder="' . __('URL') . '"') . 
     277form::field('link_href', 30, 255, array( 
     278    'default'    => $link_href, 
     279    'extra_html' => 'required placeholder="' . __('URL') . '"' 
     280)) . 
    270281'</p>' . 
    271282 
     
    288299'<h3>' . __('Add a new category') . '</h3>' . 
    289300'<p><label for="cat_title" class=" classic required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Title:') . '</label> ' . 
    290 form::field('cat_title', 30, 255, $cat_title, '', '', false, 'required placeholder="' . __('Title') . '"') . ' ' . 
     301form::field('cat_title', 30, 255, array( 
     302    'default'    => $cat_title, 
     303    'extra_html' => 'required placeholder="' . __('Title') . '"' 
     304)) . 
     305' ' . 
    291306form::hidden(array('p'), 'blogroll') . 
    292307$core->formNonce() . 
Note: See TracChangeset for help on using the changeset viewer.

Sites map