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

Last change on this file since 19056 was 19056, checked in by mistic100, 11 years ago

allow to add private dailymotion videos, remove videobb support, add tags support

File size: 4.4 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    $(".video_update").show();
20  } else {ldelim}
21    $(this).css('border', border);
22    $(".video_update").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 class="video_update warning" style="display:none;"> {'Changing the url will reset video description, name and thumbnail'|@translate}</span>
63    </p>
64   
65    <p class="video_update">
66      <b>{'Get video description'|@translate}</b>
67      <label><input type="radio" name="sync_description" value="1" {if $GVIDEO.sync_description}checked="checked"{/if}> {'Yes'|@translate}</label>
68      <label><input type="radio" name="sync_description" value="0" {if not $GVIDEO.sync_description}checked="checked"{/if}> {'No'|@translate}</label>
69    </p>
70   
71    <p class="video_update">
72      <b>{'Get video tags'|@translate}</b>
73      <label><input type="radio" name="sync_tags" value="1" {if $GVIDEO.sync_tags}checked="checked"{/if}> {'Yes'|@translate}</label>
74      <label><input type="radio" name="sync_tags" value="0" {if not $GVIDEO.sync_tags}checked="checked"{/if}> {'No'|@translate}</label>
75    </p>
76   
77    <p>
78      <b>{'Video size'|@translate}</b>
79      <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>
80      <label><input type="radio" name="size_common" value="false" {if $GVIDEO.size_common != 'true'}checked="checked"{/if} data-toggle="size"> {'Change'|@translate}</label>
81     
82      <span style="display:{if $GVIDEO.size_common == 'true'}none{else}block{/if};" id="size">
83        <input type="text" name="width" value="{$GVIDEO.width}" size="4"> &times;
84        <input type="text" name="height" value="{$GVIDEO.height}" size="4"> px
85      </span>
86    </p>
87   
88    <p>
89      <b>{'Autoplay'|@translate}</b>
90      <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>
91      <label><input type="radio" name="autoplay_common" value="false" {if $GVIDEO.autoplay_common != 'true'}checked="checked"{/if} data-toggle="autoplay"> {'Change'|@translate}</label>
92     
93      <span style="display:{if $GVIDEO.autoplay_common == 'true'}none{else}block{/if};" id="autoplay">
94        <label><input type="radio" name="autoplay" value="0" {if $GVIDEO.autoplay == '0'}checked="checked"{/if}> {'No'|@translate}</label>
95        <label><input type="radio" name="autoplay" value="1" {if $GVIDEO.autoplay == '1'}checked="checked"{/if}> {'Yes'|@translate}</label>
96      </span>
97    </p>
98
99    <p style="margin:0;">
100      <input class="submit" type="submit" value="{'Save Settings'|@translate}" name="save_properties">
101    </p>
102  </fieldset>
103</form>
Note: See TracBrowser for help on using the repository browser.