Dotclear

Changeset 1547:22dcc292b34d for admin


Ignore:
Timestamp:
08/23/13 16:28:43 (11 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Categories page: work in progress with nikrou

Location:
admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/categories.php

    r1534 r1547  
    172172          ' (<a href="posts.php?cat_id='.$rs->cat_id.'">'. 
    173173          sprintf(($rs->nb_post > 1 ? __('%d entries') : __('%d entry') ),$rs->nb_post).'</a>'. 
    174           ', '.__('total:').' '.$rs->nb_total.')</p>'. 
    175           '<p>'.__('URL:').' '.html::escapeHTML($rs->cat_url).'</p>'; 
     174          ', '.__('total:').' '.$rs->nb_total.') '. 
     175          __('URL:').' <code>'.html::escapeHTML($rs->cat_url).'</code></p>'; 
    176176 
    177177          $level = $rs->level; 
     
    188188           '<div class="two-cols">'. 
    189189           '<p class="col checkboxes-helpers"></p>'. 
    190            '<p class="col right"><label for="mov_cat">'.__('And choose the category which will receive its entries:').'</label> '. 
    191            form::combo('mov_cat',array_merge(array(__('(No cat)') => ''),$categories_combo),'','maximal').'</p> '. 
    192            '<p class="col right"><label for="action" class="classic">'.__('Selected categories action:').'</label> '. 
    193            form::combo('action',$combo_action). 
     190           '<div class="col right">'. 
     191           '<p class="cat-actions"><label for="action" class="classic">'.__('Selected categories action:').'</label> '. 
     192           form::combo('action',$combo_action).' '. 
     193           '<span id="mov-cat"><label for="mov_cat">'.__('Choose the category which will receive its entries:').'</label> '. 
     194           form::combo('mov_cat',array_merge(array(__('(No cat)') => ''),$categories_combo),'','').' </span>'. 
    194195           $core->formNonce(). 
    195            '<input type="submit" value="'.__('ok').'" /></p>'. 
     196           '<input type="submit" value="'.__('OK').'" /></p>'. 
     197           '</div>'. 
    196198           '</div>'. 
    197199           '</form>'; 
     
    202204     '<h3>'.__('Categories order').'</h3>'. 
    203205     '<form action="categories.php" method="post" id="reset-order">'. 
    204      '<!-- <p>'.__('This will relocate all categories on the top level').'</p> -->'. 
    205206     '<p><input type="submit" value="'.__('Reorder all categories on the top level').'" />'. 
    206207     form::hidden(array('reset'),1). 
  • admin/js/_categories.js

    r1532 r1547  
    2020     $('#mov_cat').parent().hide(); 
    2121     $('input[name="categories[]"]').click(function() { 
    22           $('#mov_cat').parent().parent().removeClass('two-cols').addClass('three-cols'); 
    2322          $('#mov_cat').parent().show(); 
    2423     }); 
  • admin/style/default.css

    r1534 r1547  
    612612#categories li { 
    613613     margin: .5em 0; 
    614      padding: .3em 1.5em; 
     614     padding: .5em 1.2em; 
    615615     border: 1px solid #ccc; 
    616      border-left: 1em solid #E5E3DA; 
    617      border-radius: .3em; 
    618 } 
     616     border-left: 8px solid #E5E3DA; 
     617     border-radius: 3px; 
     618} 
     619#categories input[type="checkbox"] { 
     620     margin-right: .8em; 
     621}  
    619622#categories h4 { 
    620623     margin: 0; 
     624} 
     625#categories label a { 
     626     font-weight: bold; 
    621627} 
    622628#categories h4 span { 
     
    625631#categories li p { 
    626632     margin: 0; 
     633} 
     634.cat-actions { 
     635     line-height: 2; 
    627636} 
    628637select#del_cat { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map