From 50cb55c65690f15b5bbc375af0b2bfa87400083d Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 18 Aug 2011 16:51:16 +0000 Subject: 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 --- .../themes/default/template/photos_add_direct.tpl | 37 ++++++++++++++-------- admin/themes/default/theme.css | 4 ++- language/en_UK/admin.lang.php | 1 + language/fr_FR/admin.lang.php | 1 + 4 files changed, 28 insertions(+), 15 deletions(-) diff --git a/admin/themes/default/template/photos_add_direct.tpl b/admin/themes/default/template/photos_add_direct.tpl index 9ee4a8595..41b19f51d 100644 --- a/admin/themes/default/template/photos_add_direct.tpl +++ b/admin/themes/default/template/photos_add_direct.tpl @@ -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}; -
- {'Who can see these photos?'|@translate} - - -
-
{'Select files'|@translate} @@ -413,14 +410,9 @@ var sizeLimit = {$upload_max_filesize};

{'You are using the Browser uploader. Try the Flash uploader instead.'|@translate|@sprintf:$switch_url}

- -
-

- -

{elseif $upload_mode eq 'multiple'} - +

@@ -429,7 +421,24 @@ var sizeLimit = {$upload_max_filesize};

{'You are using the Flash uploader. Problems? Try the Browser uploader instead.'|@translate|@sprintf:$switch_url}

+{/if} + + +

{'Manage Permissions'|@translate}

+ + + +{if $upload_mode eq 'html'} +

+ +

+{elseif $upload_mode eq 'multiple'}

diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css index ff99ff8f7..84e1e2518 100644 --- a/admin/themes/default/theme.css +++ b/admin/themes/default/theme.css @@ -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;} \ No newline at end of file +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;} \ No newline at end of file diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 5bb1493cf..270780bb5 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -848,4 +848,5 @@ $lang['You are using the Browser uploader. Try the Flash uploader diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index 2a695ab8e..ce2af1a8d 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -857,4 +857,5 @@ $lang['You are using the Browser uploader. Try the Flash uploader \ No newline at end of file -- cgit v1.2.3