Dotclear


Ignore:
Timestamp:
08/28/13 19:15:41 (11 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
default
Message:

User page, My preferences page : reorder elements, change wording, delete fieldsets, add some styles. (My preference needs to be enhanced, work in progress.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/preferences.php

    r1607 r1609  
    393393 
    394394echo 
     395'<h3 class="hidden-if-js">'.__('My profile').'</h3>'. 
    395396'<form action="preferences.php" method="post" id="user-form">'. 
    396 '<fieldset><legend>'.__('My profile').'</legend>'. 
    397 '<div class="two-cols">'. 
    398 '<div class="col">'. 
     397 
    399398'<p><label for="user_name">'.__('Last Name:').'</label>'. 
    400399form::field('user_name',20,255,html::escapeHTML($user_name)).'</p>'. 
     
    410409 
    411410'<p><label for="user_url">'.__('URL:').'</label>'. 
    412 form::field('user_url',30,255,html::escapeHTML($user_url)).'</p>'. 
    413  
    414 '</div>'. 
    415  
    416 '<div class="col">'. 
    417  
    418 '<p><label for="user_lang">'.__('Language for my interface:').'</label>'. 
    419 form::combo('user_lang',$lang_combo,$user_lang,'l10n').'</p>'. 
    420  
    421 '<p><label for="user_tz">'.__('My timezone:').'</label>'. 
    422 form::combo('user_tz',dt::getZones(true,true),$user_tz).'</p>'. 
    423  
    424 '</div>'. 
    425 '</div>'. 
    426 '</fieldset>'; 
     411form::field('user_url',30,255,html::escapeHTML($user_url)).'</p>'; 
    427412 
    428413if ($core->auth->allowPassChange()) 
    429414{ 
    430415     echo 
    431      '<fieldset>'. 
    432      '<legend>'.__('Change my password').'</legend>'. 
     416     '<h4 class="vertical-separator">'.__('Change my password').'</h4>'. 
    433417      
    434418     '<div class="pw-table">'. 
     
    443427     '<p><label for="new_pwd_c">'.__('Confirm new password:').'</label>'. 
    444428     form::password('new_pwd_c',20,255).'</p>'. 
    445      '</fieldset>'. 
    446429      
    447      '<div class="fieldset">'. 
    448      '<p class="form-note warn">'.__('If you have changed your email or password you must provide your current password to save these modifications.').'</p>'. 
    449      '<p><label for="cur_pwd">'.__('Your password:').'</label>'. 
     430     '<p><label for="cur_pwd">'.__('Your current password:').'</label>'. 
    450431     form::password('cur_pwd',20,255).'</p>'. 
    451      '</div>'; 
    452 } 
    453  
    454 echo 
    455 '<p class="clear">'. 
     432     '<p class="form-note warn">'. 
     433     __('If you have changed your email or password you must provide your current password to save these modifications.'). 
     434     '</p>'; 
     435} 
     436 
     437echo 
     438'<p class="clear vertical-separator">'. 
    456439$core->formNonce(). 
    457 '<input type="submit" accesskey="s" value="'.__('Save').'" /></p>'. 
    458 '</form>'; 
    459  
    460 echo '</div>'; 
     440'<input type="submit" accesskey="s" value="'.__('Update my profile').'" /></p>'. 
     441'</form>'. 
     442 
     443'</div>'; 
    461444 
    462445# User options : some from actual user profile, dashboard modules, ... 
     
    465448echo 
    466449'<form action="preferences.php" method="post" id="opts-forms">'. 
    467 '<fieldset><legend>'.__('My options').'</legend>'. 
    468  
    469 '<p><label class="ib" for="user_post_format">'.__('Preferred format:').'</label>'. 
    470 form::combo('user_post_format',$formaters_combo,$user_options['post_format']).'</p>'. 
    471  
    472 '<p><label class="ib" for="user_post_status">'.__('Default entry status:').'</label>'. 
    473 form::combo('user_post_status',$status_combo,$user_post_status).'</p>'. 
    474  
    475 '<p><label class="ib" for="user_edit_size">'.__('Entry edit field height:').'</label>'. 
    476 form::field('user_edit_size',5,4,(integer) $user_options['edit_size']).'</p>'. 
    477  
    478 '<p><label for="user_wysiwyg" class="classic">'. 
    479 form::checkbox('user_wysiwyg',1,$user_options['enable_wysiwyg']).' '. 
    480 __('Enable WYSIWYG mode').'</label></p>'. 
     450'<h3 class="hidden-if-js">'.__('My options').'</h3>'; 
     451 
     452echo 
     453'<div class="two-cols">'. 
     454 
     455'<div class="col">'. 
     456'<h4>'.__('Interface').'</h4>'. 
     457 
     458'<p><label for="user_lang">'.__('Language for my interface:').'</label>'. 
     459form::combo('user_lang',$lang_combo,$user_lang,'l10n').'</p>'. 
     460 
     461'<p><label for="user_tz">'.__('My timezone:').'</label>'. 
     462form::combo('user_tz',dt::getZones(true,true),$user_tz).'</p>'. 
    481463 
    482464'<p><label for="user_ui_enhanceduploader" class="classic">'. 
    483465form::checkbox('user_ui_enhanceduploader',1,$user_ui_enhanceduploader).' '. 
    484 __('Activate enhanced uploader in media manager').'</label></p>'. 
    485  
    486 '<p><label for="user_ui_nofavmenu" class="classic">'. 
    487 form::checkbox('user_ui_nofavmenu',1,$user_ui_nofavmenu).' '. 
    488 __('Hide My favorites menu').'</label></p>'; 
    489  
    490 if (count($iconsets_combo) > 1) { 
    491      echo  
    492           '<p><label class="ib" for="user_ui_iconset">'.__('Iconset:').'</label>'. 
    493           form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</p>'; 
    494 } else { 
    495      form::hidden('user_ui_iconset',''); 
    496 } 
     466__('Activate enhanced uploader in media manager').'</label></p>'; 
    497467 
    498468if ($core->auth->isSuperAdmin()) { 
     
    502472     __('Do not use standard favicon').'</label></p>'. 
    503473     '<p class="clear form-note warn">'.__('This will be applied for all users').'.'. 
    504      '<br class="clear" /></p>';//Opera sucks; 
    505 } 
    506  
    507 echo  
    508 '</fieldset>'; 
    509  
    510 echo 
    511 '<fieldset><legend>'.__('Accessibility options').'</legend>'. 
     474     '</p>';//Opera sucks; 
     475} 
     476 
     477echo 
     478'<h5>'.__('Accessibility').'</h5>'. 
    512479 
    513480'<p><label for="user_acc_nodragdrop" class="classic">'. 
     
    515482__('Disable javascript powered drag and drop for ordering items').'</label></p>'. 
    516483 
    517 '<p class="clear form-note info">'.__('Numeric fields will allow to type the elements\' ordering number.').'</p>'. 
    518 '</fieldset>'; 
    519  
    520 echo 
    521 '<fieldset><legend>'.__('Dashboard modules').'</legend>'. 
     484'<p class="clear form-note">'.__('If checked, numeric fields will allow to type the elements\' ordering number.').'</p>'; 
     485 
     486echo 
     487'<h4 class="border-top">'.__('Edition').'</h4>'. 
     488 
     489'<p><label for="user_post_format">'.__('Preferred format:').'</label>'. 
     490form::combo('user_post_format',$formaters_combo,$user_options['post_format']).'</p>'. 
     491 
     492'<p><label for="user_post_status">'.__('Default entry status:').'</label>'. 
     493form::combo('user_post_status',$status_combo,$user_post_status).'</p>'. 
     494 
     495'<p><label for="user_edit_size">'.__('Entry edit field height:').'</label>'. 
     496form::field('user_edit_size',5,4,(integer) $user_options['edit_size']).'</p>'. 
     497 
     498'<p><label for="user_wysiwyg" class="classic">'. 
     499form::checkbox('user_wysiwyg',1,$user_options['enable_wysiwyg']).' '. 
     500__('Enable WYSIWYG mode').'</label></p>'; 
     501 
     502echo 
     503'<h4 class="border-top">'.__('Other options').'</h4>'; 
     504 
     505# --BEHAVIOR-- adminPreferencesForm 
     506$core->callBehavior('adminPreferencesForm',$core); 
     507 
     508echo 
     509'</div>'. 
     510 
     511'<div class="col">'. 
     512'<h4>'.__('Dashboard and menu').'</h4>'. 
     513 
     514'<p><label for="user_ui_nofavmenu" class="classic">'. 
     515form::checkbox('user_ui_nofavmenu',1,$user_ui_nofavmenu).' '. 
     516__('Hide My favorites menu').'</label></p>'; 
     517 
     518if (count($iconsets_combo) > 1) { 
     519     echo  
     520          '<p><label for="user_ui_iconset" class="classic">'.__('Iconset:').'</label> '. 
     521          form::combo('user_ui_iconset',$iconsets_combo,$user_ui_iconset).'</p>'; 
     522} else { 
     523     form::hidden('user_ui_iconset',''); 
     524} 
     525 
     526echo 
     527'<h5>'.('Dashboard modules').'</h5>'. 
    522528 
    523529'<p><label for="user_dm_doclinks" class="classic">'. 
     
    532538form::checkbox('user_dm_quickentry',1,$user_dm_quickentry).' '. 
    533539__('Display quick entry form').'</label><br class="clear" />'. //Opera sucks 
    534 '</p>'. 
    535  
    536 '</fieldset>'; 
    537  
    538 # --BEHAVIOR-- adminPreferencesForm 
    539 $core->callBehavior('adminPreferencesForm',$core); 
    540  
    541 echo 
    542 '<p class="clear">'. 
     540'</p>'; 
     541 
     542echo 
     543'</div>'. 
     544'</div>'; 
     545 
     546echo 
     547'<p class="clear border-top">'. 
    543548$core->formNonce(). 
    544 '<input type="submit" accesskey="s" value="'.__('Save').'" /></p>'. 
     549'<input type="submit" accesskey="s" value="'.__('Save my options').'" /></p>'. 
    545550'</form>'; 
    546551 
     
    552557echo '<form action="preferences.php" method="post" id="favs-form">'; 
    553558echo '<div class="two-cols">'; 
     559 
    554560echo '<div class="col70">'; 
    555561echo '<div id="my-favs" class="fieldset"><h3>'.__('My favorites').'</h3>'; 
     
    600606 
    601607echo '<div id="default-favs"><h3>'.__('Default favorites').'</h3>'; 
    602 echo '<p class="form-note info clear">'.__('Those favorites are displayed when My Favorites list is empty.').'</p>'; 
     608echo '<p>'.__('Those favorites are displayed when My Favorites list is empty.').'</p>'; 
    603609$count = 0; 
    604610foreach ($ws->dumpPrefs() as $k => $v) { 
     
    617623echo '</div>'; 
    618624echo '</div>'; 
     625 
     626 
    619627echo '<div class="col30 fieldset" id="available-favs">'; 
    620628# Available favorites 
     
    646654'<input type="submit" name="appendaction" value="'.__('Add to my favorites').'" /></p>'; 
    647655echo '</div>'; 
     656 
     657 
    648658echo '</div>'; # Two-cols 
    649659echo '</form>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map