source: extensions/rotateImage/admin.tpl @ 25070

Last change on this file since 25070 was 16981, checked in by plg, 12 years ago

Insert a new tab "Rotate" on the photo administration screen (requires Piwigo 2.4.2)

File size: 1.8 KB
Line 
1{footer_script}{literal}
2jQuery(document).ready(function() {
3  function autoRotateOption() {
4    if (jQuery("#rotate_hd").is(':checked')) {
5      jQuery("#autoRotate").show();
6      jQuery("#autoRotate input").attr("checked", "checked");
7    }
8    else {
9      jQuery("#autoRotate").hide();
10      jQuery("#angleSelection input[value={/literal}{$angle_selected}{literal}]").attr("checked", "checked");
11    }
12  }
13
14  autoRotateOption();
15  jQuery('#rotate_hd').click(function() {
16    autoRotateOption();
17  });
18});
19{/literal}{/footer_script}
20
21
22<h2>{$TITLE} &#8250; {'Edit photo'|@translate} {$TABSHEET_TITLE}</h2>
23
24<fieldset>
25  <legend>{'Rotate'|@translate}</legend>
26  <table>
27    <tr>
28      <td id="albumThumbnail">
29        <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail">
30      </td>
31      <td style="vertical-align:top">
32        <form method="post" action="">
33<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
34
35{if $library != 'gd'}
36  <p style="text-align:left; margin-top:0;"><label>
37    <input type="checkbox" name="rotate_hd" id="rotate_hd" checked="checked">
38    <strong>{'Also rotate HD image'|@translate}</strong>
39  </label></p>
40{/if}
41  <p style="text-align:left; margin-top:0;" id="angleSelection">
42    <strong>{'Angle'|@translate}</strong>
43    <br>
44{foreach from=$angles item=angle}
45      <label><input type="radio" name="angle" value="{$angle.value}"{if $angle.value == $angle_selected} checked="checked"{/if}> {$angle.name}</label><br>
46{/foreach}
47      <label id="autoRotate" style="display:none"><input type="radio" name="angle" value="auto"> {'auto (EXIF orientation tag)'|@translate}</label>
48  </p>
49          <p style="text-align:left"><input class="submit" type="submit" value="{'Rotate'|@translate}" name="rotate"></p>
50        </form>
51      </td>
52    </tr>
53  </table>
54</fieldset>
Note: See TracBrowser for help on using the repository browser.