source: extensions/gvideo/admin/template/photo.tpl @ 17687

Last change on this file since 17687 was 17687, checked in by mistic100, 12 years ago

big mistakes on photo properties page

File size: 3.6 KB
Line 
1{combine_css path=$GVIDEO_PATH|@cat:"admin/template/style.css"}
2
3{footer_script}{literal}
4jQuery("input[data-toggle]").change(function() {
5  $block = $('#'+ $(this).data('toggle'));
6  if ($block.is(':visible')) {
7    $block.css('display', 'none');
8  } else {
9    $block.css('display', 'block');
10  }
11});
12{/literal}
13
14var border = jQuery("input[name='url']").css('border');
15
16jQuery("input[name='url']").keyup(function() {ldelim}
17  if ($(this).val() != "{$GVIDEO.url}") {ldelim}
18    $(this).css('border', '1px solid #c00');
19    $("#change_warning").show();
20  } else {ldelim}
21    $(this).css('border', border);
22    $("#change_warning").hide();
23  }
24});
25{/footer_script}
26
27<h2>{$TITLE} &#8250; {'Edit photo'|@translate} {$TABSHEET_TITLE}</h2>
28
29<fieldset>
30  <legend>{'Thumbnail'|@translate}</legend>
31  <table>
32    <tr>
33      <td id="albumThumbnail">
34        <img src="{$TN_SRC}" alt="{'Thumbnail'|@translate}" class="Thumbnail">
35      </td>
36      <td id="albumLinks" style="width:400px;vertical-align:top;">
37        <ul style="padding-left:15px;margin:0;">
38        {if $U_ADD_FILM_FRAME}
39          <li style="margin:10px 0 20px 0;"><a href="{$U_ADD_FILM_FRAME}">{'Add film effect'|@translate}</a></li>
40        {/if}
41       
42          <li>
43            <form id="photo_update" method="post" action="{$F_ACTION}" enctype="multipart/form-data">
44              {'Upload a new thumbnail'|@translate}<br>
45              <input type="file" size="20" name="photo_update">
46              <input class="submit" type="submit" value="{'Send'|@translate}" name="photo_update">
47            </form>
48          </li>
49        </ul>
50      </td>
51    </tr>
52  </table>
53</fieldset>
54
55<form action="{$F_ACTION}" method="post" id="catModify">
56  <fieldset>
57    <legend>{'Properties'|@translate}</legend>
58
59    <p>
60      <b>{'Video URL'|@translate}</b>
61      <input type="text" name="url" value="{$GVIDEO.url}" style="width:400px;">
62      <span id="change_warning" style="display:none;">{'Changing the url will reset video description, name and thumbnail'|@translate}</span>
63    </p>
64
65    <p>
66      <b>{'Video size'|@translate}</b>
67      <label><input type="radio" name="size_common" value="true" {if $GVIDEO.size_common == 'true'}checked="checked"{/if} data-toggle="size"> {'Use common setting'|@translate}</label>
68      <label><input type="radio" name="size_common" value="false" {if $GVIDEO.size_common != 'true'}checked="checked"{/if} data-toggle="size"> {'Change'|@translate}</label>
69     
70      <span style="display:{if $GVIDEO.size_common == 'true'}none{else}block{/if};" id="size">
71        <input type="text" name="width" value="{$GVIDEO.width}" size="4"> &times;
72        <input type="text" name="height" value="{$GVIDEO.height}" size="4"> px
73      </span>
74    </p>
75   
76    <p>
77      <b>{'Autoplay'|@translate}</b>
78      <label><input type="radio" name="autoplay_common" value="true" {if $GVIDEO.autoplay_common == 'true'}checked="checked"{/if} data-toggle="autoplay"> {'Use common setting'|@translate}</label>
79      <label><input type="radio" name="autoplay_common" value="false" {if $GVIDEO.autoplay_common != 'true'}checked="checked"{/if} data-toggle="autoplay"> {'Change'|@translate}</label>
80     
81      <span style="display:{if $GVIDEO.autoplay_common == 'true'}none{else}block{/if};" id="autoplay">
82        <label><input type="radio" name="autoplay" value="0" {if $GVIDEO.autoplay == '0'}checked="checked"{/if}> {'No'|@translate}</label>
83        <label><input type="radio" name="autoplay" value="1" {if $GVIDEO.autoplay == '1'}checked="checked"{/if}> {'Yes'|@translate}</label>
84      </span>
85    </p>
86
87    <p style="margin:0;">
88      <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="save_properties">
89    </p>
90  </fieldset>
91</form>
Note: See TracBrowser for help on using the repository browser.