Dotclear

Changeset 536:535dd04130aa for admin


Ignore:
Timestamp:
07/09/11 19:47:57 (14 years ago)
Author:
kozlika
Branch:
default
Message:

Accessibility: fieldset aren't used if not necessary.
Create a class="fieldset" for presentation needs.

Location:
admin
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • admin/auth.php

    r473 r536  
    379379                    '</p>'; 
    380380          } 
     381          else { 
     382               echo '<legend>'.__('Connection').'</legend>'; 
     383          } 
     384 
    381385          echo 
    382386          '<p><label for="user_id">'.__('Username:').' '. 
  • admin/index.php

    r510 r536  
    313313          '<h3>'.__('Quick entry').'</h3>'. 
    314314          '<form id="quick-entry" action="post.php" method="post">'. 
    315           '<fieldset>'. 
     315          '<fieldset><legend>'.__('New entry').'</legend>'. 
    316316          '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:'). 
    317317          form::field('post_title',20,255,'','maximal'). 
     
    325325          '<p><input type="submit" value="'.__('Save').'" name="save" /> '. 
    326326          ($core->auth->check('publish',$core->blog->id) 
    327                ? '<input type="hidden" value="'.__('save and publish').'" name="save-publish" />' 
     327               ? '<input type="hidden" value="'.__('Save and publish').'" name="save-publish" />' 
    328328               : ''). 
    329329          $core->formNonce(). 
  • admin/js/jquery/jquery.candyUpload.js

    r3 r536  
    501501                
    502502               var size = this.formatSize(upldr.params.file_size_limit); 
    503                $('<div class="cu-maxsize">' + this.locales.max_file_size + ' ' + size + '</div>').appendTo(this.ctrl.block); 
     503               $('<p class="cu-maxsize form-note info">' + this.locales.max_file_size + ' ' + size + '</p>').appendTo(this.ctrl.block); 
    504504          }, 
    505505           
     
    553553                         '<div class="cu-fileinfo"><span class="cu-filename">' + o.name + '</span> ' +  
    554554                         '<span class="cu-filesize">(' + this.formatSize(o.size) + ')</span> ' + 
    555                          '<span class="cu-filecancel"><a href="#">cancel</a></span> ' + 
     555                         '<span class="cu-filecancel"><a href="#">cancel</a> </span> ' + 
    556556                         '<span class="cu-filemsg"></span>' + 
    557557                         '</div>'); 
  • admin/media.php

    r505 r536  
    344344      
    345345     echo 
    346      '<div class="col"><h3 id="add-file">'.__('Add files').'</h3>'. 
     346     '<div class="col">'. 
     347     '<fieldset id="add-file-f"><legend>'.__('Add files').'</legend>'. 
    347348     '<p>'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 
    348349     '<form id="media-upload" class="clear" action="'.html::escapeURL($page_url).'" method="post" enctype="multipart/form-data">'. 
    349350     '<div>'.form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). 
    350351     $core->formNonce().'</div>'. 
    351      '<fieldset id="add-file-f">'. 
    352352     '<p><label for="upfile">'.__('Choose a file:'). 
    353353     ' ('.sprintf(__('Maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'. 
     
    366366      
    367367     echo 
    368      '<div class="col"><h3 id="new-dir">'.__('New directory').'</h3>'. 
     368     '<div class="col">'. 
    369369     '<form class="clear" action="'.html::escapeURL($page_url).'" method="post">'. 
    370370     '<fieldset id="new-dir-f">'. 
     371     '<legend>'.__('New directory').'</legend>'. 
    371372     $core->formNonce(). 
    372373     '<p><label for="newdir">'.__('Directory Name:'). 
  • admin/permissions.php

    r500 r536  
    143143      
    144144     echo 
    145      '<fieldset>'. 
     145     '<fieldset><legend>'.__('Validate permissions').'</legend>'. 
    146146     '<p><label for="your_pwd">'.__('Your password:'). 
    147147     form::password('your_pwd',20,255).'</label></p>'. 
  • admin/post.php

    r500 r536  
    361361     echo '<form action="post.php" method="post" id="entry-form">'; 
    362362     echo '<div id="entry-wrapper">'; 
    363      echo '<div id="entry-content"><fieldset class="constrained">'; 
     363     echo '<div id="entry-content"><div class="constrained">'; 
    364364      
    365365     echo 
     
    393393     '</p>'; 
    394394      
    395      echo '</fieldset></div>';          // End #entry-content 
     395     echo '</div></div>';          // End #entry-content 
    396396     echo '</div>';      // End #entry-wrapper 
    397397 
     
    538538      
    539539     '<form action="comment.php" method="post" id="comment-form">'. 
    540      '<fieldset class="constrained">'. 
     540     '<div class="constrained">'. 
    541541     '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:'). 
    542542     form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 
     
    559559     $core->formNonce(). 
    560560     '<input type="submit" name="add" value="'.__('Save').'" /></p>'. 
    561      '</fieldset>'. 
     561     '</div>'. 
    562562     '</form>'. 
    563563     '</div>'; 
  • admin/preferences.php

    r500 r536  
    387387     '</fieldset>'. 
    388388      
    389      '<fieldset>'. 
    390      '<p>'.__('If you want to change your email or password you must provide your current password.').'</p>'. 
     389     '<p>'.__('If you have changed this user email or password you must provide your current password to save these modifications.').'</p>'. 
    391390     '<p><label for="cur_pwd">'.__('Your password:'). 
    392      form::password('cur_pwd',20,255).'</label></p>'. 
    393      '</fieldset>'; 
     391     form::password('cur_pwd',20,255).'</label></p>'; 
    394392} 
    395393 
  • admin/style/candyUpload/style.css

    r3 r536  
    11 
    2 div.cu-ctrl { 
     2.cu-ctrl { 
    33     background: #f5f5f5; 
    4      padding: 5px 0 0 0; 
     4     padding: .5em 0 0 0; 
    55     margin: 0 0 1em 0; 
    66     overflow: hidden; 
    7      border-color: #ccc; 
    8      border-width: 1px 0; 
    9      border-style: solid; 
    107} 
    11  
    12 div.cu-msg { 
    13      padding: 0 0.5em; 
     8.cu-msg { 
    149     font-weight: bold; 
    1510} 
    16 div.cu-msg.cu-error { 
     11.cu-msg.cu-error { 
    1712     color: #c00; 
    1813} 
    19  
    20 div.cu-files { 
     14.cu-files { 
    2115     padding: 0 0.5em; 
    2216     margin: 10px 0; 
    2317} 
    24 div.cu-file { 
     18.cu-file { 
    2519     margin: 0 0 8px 0; 
    2620     position: relative; 
    2721} 
    28 div.cu-fileinfo { 
     22.cu-fileinfo { 
    2923     margin-left: 16px; 
    3024} 
    31 div.cu-fileinfo span.cu-filecancel { 
     25.cu-fileinfo span.cu-filecancel { 
    3226     display: block; 
    3327     position: absolute; 
     
    3630     left: -16px; 
    3731} 
    38 div.cu-files span.cu-filecancel a { 
     32.cu-filecancel a { 
    3933     display: block; 
    4034     width: 12px; 
     
    4539     outline: none; 
    4640} 
    47 div.cu-files span.cu-filemsg { 
     41.cu-filemsg { 
    4842     font-weight: bold; 
    4943     color: green; 
    5044} 
    51 div.cu-files span.cu-filemsg.cu-error { 
     45span.cu-filemsg.cu-error { 
    5246     color: #c00; 
    5347} 
    54  
    55 div.cu-progress { 
     48.cu-progress { 
    5649     margin-left: 16px; 
    5750} 
    58 div.cu-progress div { 
     51.cu-progress div { 
    5952     height: 10px; 
    6053     width: 0; 
     
    6962     -moz-border-radius: 2px; 
    7063} 
    71  
    72 div.cu-btn { 
     64.cu-btn { 
    7365     padding: 0 0.5em; 
    7466     line-height: 1.2em; 
     
    7769     position: relative; 
    7870} 
    79 div.cu-btn span { 
     71.cu-btn span { 
    8072     display: block; 
    81      margin: 0 0 0 .5em; 
     73     margin: 0 1em 0 0; 
    8274     float: right; 
    8375} 
    84 div.cu-btn span a { 
     76.cu-btn span a { 
    8577     display: block; 
    8678     padding: .3em 1.5em; 
    8779} 
    88 div.cu-btn span.cu-btn-browse { 
     80span.cu-btn-browse { 
    8981     float: none; 
    9082     position: absolute; 
    91      left: 0.5em; 
     83     left: 0; 
    9284     margin: 0; 
    9385} 
    94 div.cu-btn span.cu-btn-upload a.button { 
     86span.cu-btn-upload, span.cu-btn-clean { 
     87     margin-right: 0; 
     88} 
     89span.cu-btn-upload a.button { 
    9590     color: #fff; 
    9691     border: 1px solid #2373A8; 
     
    9994     background: -moz-linear-gradient(top,  #2C8FD1,  #2373A8); 
    10095} 
    101 div.cu-btn span.cu-btn-upload a.button:hover, div.cu-btn span.cu-btn-upload a.button:focus { 
     96span.cu-btn-upload a.button:hover,  
     97span.cu-btn-upload a.button:focus { 
    10298     color: #fff; 
    10399     border: 1px solid #2C8FD1; 
     
    107103     filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#2373A8', endColorstr='#2C8FD1'); 
    108104} 
    109 div.cu-maxsize { 
     105.cu-maxsize.form-note { 
    110106     clear: both; 
    111      margin: .75em 0 0 0.5em; 
     107     margin: 1.5em 0 0; 
    112108     font-style: italic; 
    113109} 
    114  
    115 div.cu-disable { 
     110.cu-disable { 
    116111     margin: 1em 0; 
    117112     padding: 0 0 0.5em 0.5em; 
  • admin/style/default.css

    r530 r536  
    10101010     background: #ddd; 
    10111011} 
     1012caption { 
     1013     color: #333; 
     1014     font-size: 1.2em; 
     1015     font-weight: bold; 
     1016     text-align: left; 
     1017     margin-bottom: .5em; 
     1018} 
     1019 
    10121020th, td { 
    10131021     border-width: 0 0 1px 0; 
     
    10791087     padding: 0; 
    10801088} 
    1081 fieldset { 
     1089fieldset, .fieldset { 
    10821090     display: block; 
    10831091     margin: 0 0 1em 0; 
     
    12081216     padding-left: 20px; 
    12091217} 
    1210 fieldset.constrained { 
     1218.constrained { 
    12111219     margin: 0; 
    12121220     padding: 0; 
     
    13191327     border-radius: .5em; 
    13201328     margin-bottom: .1em;      
    1321      background: #2C8FD1 url(add.png) no-repeat .2em center; 
     1329     background: #2C8FD1 url(add.png) no-repeat 6px center; 
    13221330     color: #fff; 
    1323      padding: .1em 1em .2em 28px; 
     1331     padding: .2em 12px .2em 24px; 
    13241332     border: 1px solid #2373A8; 
    13251333} 
  • admin/user.php

    r501 r536  
    273273 
    274274echo 
    275 '<fieldset>'. 
    276275'<p><label for="your_pwd" '.($user_id != '' ? '' : 'class="required"').'>'. 
    277276($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Your password:'). 
    278277form::password('your_pwd',20,255).'</label></p>'. 
    279 '</fieldset>'. 
    280278'<p class="clear"><input type="submit" accesskey="s" value="'.__('Save').'" />'. 
    281279($user_id != '' ? form::hidden('id',$user_id) : ''). 
Note: See TracChangeset for help on using the changeset viewer.

Sites map