source: trunk/admin/themes/default/template/derivatives.tpl @ 12829

Last change on this file since 12829 was 12829, checked in by plg, 9 years ago

feature 2541: "Derivatives" is a technical name. Replaced by "Multiple Size"
on administration screens. (and this screen may be move in the option "tabs",
we'll see later)

File size: 2.3 KB
Line 
1<h2>{'Multiple Size'|@translate}</h2>
2
3{html_head}{literal}
4<style type="text/css">
5#derviativesForm .dError {
6        background-color: red;
7        color: yellow;
8}
9
10#derviativesForm .dErrorDesc {
11}
12
13#derviativesForm TABLE THEAD {
14        height: 3em;
15}
16
17#derviativesForm TABLE INPUT[type="text"] {
18        border: 0;
19        width: 5em;
20}
21
22</style>
23{/literal}{/html_head}
24
25<form method="post" id="derviativesForm">
26<table class="table2">
27        <thead>
28        <tr>
29                <td></td>
30                <td>Enabled</td>
31                <td>{'Width'|@translate}</td>
32                <td>{'Height'|@translate}</td>
33                <td>{'Crop'|@translate} (%)</td>
34                <td>{'Min Width'|@translate}</td>
35                <td>{'Min Height'|@translate}</td>
36        </tr>
37        </thead>
38        {foreach from=$derivatives item=d key=type}
39        <tr>
40                <td>{$type|@translate}</td>
41                <td>
42                {if $d.must_enable}
43                        x
44                {else}
45                        <input type="checkbox" name="d[{$type}][enabled]" {if $d.enabled}checked="checked"{/if}>
46                {/if}
47                </td>
48                <td>
49                        <input type="text" name="d[{$type}][w]" value="{$d.w}"{if isset($ferrors.$type.w)}class="dError"{/if}>
50                        {if isset($ferrors.$type.w)}<span class="dErrorDesc" title="{$ferrors.$type.w}">!</span>{/if}
51                </td>
52                <td>{if !$d.must_square}
53                        <input type="text" name="d[{$type}][h]" value="{$d.h}"{if isset($ferrors.$type.h)}class="dError"{/if}>
54                        {if isset($ferrors.$type.h)}<span class="dErrorDesc" title="{$ferrors.$type.h}">!</span>{/if}
55                {/if}</td>
56                <td>{if !$d.must_square}
57                        <input type="text" name="d[{$type}][crop]" value="{$d.crop}"{if isset($ferrors.$type.crop)}class="dError"{/if}>
58                        {if isset($ferrors.$type.crop)}<span class="dErrorDesc" title="{$ferrors.$type.crop}">!</span>{/if}
59                {/if}</td>
60                <td>{if !$d.must_square}
61                        <input type="text" name="d[{$type}][minw]" value="{$d.minw}"{if isset($ferrors.$type.minw)}class="dError"{/if}>
62                        {if isset($ferrors.$type.minw)}<span class="dErrorDesc" title="{$ferrors.$type.minw}">!</span>{/if}
63                {/if}</td>
64                <td>{if !$d.must_square}
65                        <input type="text" name="d[{$type}][minh]" value="{$d.minh}"{if isset($ferrors.$type.minh)}class="dError"{/if}>
66                        {if isset($ferrors.$type.minh)}<span class="dErrorDesc" title="{$ferrors.$type.minh}">!</span>{/if}
67                {/if}</td>
68
69        </tr>
70        {/foreach}
71</table>
72<p><input type="submit" value="{'Submit'|@translate}"></p>
73</form>
74
75{footer_script}{literal}
76jQuery(".dError").bind("focus", function () {
77        jQuery(this).removeClass("dError");
78} );
79{/literal}{/footer_script}
Note: See TracBrowser for help on using the repository browser.