diff options
author | plegall <plg@piwigo.org> | 2012-01-12 21:37:28 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2012-01-12 21:37:28 +0000 |
commit | cac417c74bc6d5f528b356190561d244e9b4f93a (patch) | |
tree | 98d7f341215bfec3e75de2dde0a2a2167d54b30c /admin/themes/default/template/configuration.tpl | |
parent | 6a115001ba122c2084e28353e025f7c8c5f62335 (diff) |
feature 2548, multiple size:
* adapt the upload script
* remove the resize settings screen
* add a new screen [Administration > Configuration > Options > Photo Sizes]
with the ability to resize original after upload
git-svn-id: http://piwigo.org/svn/trunk@12879 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/configuration.tpl')
-rw-r--r-- | admin/themes/default/template/configuration.tpl | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/admin/themes/default/template/configuration.tpl b/admin/themes/default/template/configuration.tpl index 59ab62006..008dfe4e0 100644 --- a/admin/themes/default/template/configuration.tpl +++ b/admin/themes/default/template/configuration.tpl @@ -247,6 +247,52 @@ jQuery(document).ready(function () { </div> <!-- configContent --> +{if isset($sizes)} + +{footer_script}{literal} +jQuery(document).ready(function(){ + function toggleResizeFields(prefix) { + var checkbox = jQuery("#"+prefix+"_resize"); + var needToggle = jQuery("input[name^="+prefix+"_]").not(checkbox).parents('tr'); + + if (jQuery(checkbox).is(':checked')) { + needToggle.show(); + } + else { + needToggle.hide(); + } + } + + toggleResizeFields("original"); + jQuery("#original_resize").click(function () {toggleResizeFields("original")}); +}); +{/literal}{/footer_script} + +<fieldset id="sizesConf"> + <legend>{'Original Size'|@translate}</legend> + + <table> + <tr> + <th><label for="original_resize">{'Resize after upload'|@translate}</label></th> + <td><input type="checkbox" name="original_resize" id="original_resize" {if ($sizes.original_resize)}checked="checked"{/if}></td> + </tr> + <tr> + <th>{'Maximum Width'|@translate}</th> + <td><input type="text" name="original_resize_maxwidth" value="{$sizes.original_resize_maxwidth}" size="4" maxlength="4"> {'pixels'|@translate}</td> + </tr> + <tr> + <th>{'Maximum Height'|@translate}</th> + <td><input type="text" name="original_resize_maxheight" value="{$sizes.original_resize_maxheight}" size="4" maxlength="4"> {'pixels'|@translate}</td> + </tr> + <tr> + <th>{'Image Quality'|@translate}</th> + <td><input type="text" name="original_resize_quality" value="{$sizes.original_resize_quality}" size="3" maxlength="3"> %</td> + </tr> + </table> + +</fieldset> +{/if} + {if isset($default)} {$PROFILE_CONTENT} {/if} @@ -445,7 +491,7 @@ jQuery(document).ready(function () { {if !isset($default)} <p> - <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}"> + <input class="submit" type="submit" name="submit" value="{'Save Settings'|@translate}"> <input class="submit" type="reset" name="reset" value="{'Reset'|@translate}"> </p> </form> |