source: extensions/Subscribe_to_comments/template/form_comment.tpl @ 15871

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

use good languages keys for 'Yes' and 'No'

File size: 2.1 KB
Line 
1{if !$SUBSCRIBED_ALL_IMAGES && !$SUBSCRIBED_ALL_ALBUMS && !$SUBSCRIBED_ALBUM && !$SUBSCRIBED_ALBUM_IMAGES && !$SUBSCRIBED_IMAGE}
2<p>
3  {'Notify me of followup comments'|@translate} :<br>
4  <label><input type="radio" name="stc_mode" value="-1" {if !$STC_MODE}checked="checked"{/if}> {'No'|@translate}</label>
5  {if $STC_ON_PICTURE}
6    {if $STC_ALLOW_GLOBAL}
7      <label><input type="radio" name="stc_mode" value="image" {if $STC_MODE == "image"}checked="checked"{/if}> {'this picture'|@translate}</label>
8      {if $STC_ALLOW_ALBUM_IMAGES}<label><input type="radio" name="stc_mode" value="album-images" {if $STC_MODE == "album-images"}checked="checked"{/if}> {'all pictures of this album'|@translate}</label>{/if}
9      <label><input type="radio" name="stc_mode" value="all-images" {if $STC_MODE == "all-images"}checked="checked"{/if}> {'all pictures of the gallery'|@translate}</label>
10    {else}
11      <label><input type="radio" name="stc_mode" value="image" {if $STC_MODE == "image"}checked="checked"{/if}> {'Yes'|@translate}</label>
12    {/if}
13  {elseif $STC_ON_ALBUM}
14    {if $STC_ALLOW_GLOBAL}
15      <label><input type="radio" name="stc_mode" value="album" {if $STC_MODE == "album"}checked="checked"{/if}> {'this album'|@translate}</label>
16      <label><input type="radio" name="stc_mode" value="all-albums" {if $STC_MODE == "all-albums"}checked="checked"{/if}> {'all albums of the gallery'|@translate}</label>
17    {else}
18      <label><input type="radio" name="stc_mode" value="album" {if $STC_MODE == "album"}checked="checked"{/if}> {'Yes'|@translate}</label>
19    {/if}
20  {/if}
21</p>
22
23{if $STC_ASK_MAIL}
24  <p><label id="stc_mail" {if !$STC_MODE}style="display:none;"{/if}>{'Email address'|@translate} : <input type="text" name="stc_mail" value="{$STC_MAIL}"></label></p>
25  {footer_script require="jquery"}{literal}
26  jQuery(document).ready(function() {
27    $("#addComment input[name='stc_mode']").change(function() {
28      if ($(this).val() != "-1")
29        $("#stc_mail").css("display", "");
30      else
31        $("#stc_mail").css("display", "none");
32    });
33  });
34  {/literal}{/footer_script}
35{/if}
36{/if}
Note: See TracBrowser for help on using the repository browser.