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

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

File:
1 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}">
Note: See TracChangeset for help on using the changeset viewer.