source: trunk/admin/themes/default/template/photos_add_settings.tpl @ 5174

Revision 5174, 2.4 KB checked in by plg, 10 years ago (diff)

make the fieldset labels easier to read (no italic, increased letter spacing,
bold)

make the fiedset border softer

photos_add 2 screens comply with the fieldset system instead of specific
formField divs.

Line 
1{literal}
2<script>
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" style="height:25px">
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.