Changeset 11967


Ignore:
Timestamp:
Aug 18, 2011, 6:51:16 PM (9 years ago)
Author:
plg
Message:

feature 2409 added: by default, hide the "who can see these photos?" field in the upload form.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/photos_add_direct.tpl

    r11966 r11967  
    148148  });
    149149
     150  jQuery("#showPermissions").click(function() {
     151    jQuery(this).parent(".showFieldset").hide();
     152    jQuery("#permissions").show();
     153  });
     154
    150155{/literal}
    151156{if $upload_mode eq 'html'}
     
    387392
    388393    <fieldset>
    389       <legend>{'Who can see these photos?'|@translate}</legend>
    390 
    391       <select name="level" size="1">
    392         {html_options options=$level_options selected=$level_options_selected}
    393       </select>
    394     </fieldset>
    395 
    396     <fieldset>
    397394      <legend>{'Select files'|@translate}</legend>
    398395
     
    414411
    415412    <p id="uploadModeInfos">{'You are using the Browser uploader. Try the <a href="%s">Flash uploader</a> instead.'|@translate|@sprintf:$switch_url}</p>
     413
     414{elseif $upload_mode eq 'multiple'}
    416415   
     416    <p>
     417      <input type="file" name="uploadify" id="uploadify">
     418    </p>
     419
     420    <div id="fileQueue" style="display:none"></div>
     421
     422    <p id="uploadModeInfos">{'You are using the Flash uploader. Problems? Try the <a href="%s">Browser uploader</a> instead.'|@translate|@sprintf:$switch_url}</p>
     423
     424{/if}
    417425    </fieldset>
    418426
     427    <p class="showFieldset"><a id="showPermissions" href="#">{'Manage Permissions'|@translate}</a></p>
     428
     429    <fieldset id="permissions" style="display:none">
     430      <legend>{'Who can see these photos?'|@translate}</legend>
     431
     432      <select name="level" size="1">
     433        {html_options options=$level_options selected=$level_options_selected}
     434      </select>
     435    </fieldset>
     436
     437{if $upload_mode eq 'html'}
    419438    <p>
    420439      <input class="submit" type="submit" name="submit_upload" value="{'Start Upload'|@translate}">
    421440    </p>
    422441{elseif $upload_mode eq 'multiple'}
    423 
    424     <p>
    425       <input type="file" name="uploadify" id="uploadify">
    426     </p>
    427 
    428     <div id="fileQueue" style="display:none"></div>
    429 
    430     <p id="uploadModeInfos">{'You are using the Flash uploader. Problems? Try the <a href="%s">Browser uploader</a> instead.'|@translate|@sprintf:$switch_url}</p>
    431 
    432     </fieldset>
    433442    <p>
    434443      <input class="submit" type="button" value="{'Start Upload'|@translate}">
  • trunk/admin/themes/default/theme.css

    r11966 r11967  
    10711071p#uploadWarnings {display:none;text-align:left;margin-bottom:1em;font-size:90%;color:#999;}
    10721072p#uploadModeInfos {text-align:left;margin-top:1em;font-size:90%;color:#999;}
     1073
     1074#photosAddContent p.showFieldset {text-align:left;margin: 0 auto 10px auto;width: 650px;}
  • trunk/language/en_UK/admin.lang.php

    r11966 r11967  
    849849$lang['Allowed file types: %s.'] = 'Allowed file types: %s.';
    850850$lang['Approximate maximum resolution: %dM pixels (that\'s %dx%d pixels).'] = 'Approximate maximum resolution: %dM pixels (that\'s %dx%d pixels).';
     851$lang['Manage Permissions'] = 'Manage Permissions';
    851852?>
  • trunk/language/fr_FR/admin.lang.php

    r11966 r11967  
    858858$lang['Allowed file types: %s.'] = 'Types de fichiers autorisés : %s.';
    859859$lang['Approximate maximum resolution: %dM pixels (that\'s %dx%d pixels).'] = 'Résolution maximum approximative : %dM pixels (soit %dx%d pixels).';
     860$lang['Manage Permissions'] = 'Gérer les permissions';
    860861?>
Note: See TracChangeset for help on using the changeset viewer.