feature 2409 added: by default, hide the "who can see these photos?" field in the upload form.
git-svn-id: http://piwigo.org/svn/trunk@11967 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
27d0c89c33
commit
50cb55c656
4 changed files with 28 additions and 15 deletions
|
@ -147,6 +147,11 @@ jQuery(document).ready(function(){
|
|||
jQuery("#uploadWarnings").show();
|
||||
});
|
||||
|
||||
jQuery("#showPermissions").click(function() {
|
||||
jQuery(this).parent(".showFieldset").hide();
|
||||
jQuery("#permissions").show();
|
||||
});
|
||||
|
||||
{/literal}
|
||||
{if $upload_mode eq 'html'}
|
||||
{literal}
|
||||
|
@ -385,14 +390,6 @@ var sizeLimit = {$upload_max_filesize};
|
|||
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{'Who can see these photos?'|@translate}</legend>
|
||||
|
||||
<select name="level" size="1">
|
||||
{html_options options=$level_options selected=$level_options_selected}
|
||||
</select>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<legend>{'Select files'|@translate}</legend>
|
||||
|
||||
|
@ -413,14 +410,9 @@ var sizeLimit = {$upload_max_filesize};
|
|||
</div>
|
||||
|
||||
<p id="uploadModeInfos">{'You are using the Browser uploader. Try the <a href="%s">Flash uploader</a> instead.'|@translate|@sprintf:$switch_url}</p>
|
||||
|
||||
</fieldset>
|
||||
|
||||
<p>
|
||||
<input class="submit" type="submit" name="submit_upload" value="{'Start Upload'|@translate}">
|
||||
</p>
|
||||
{elseif $upload_mode eq 'multiple'}
|
||||
|
||||
|
||||
<p>
|
||||
<input type="file" name="uploadify" id="uploadify">
|
||||
</p>
|
||||
|
@ -429,7 +421,24 @@ var sizeLimit = {$upload_max_filesize};
|
|||
|
||||
<p id="uploadModeInfos">{'You are using the Flash uploader. Problems? Try the <a href="%s">Browser uploader</a> instead.'|@translate|@sprintf:$switch_url}</p>
|
||||
|
||||
{/if}
|
||||
</fieldset>
|
||||
|
||||
<p class="showFieldset"><a id="showPermissions" href="#">{'Manage Permissions'|@translate}</a></p>
|
||||
|
||||
<fieldset id="permissions" style="display:none">
|
||||
<legend>{'Who can see these photos?'|@translate}</legend>
|
||||
|
||||
<select name="level" size="1">
|
||||
{html_options options=$level_options selected=$level_options_selected}
|
||||
</select>
|
||||
</fieldset>
|
||||
|
||||
{if $upload_mode eq 'html'}
|
||||
<p>
|
||||
<input class="submit" type="submit" name="submit_upload" value="{'Start Upload'|@translate}">
|
||||
</p>
|
||||
{elseif $upload_mode eq 'multiple'}
|
||||
<p>
|
||||
<input class="submit" type="button" value="{'Start Upload'|@translate}">
|
||||
<input type="submit" name="submit_upload" style="display:none">
|
||||
|
|
|
@ -1069,4 +1069,6 @@ div.token-input-dropdown ul li.token-input-selected-dropdown-item {background-co
|
|||
p#uploadWarningsSummary {text-align:left;margin-bottom:1em;font-size:90%;color:#999;}
|
||||
p#uploadWarningsSummary .showInfo {position:static;display:inline;padding:1px 6px;margin-left:3px;}
|
||||
p#uploadWarnings {display:none;text-align:left;margin-bottom:1em;font-size:90%;color:#999;}
|
||||
p#uploadModeInfos {text-align:left;margin-top:1em;font-size:90%;color:#999;}
|
||||
p#uploadModeInfos {text-align:left;margin-top:1em;font-size:90%;color:#999;}
|
||||
|
||||
#photosAddContent p.showFieldset {text-align:left;margin: 0 auto 10px auto;width: 650px;}
|
|
@ -848,4 +848,5 @@ $lang['You are using the Browser uploader. Try the <a href="%s">Flash uploader</
|
|||
$lang['Maximum file size: %sB.'] = 'Maximum file size: %sB.';
|
||||
$lang['Allowed file types: %s.'] = 'Allowed file types: %s.';
|
||||
$lang['Approximate maximum resolution: %dM pixels (that\'s %dx%d pixels).'] = 'Approximate maximum resolution: %dM pixels (that\'s %dx%d pixels).';
|
||||
$lang['Manage Permissions'] = 'Manage Permissions';
|
||||
?>
|
||||
|
|
|
@ -857,4 +857,5 @@ $lang['You are using the Browser uploader. Try the <a href="%s">Flash uploader</
|
|||
$lang['Maximum file size: %sB.'] = 'Poids maximum des fichiers : %sB.';
|
||||
$lang['Allowed file types: %s.'] = 'Types de fichiers autorisés : %s.';
|
||||
$lang['Approximate maximum resolution: %dM pixels (that\'s %dx%d pixels).'] = 'Résolution maximum approximative : %dM pixels (soit %dx%d pixels).';
|
||||
$lang['Manage Permissions'] = 'Gérer les permissions';
|
||||
?>
|
Loading…
Add table
Reference in a new issue