Dotclear

Changeset 1420:82e0840594ac


Ignore:
Timestamp:
08/16/13 21:25:23 (12 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

Apply new filters design on blogs and comments.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • admin/blogs.php

    r1416 r1420  
    9292      
    9393     if (!$show_filters) { 
    94           echo '<p><a id="filter-control" class="form-control" href="#">'.__('Filters').'</a></p>'; 
     94          echo '<p><a id="filter-control" class="form-control" href="#">'.__('Filter blogs list').'</a></p>'; 
    9595     } 
    9696      
    9797     echo 
    9898     '<form action="blogs.php" method="get" id="filters-form">'. 
    99      '<fieldset class="two-cols"><legend>'.__('Filters').'</legend>'. 
     99     '<h3>'.__('Filter blogs list').'</h3>'. 
    100100      
    101      '<div class="col">'. 
    102      '<p><label for="sortby">'.__('Order by:').' '. 
    103      form::combo('sortby',$sortby_combo,html::escapeHTML($sortby)). 
    104      '</label> '. 
    105      '<label for="order">'.__('Sort:').' '. 
    106      form::combo('order',$order_combo,html::escapeHTML($order)). 
    107      '</label></p>'. 
     101     '<div class="table">'. 
     102     '<div class="cell">'. 
     103     '<p><label for="q" class="ib">'.__('Search:').'</label> '. 
     104     form::field('q',20,255,html::escapeHTML($q)).'</p>'. 
    108105     '</div>'. 
    109106      
    110      '<div class="col">'. 
    111      '<p><label for="q">'.__('Search:').' '. 
    112      form::field('q',20,255,html::escapeHTML($q)). 
    113      '</label></p>'. 
    114      '<p><label for="nb" class="classic">'.  form::field('nb',3,3,$nb_per_page).' '. 
    115      __('Blogs per page').'</label> '. 
    116      '<input type="submit" value="'.__('Apply filters').'" /></p>'. 
     107     '<div class="cell filters-options">'. 
     108     '<p><label for="sortby" class="ib">'.__('Order by:').'</label> '. 
     109     form::combo('sortby',$sortby_combo,html::escapeHTML($sortby)).'</p>'. 
     110     '<p><label for="order" class="ib">'.__('Sort:').'</label> '. 
     111     form::combo('order',$order_combo,html::escapeHTML($order)).'</p>'. 
     112     '<p><span class="label ib">Afficher</span> <label for="nb" class="classic">'.    
     113     form::field('nb',3,3,$nb_per_page).' '.__('blogs per page').'</label></p>'. 
    117114     '</div>'. 
     115     '</div>'. 
     116 
     117     '<p class="no-margin"><input type="submit" value="'.__('Apply filters').'" /></p>'. 
    118118      
    119119     '<br class="clear" />'. //Opera sucks 
    120      '</fieldset>'. 
    121120     '</form>'; 
    122121      
  • admin/comments.php

    r1358 r1420  
    183183          unset($_SESSION['comments_del_spam']); 
    184184     } 
    185       
    186      # Filters 
    187      if (!$show_filters) { 
    188           echo '<p><a id="filter-control" class="form-control" href="#">'. 
    189           __('Filters').'</a></p>'; 
    190      } 
    191       
    192      echo 
    193      '<form action="comments.php" method="get" id="filters-form">'. 
    194      '<fieldset><legend>'.__('Filters').'</legend>'. 
    195      '<div class="three-cols">'. 
    196      '<div class="col">'. 
    197      '<label for="type">'.__('Type:').' '. 
    198      form::combo('type',$type_combo,$type). 
    199      '</label> '. 
    200      '<label for="status">'.__('Status:').' '. 
    201      form::combo('status',$status_combo,$status). 
    202      '</label>'. 
    203      '</div>'. 
    204       
    205      '<div class="col">'. 
    206      '<p><label for="sortby">'.__('Order by:').' '. 
    207      form::combo('sortby',$sortby_combo,$sortby). 
    208      '</label> '. 
    209      '<label for="order">'.__('Sort:').' '. 
    210      form::combo('order',$order_combo,$order). 
    211      '</label></p>'. 
    212      '<p><label for="nb" class="classic">'.  form::field('nb',3,3,$nb_per_page).' '. 
    213      __('Comments per page').'</label></p>'. 
    214      '</div>'. 
    215       
    216      '<div class="col">'. 
    217      '<p><label for="author">'.__('Comment author:').' '. 
    218      form::field('author',20,255,html::escapeHTML($author)). 
    219      '</label>'. 
    220      '<label for="ip">'.__('IP address:').' '. 
    221      form::field('ip',20,39,html::escapeHTML($ip)). 
    222      '</label></p>'. 
    223      '<p><input type="submit" value="'.__('Apply filters').'" /></p>'. 
    224      '</div>'. 
    225       
    226      '</div>'. 
    227      '<br class="clear" />'. //Opera sucks 
    228      '</fieldset>'. 
    229      '</form>'; 
    230185      
    231186     $spam_count = $core->blog->getComments(array('comment_status'=>-2),true)->f(0); 
     
    253208 
    254209          echo '</form>'; 
     210 
     211     # Filters 
     212     if (!$show_filters) { 
     213          echo '<p><a id="filter-control" class="form-control" href="#">'. 
     214          __('Filter comments and trackbacks list').'</a></p>'; 
     215     } 
     216      
     217     echo 
     218     '<form action="comments.php" method="get" id="filters-form">'. 
     219     '<h3>'.__('Filter comments and trackbacks list').'</h3>'. 
     220     '<div class="table">'. 
     221 
     222     '<div class="cell">'. 
     223     '<p><label for="type" class="ib">'.__('Type:').'</label> '. 
     224     form::combo('type',$type_combo,$type).'</p> '. 
     225     '<p><label for="status" class="ib">'.__('Status:').'</label> '. 
     226     form::combo('status',$status_combo,$status).'</p>'. 
     227     '</div>'. 
     228      
     229     '<div class="cell">'. 
     230     '<p><label for="author" class="ib">'.__('Author:').'</label> '. 
     231     form::field('author',20,255,html::escapeHTML($author)).'</p>'. 
     232     '<p><label for="ip" class="ib">'.__('IP address:').'</label> '. 
     233     form::field('ip',20,39,html::escapeHTML($ip)).'</p>'. 
     234     '</div>'. 
     235      
     236     '<div class="cell filters-options">'. 
     237     '<p><label for="sortby" class="ib">'.__('Order by:').'</label> '. 
     238     form::combo('sortby',$sortby_combo,$sortby).'</p>'. 
     239     '<p><label for="order" class="ib">'.__('Sort:').'</label> '. 
     240     form::combo('order',$order_combo,$order).'</p>'. 
     241     '<p><span class="label ib">Afficher</span> <label for="nb" class="classic">'. 
     242     form::field('nb',3,3,$nb_per_page).' '. 
     243     __('comments per page').'</label></p>'. 
     244     '</div>'. 
     245      
     246     '</div>'. 
     247     '<p class="no-margin"><input type="submit" value="'.__('Apply filters').'" /></p>'. 
     248     '<br class="clear" />'. //Opera sucks 
     249     '</form>'; 
     250      
    255251     } 
    256252      
  • admin/posts.php

    r1415 r1420  
    273273     '<p><label for="cat_id" class="ib">'.__('Category:').'</label> '. 
    274274     form::combo('cat_id',$categories_combo,$cat_id).'</p>'. 
    275      '<p><label for="status" class="ib">'.__('Status:').'</label>' . 
     275     '<p><label for="status" class="ib">'.__('Status:').'</label> ' . 
    276276     form::combo('status',$status_combo,$status).'</p> '. 
    277277     '</div>'. 
  • admin/style/default.css

    r1415 r1420  
    744744} 
    745745#themes div.theme-details:hover { 
    746      background: #eee; 
     746     background: #f0f0f0; 
    747747} 
    748748#themes div.theme-details div.theme-shot { 
     
    989989     padding: .2rem 2rem; 
    990990     border-radius: 1rem; 
    991      background-color: #eee; 
     991     background-color: #f0f0f0; 
    992992} 
    993993a.back:before { 
     
    13641364a.form-control { 
    13651365     display: none; 
    1366      font-weight: bold; 
    1367      background: url(../images/expand.png) no-repeat .6rem center; 
     1366     background: url(../images/expand.png) no-repeat .4rem center; 
    13681367     padding-left: 20px; 
    13691368     color: #000; 
     
    15491548     display: inline-block; 
    15501549} 
     1550#filters-form label.ibw, span.ibw { 
     1551     width: 9em; 
     1552     display: inline-block; 
     1553} 
    15511554#filters-form select { 
    15521555     width: 14em; 
     
    15551558/* ---------------------------------------------------- Pagination */ 
    15561559.pagination { 
    1557      height: 20px; 
    1558      line-height: 20px; 
     1560     height: 22px; 
     1561     margin-top: 1em; 
     1562     line-height: 22px; 
    15591563     padding: 0 1rem;  
    1560      border: 1px solid #ccc; 
     1564     border: 1px solid #ddd; 
    15611565     overflow: hidden;  
    15621566     background: #e1e1e1;  
  • locales/fr/main.po

    r1415 r1420  
    30243024msgid "Show" 
    30253025msgstr "Afficher" 
     3026 
     3027msgid "Filter blogs list" 
     3028msgstr "Filtrer la liste des blogs" 
     3029 
     3030msgid "blogs per page" 
     3031msgstr "blogs par page" 
     3032 
     3033msgid "Filter comments and trackbacks list" 
     3034msgstr "Filtrer la liste des commentaires et rétroliens" 
     3035 
Note: See TracChangeset for help on using the changeset viewer.

Sites map