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/pages/class.listpage.php

    r3707 r3725  
    118118        $cols = array( 
    119119            'position'   => '<td class="nowrap handle minimal">' . 
    120             form::field(array('order[' . $this->rs->post_id . ']'), 2, 3, $count + 1, 'position', '', false, 'title="' . sprintf(__('position of %s'), html::escapeHTML($this->rs->post_title)) . '"') . '</td>', 
     120            form::number(array('order[' . $this->rs->post_id . ']'), array( 
     121                'min'        => 1, 
     122                'default'    => $count + 1, 
     123                'class'      => 'position', 
     124                'extra_html' => 'title="' . sprintf(__('position of %s'), html::escapeHTML($this->rs->post_title)) . '"' 
     125            )) . 
     126            '</td>', 
    121127            'check'      => '<td class="nowrap">' . 
    122128            form::checkbox(array('entries[]'), $this->rs->post_id, 
Note: See TracChangeset for help on using the changeset viewer.

Sites map