Last change
on this file since 5123 was
5123,
checked in by plg, 14 years ago
|
feature 1502: based on Dotclear model, P@t has reorganized the way Piwigo
manages template/theme in a simpler "theme only level" architecture. It
supports multiple level inheritance.
|
-
Property svn:eol-style set to
LF
|
File size:
1.5 KB
|
Line | |
---|
1 | {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} |
---|
2 | {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js" } |
---|
3 | {known_script id="jquery.ui.sortable" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.sortable.packed.js" } |
---|
4 | |
---|
5 | {literal} |
---|
6 | <script type="text/javascript"> |
---|
7 | $(function() { |
---|
8 | $('ul.thumbnails') |
---|
9 | .sortable( |
---|
10 | { revert: true, |
---|
11 | opacity: 0.7, |
---|
12 | handle: $('.rank-of-image').add('.rank-of-image img'), |
---|
13 | update: function() { |
---|
14 | $(this).find('li').each(function(i) { |
---|
15 | $(this).find("input[@name~='rank_of_image']") |
---|
16 | .each(function() { $(this).attr('value', (i+1)*10)}); |
---|
17 | }); |
---|
18 | } |
---|
19 | }); |
---|
20 | }); |
---|
21 | |
---|
22 | </script> |
---|
23 | {/literal} |
---|
24 | |
---|
25 | <h2>{'Manage image ranks'|@translate}</h2> |
---|
26 | |
---|
27 | <h3>{$CATEGORIES_NAV}</h3> |
---|
28 | |
---|
29 | {if !empty($thumbnails)} |
---|
30 | <form action="{$F_ACTION}" method="post"> |
---|
31 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}></p> |
---|
32 | <fieldset> |
---|
33 | <legend>{'Edit ranks'|@translate}</legend> |
---|
34 | {if !empty($thumbnails)} |
---|
35 | <ul class="thumbnails"> |
---|
36 | {foreach from=$thumbnails item=thumbnail} |
---|
37 | <li class="rank-of-image"> |
---|
38 | <img src="{$thumbnail.TN_SRC}" class="thumbnail" alt=""> |
---|
39 | <input type="text" name="rank_of_image[{$thumbnail.ID}]" value="{$thumbnail.RANK}"> |
---|
40 | </li> |
---|
41 | {/foreach} |
---|
42 | </ul> |
---|
43 | {/if} |
---|
44 | </fieldset> |
---|
45 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" {$TAG_INPUT_ENABLED}></p> |
---|
46 | </form> |
---|
47 | |
---|
48 | {else} |
---|
49 | <div class="infos"><p>{'No element in this category'|@translate}</p></div> |
---|
50 | {/if} |
---|
Note: See
TracBrowser
for help on using the repository browser.