diff options
author | plegall <plg@piwigo.org> | 2010-03-08 23:39:53 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-03-08 23:39:53 +0000 |
commit | 8dc1b995863426067ff10afacea459062c71c3df (patch) | |
tree | d213cbde3f9f4ad86f95ca48a4c2005a1bc1f023 /admin/template/goto/photos_add_settings.tpl | |
parent | 4ac5c0649e88f55ec9f6bf18bf61e32325aa7820 (diff) |
feature 1489: integrate UploadForm into Piwigo core. The integration is not
100% done, I just "made it work" on trunk.
pclzip library was updated to version 2.8.2 for memory usage improvement.
git-svn-id: http://piwigo.org/svn/trunk@5089 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/template/goto/photos_add_settings.tpl')
-rw-r--r-- | admin/template/goto/photos_add_settings.tpl | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/admin/template/goto/photos_add_settings.tpl b/admin/template/goto/photos_add_settings.tpl new file mode 100644 index 000000000..10e4633dd --- /dev/null +++ b/admin/template/goto/photos_add_settings.tpl @@ -0,0 +1,74 @@ +{literal} +<script> +$(document).ready(function(){ + function toggleResizeFields() { + var checkbox = $("#websize_resize"); + var needToggle = $("input[name^=websize_]").not(checkbox).parents('tr'); + + if ($(checkbox).is(':checked')) { + needToggle.show(); + } + else { + needToggle.hide(); + } + } + + toggleResizeFields(); + $("#websize_resize").click(function () {toggleResizeFields()}); +}); +</script> +{/literal} + +<div class="titrePage" style="height:25px"> + <h2>{'Upload Photos'|@translate}</h2> +</div> + +<form id="uploadFormSettings" enctype="multipart/form-data" method="post" action="{$F_ACTION}" class="properties"> + + <div class="formField"> + <div class="formFieldTitle">{'Web size photo'|@translate}</div> + + <table> + <tr> + <th><label for="websize_resize">{'Resize'|@translate}</label></th> + <td><input type="checkbox" name="websize_resize" id="websize_resize" {$values.websize_resize}></td> + </tr> + <tr> + <th>{'Maximum Width'|@translate}</th> + <td><input type="text" name="websize_maxwidth" value="{$values.websize_maxwidth}" size="4" maxlength="4"> {'pixels'|@translate}</td> + </tr> + <tr> + <th>{'Maximum Height'|@translate}</th> + <td><input type="text" name="websize_maxheight" value="{$values.websize_maxheight}" size="4" maxlength="4"> {'pixels'|@translate}</td> + </tr> + <tr> + <th>{'Image Quality'|@translate}</th> + <td><input type="text" name="websize_quality" value="{$values.websize_quality}" size="3" maxlength="3"> %</td> + </tr> + </table> + </div> + + <div class="formField"> + <div class="formFieldTitle">{'Thumbnail'|@translate}</div> + + <table> + <tr> + <th>{'Maximum Width'|@translate}</th> + <td><input type="text" name="thumb_maxwidth" value="{$values.thumb_maxwidth}" size="4" maxlength="4"> {'pixels'|@translate}</td> + </tr> + <tr> + <th>{'Maximum Height'|@translate}</th> + <td><input type="text" name="thumb_maxheight" value="{$values.thumb_maxheight}" size="4" maxlength="4"> {'pixels'|@translate}</td> + </tr> + <tr> + <th>{'Image Quality'|@translate}</th> + <td><input type="text" name="thumb_quality" value="{$values.thumb_quality}" size="3" maxlength="3"> %</td> + </tr> + </table> + </div> + + <p> + <input class="submit" type="submit" name="submit" value="{'Save Settings'|@translate}"/> + </p> + +</form> |