source: branches/2.1/admin/themes/default/template/photos_add_settings.tpl @ 6323

Revision 6323, 2.4 KB checked in by plg, 9 years ago (diff)

merge r6320 from trunk to branch 2.1

bug 1667 fixed: r6027 was fixing a minor error on tabs for Google Chrome/Safari
BUT was introducing a major visual issue for IE8. Backmerged + adds the -webkit
radius anyway.

This is a quickfix for release 2.1.1, the improved display introduced by nikrou
was nice and it would be better to have it, but working in IE8

Line 
1{literal}
2<script type="text/javascript">
3$(document).ready(function(){
4  function toggleResizeFields() {
5    var checkbox = $("#websize_resize");
6    var needToggle = $("input[name^=websize_]").not(checkbox).parents('tr');
7
8    if ($(checkbox).is(':checked')) {
9      needToggle.show();
10    }
11    else {
12      needToggle.hide();
13    }
14  }
15
16  toggleResizeFields();
17  $("#websize_resize").click(function () {toggleResizeFields()});
18});
19</script>
20{/literal}
21
22<div class="titrePage">
23  <h2>{'Upload Photos'|@translate}</h2>
24</div>
25
26<div id="photosAddContent">
27
28<form id="uploadFormSettings" enctype="multipart/form-data" method="post" action="{$F_ACTION}" class="properties">
29
30  <fieldset>
31    <legend>{'Web size photo'|@translate}</legend>
32
33    <table>
34      <tr>
35        <th><label for="websize_resize">{'Resize'|@translate}</label></th>
36        <td><input type="checkbox" name="websize_resize" id="websize_resize" {$values.websize_resize}></td>
37      </tr>
38      <tr>
39        <th>{'Maximum Width'|@translate}</th>
40        <td><input type="text" name="websize_maxwidth" value="{$values.websize_maxwidth}" size="4" maxlength="4"> {'pixels'|@translate}</td>
41      </tr>
42      <tr>
43        <th>{'Maximum Height'|@translate}</th>
44        <td><input type="text" name="websize_maxheight" value="{$values.websize_maxheight}" size="4" maxlength="4"> {'pixels'|@translate}</td>
45      </tr>
46      <tr>
47        <th>{'Image Quality'|@translate}</th>
48        <td><input type="text" name="websize_quality" value="{$values.websize_quality}" size="3" maxlength="3"> %</td>
49      </tr>
50    </table>
51  </fieldset>
52
53  <fieldset>
54    <legend>{'Thumbnail'|@translate}</legend>
55
56    <table>
57      <tr>
58        <th>{'Maximum Width'|@translate}</th>
59        <td><input type="text" name="thumb_maxwidth" value="{$values.thumb_maxwidth}" size="4" maxlength="4"> {'pixels'|@translate}</td>
60      </tr>
61      <tr>
62        <th>{'Maximum Height'|@translate}</th>
63        <td><input type="text" name="thumb_maxheight" value="{$values.thumb_maxheight}" size="4" maxlength="4"> {'pixels'|@translate}</td>
64      </tr>
65      <tr>
66        <th>{'Image Quality'|@translate}</th>
67        <td><input type="text" name="thumb_quality" value="{$values.thumb_quality}" size="3" maxlength="3"> %</td>
68      </tr>
69    </table>
70  </fieldset>
71
72  <p>
73    <input class="submit" type="submit" name="submit" value="{'Save Settings'|@translate}"/>
74  </p>
75
76</form>
77
78</div> <!-- photosAddContent -->
Note: See TracBrowser for help on using the repository browser.