Dotclear

Changeset 3101:f4808e0ec70d for admin


Ignore:
Timestamp:
09/27/15 13:42:58 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Switch with a button click is easier than select in combo and click on the OK button, isn't it?

Location:
admin
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r3100 r3101  
    6565     __('By dates, in ascending order') => 'date-asc', 
    6666     __('By dates, in descending order') => 'date-desc' 
    67      ); 
    68  
    69 # Display mode combo 
    70 $mode_combo = array( 
    71      __('Grid') => 'grid', 
    72      __('List') => 'list' 
    7367     ); 
    7468 
     
    484478     '</form>'. 
    485479     '<form action="'.$core->adminurl->get("admin.media").'" method="get" id="filters-form">'. 
    486      '<p class="three-boxes"><label for="file_mode" class="classic">'.__('Display mode:').'</label> '. 
    487      form::combo('file_mode',$mode_combo,$file_mode).'</p>'. 
     480     '<span class="media-file-mode">'. 
     481     '<a href="'.$core->adminurl->get("admin.media",array_merge($page_url_params,array('file_mode' => 'grid'))).'" title="'.__('Grid display mode').'">'. 
     482     '<img src="images/grid-'.($file_mode == 'grid' ? 'on' : 'off').'.png" alt="'.__('Grid display mode').'" />'. 
     483     '</a>'. 
     484     '<a href="'.$core->adminurl->get("admin.media",array_merge($page_url_params,array('file_mode' => 'list'))).'" title="'.__('List display mode').'">'. 
     485     '<img src="images/list-'.($file_mode == 'list' ? 'on' : 'off').'.png" alt="'.__('List display mode').'" />'. 
     486     '</a>'. 
     487     '</span>'. 
    488488     '<p class="three-boxes"><label for="file_sort" class="classic">'.__('Sort files:').'</label> '. 
    489489     form::combo('file_sort',$sort_combo,$file_sort).'</p>'. 
  • admin/style/default.css

    r3100 r3101  
    18451845     } 
    18461846/* ------------------------------------------------------------------ media.php */ 
     1847span.media-file-mode { 
     1848     margin-right: 1em; 
     1849} 
     1850.media-file-mode a { 
     1851     border-bottom: none; 
     1852} 
     1853.media-file-mode img { 
     1854     margin-right: 1em; 
     1855} 
    18471856.media-item { 
    18481857     position: relative; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map